Skip to content

Commit cc66632

Browse files
Merge pull request #14413 from guardian/cc/fix-skimlinks-test
Fix failing playwright test
2 parents ac5cfd9 + 39b0dec commit cc66632

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotcom-rendering/playwright/tests/affiliate-links.e2e.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test.describe('Affiliate links', () => {
2121
await expect(disclaimerLocator).toContainText('affiliate link');
2222
});
2323

24-
test('skimlinks should have the attribute rel="sponsored"', async ({
24+
test('skimlinks should have the attribute rel="sponsored noreferrer noopener"', async ({
2525
page,
2626
}) => {
2727
await loadPage({
@@ -34,7 +34,7 @@ test.describe('Affiliate links', () => {
3434
const skimlinkLocator = page.locator(skimlinkSelector).first();
3535
const skimlinkRelAttribute =
3636
await skimlinkLocator.getAttribute('rel');
37-
expect(skimlinkRelAttribute).toBe('sponsored');
37+
expect(skimlinkRelAttribute).toBe('sponsored noreferrer noopener');
3838
});
3939

4040
test('skimlinks should contain the xcust URL parameter', async ({

0 commit comments

Comments
 (0)