From f5bfacef3442da6a88a68558917c56bcffbbf29d Mon Sep 17 00:00:00 2001 From: Dave Gordon Date: Mon, 12 Feb 2024 15:37:50 +0000 Subject: [PATCH] [frontend] chore: Fix playwright locators --- playwright/tests/note.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playwright/tests/note.spec.ts b/playwright/tests/note.spec.ts index 5c024f07..82fd6126 100644 --- a/playwright/tests/note.spec.ts +++ b/playwright/tests/note.spec.ts @@ -16,7 +16,7 @@ test.beforeAll(async ({ browser }) => { test('Notes App e2e', async () => { await test.step('Should be able to Add a Note', async () => { - await page.getByRole('button', { name: 'New Note' }).click(); + await page.getByRole('button', { name: 'Add a Note' }).click(); await page.getByPlaceholder('Title').fill(NOTE_TITLE); await page.getByPlaceholder('Content').fill(NOTE_CONTENT); await page.getByRole('button', { name: 'Add Note' }).click(); @@ -45,7 +45,7 @@ test('Notes App e2e', async () => { }); await test.step('Should not be able to add Note without title', async () => { - await page.getByRole('button', { name: 'New Note' }).click(); + await page.getByRole('button', { name: 'Add a Note' }).click(); await page.getByPlaceholder('Content').fill(NOTE_CONTENT); await page.getByRole('button', { name: 'Add Note' }).click(); await expect(page.getByTestId('note-title').first()).not.toHaveText(NOTE_TITLE);