Skip to content

Commit

Permalink
[frontend] chore: Fix playwright locators
Browse files Browse the repository at this point in the history
  • Loading branch information
helloitsdave committed Feb 12, 2024
1 parent cd95c0f commit f5bface
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playwright/tests/note.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f5bface

Please sign in to comment.