Skip to content

Commit

Permalink
Adjusted wait times in chat snapshot test to 5000ms for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho committed Jul 18, 2024
1 parent 1e045c2 commit e98c543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/tests/11_chat_snapshot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test('test', async ({ page }) => {
await page.getByTestId('snpashot-button').getByRole('button').click();
await page.waitForTimeout(5000);
const page_snapshot = await page1Promise;
await page_snapshot.waitForTimeout(500)
await page_snapshot.waitForTimeout(5000)
snapshot_url = page_snapshot.url()
expect(snapshot_url).toMatch(/snapshot/)
const message_counts_in_snapshot = await page_snapshot.$$eval('.message-text', (messages) => messages.length);
Expand All @@ -67,7 +67,7 @@ test('test', async ({ page }) => {
const page_back = await page_back_to_chat_promise
// open new chat, attract user to login or register
expect(page_back.url()).toMatch(/static/)
await page_back.waitForTimeout(2000)
await page_back.waitForTimeout(5000)
const message_counts = await page_back.$$eval('.message-text', (messages) => messages.length);
expect(message_counts).toBe(4);
const sessions_new = await selectChatSessionsByUserId(pool, user.id);
Expand Down

0 comments on commit e98c543

Please sign in to comment.