From ef2390a8843109e98548706228550b1c8cdc9fa5 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Fri, 25 Oct 2024 15:37:24 +0200 Subject: [PATCH] fix selectors --- tests/playwright-test/ui-mode-test-attachments.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/playwright-test/ui-mode-test-attachments.spec.ts b/tests/playwright-test/ui-mode-test-attachments.spec.ts index bdaca2d9a8..9f3f6d3920 100644 --- a/tests/playwright-test/ui-mode-test-attachments.spec.ts +++ b/tests/playwright-test/ui-mode-test-attachments.spec.ts @@ -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 promise = page.waitForEvent('popup'); 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 promise = page.waitForEvent('popup'); 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({ 'a.test.ts': ` import { test } from '@playwright/test';