fix: complete InvesteMoz validation and error corrections

This commit is contained in:
2026-10-29 21:47:33 +02:00
parent 63147312e2
commit daf8623441
718 changed files with 127308 additions and 20959 deletions
+8 -2
View File
@@ -21,7 +21,10 @@ void test('portal home investor support exposes a direct public simulator link',
supportHeading,
homePage.indexOf('</article>', supportHeading),
);
assert.match(support, /<a\s[^>]*href="\/simulador-fiscal"[^>]*>[\s\S]*?Simulador Fiscal[\s\S]*?<\/a>/);
assert.match(
support,
/<a\s[^>]*href="\/simulador-fiscal"[^>]*>[\s\S]*?Simulador Fiscal[\s\S]*?<\/a>/,
);
});
void test('completed simulator result keeps public interest submission independent', () => {
@@ -30,5 +33,8 @@ void test('completed simulator result keeps public interest submission independe
simulator.replace(/\s+/g, ' '),
/Manifestar interesse sem partilhar esta simulação/,
);
assert.match(simulator.replace(/\s+/g, ' '), /sem partilhar os dados desta simulação/);
assert.match(
simulator.replace(/\s+/g, ' '),
/sem partilhar os dados desta simulação/,
);
});