This commit is contained in:
@@ -14,13 +14,14 @@ const simulator = readFileSync(
|
|||||||
'utf8',
|
'utf8',
|
||||||
);
|
);
|
||||||
|
|
||||||
void test('portal home hero exposes a direct public simulator link', () => {
|
void test('portal home investor support exposes a direct public simulator link', () => {
|
||||||
const hero = homePage.slice(
|
const supportHeading = homePage.indexOf('Apoio ao Investidor');
|
||||||
homePage.indexOf('function Hero('),
|
assert.ok(supportHeading >= 0, 'home investor support must exist');
|
||||||
homePage.indexOf('function SectorGrid('),
|
const support = homePage.slice(
|
||||||
|
supportHeading,
|
||||||
|
homePage.indexOf('</article>', supportHeading),
|
||||||
);
|
);
|
||||||
assert.match(hero, /href="\/simulador-fiscal"/);
|
assert.match(support, /<a\s[^>]*href="\/simulador-fiscal"[^>]*>[\s\S]*?Simulador Fiscal[\s\S]*?<\/a>/);
|
||||||
assert.match(hero, /Planear finanças/);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
void test('completed simulator result keeps public interest submission independent', () => {
|
void test('completed simulator result keeps public interest submission independent', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user