Skip to content

Commit

Permalink
[playwright] chore: Timeout increase
Browse files Browse the repository at this point in the history
  • Loading branch information
helloitsdave committed Mar 12, 2024
1 parent a6d3336 commit 6d6ca05
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 @@ -10,7 +10,7 @@ let page: Page;

const timeout = 80 * 1000;

test.beforeAll(async ({ browser }) => {
test.beforeAll(async ({ browser }, { timeout }) => {
page = await browser.newPage();

/** Free tier on render.com may take 60 seconds to startup */
Expand Down Expand Up @@ -63,7 +63,7 @@ test('Notes App e2e', async () => {
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);
await expect(page.getByTestId('note-title').first()).not.toHaveText(NOTE_TITLE, { timeout });
await expect(page.getByTestId('note-content').first()).not.toHaveText(NOTE_CONTENT);
});
});

0 comments on commit 6d6ca05

Please sign in to comment.