test: update timeout for test

This commit is contained in:
an-lee
2024-03-21 16:31:22 +08:00
parent ee3c16ed98
commit 7474225b14
2 changed files with 8 additions and 3 deletions

View File

@@ -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();

View File

@@ -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: [