fix: restore content compatibility checks
This commit is contained in:
@@ -153,8 +153,8 @@ test('keeps canonical native anchors and safe external destinations', async ({
|
||||
const email = page.locator('a[href^="mailto:"]');
|
||||
await expect(email).toHaveCount(2);
|
||||
await expect(email).toHaveText(['Email Luca', 'Email Luca']);
|
||||
expect(await email.evaluateAll((links) => new Set(links.map((link) => link.getAttribute('href'))))).toEqual(
|
||||
new Set(['mailto:luca.pislaru@gmail.com']),
|
||||
expect(await email.evaluateAll((links) => [...new Set(links.map((link) => link.getAttribute('href')))])).toEqual(
|
||||
['mailto:luca.pislaru@gmail.com'],
|
||||
);
|
||||
|
||||
const externalLinks = page.locator('#contact a[target="_blank"]');
|
||||
|
||||
Reference in New Issue
Block a user