fix selectors

This commit is contained in:
Simon Knott 2024-10-25 15:37:24 +02:00
parent a2c3f7004b
commit ef2390a884
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -130,7 +130,7 @@ test('should linkify string attachments', async ({ runUITest, server }) => {
} }
{ {
await attachmentsPane.getByText('Second download').click(); await attachmentsPane.getByLabel('Second').click();
const url = server.PREFIX + '/two.html'; const url = server.PREFIX + '/two.html';
const promise = page.waitForEvent('popup'); const promise = page.waitForEvent('popup');
await attachmentsPane.getByText(url).click(); await attachmentsPane.getByText(url).click();
@ -139,7 +139,7 @@ test('should linkify string attachments', async ({ runUITest, server }) => {
} }
{ {
await attachmentsPane.getByText('Third download').click(); await attachmentsPane.getByLabel('Third').click();
const url = server.PREFIX + '/three.html'; const url = server.PREFIX + '/three.html';
const promise = page.waitForEvent('popup'); const promise = page.waitForEvent('popup');
await attachmentsPane.getByText('[markdown link]').click(); await attachmentsPane.getByText('[markdown link]').click();
@ -148,7 +148,7 @@ test('should linkify string attachments', async ({ runUITest, server }) => {
} }
}); });
test('should link from attachment step to attachments view', async ({ runUITest, server }) => { test('should link from attachment step to attachments view', async ({ runUITest }) => {
const { page } = await runUITest({ const { page } = await runUITest({
'a.test.ts': ` 'a.test.ts': `
import { test } from '@playwright/test'; import { test } from '@playwright/test';