Skip to content

Commit

Permalink
test: update timeout for test
Browse files Browse the repository at this point in the history
  • Loading branch information
an-lee committed Mar 21, 2024
1 parent ee3c16e commit 7474225
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions enjoy/e2e/renderer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,18 @@ test.describe("with login", async () => {
const player = page
.locator(".ai-message")
.getByTestId("wavesurfer-container");
await player.waitFor();
await player.waitFor({ timeout: 60000 });
expect(await player.isVisible()).toBeTruthy();

// add to library
await page.getByTestId("message-start-shadow").click();
await page.getByTestId("audio-player").waitFor();
await page.getByTestId("media-player-container").waitFor();
await page.getByTestId("media-transcription-result").waitFor();
await page
.getByTestId("media-player-container")
.waitFor({ timeout: 60000 });
await page
.getByTestId("media-transcription-result")
.waitFor({ timeout: 60000 });
expect(
await page.getByTestId("media-transcription-result").isVisible()
).toBeTruthy();
Expand Down
1 change: 1 addition & 0 deletions enjoy/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default defineConfig({
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
},
timeout: 60000,

/* Configure projects for major browsers */
// projects: [
Expand Down

0 comments on commit 7474225

Please sign in to comment.