Skip to content

Commit 4bc9b4d

Browse files
committed
fix tests
1 parent 924b2fd commit 4bc9b4d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

e2e/tests/chat.spec.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ test.describe('Chat Feature Tests', () => {
236236
// Send INSERT query
237237
await homePage.sendQuery(`add one user "${randomUsername}"`);
238238

239-
// Wait for confirmation message to appear
240-
const confirmationAppeared = await homePage.waitForConfirmationMessage(15000);
239+
// Wait for confirmation message to appear (increased timeout for slow CI)
240+
const confirmationAppeared = await homePage.waitForConfirmationMessage(20000);
241241
expect(confirmationAppeared).toBeTruthy();
242242

243243
// Verify confirmation message is visible
@@ -273,13 +273,15 @@ test.describe('Chat Feature Tests', () => {
273273
const randomUsername = `testuser${Date.now()}`;
274274
// First insertion - should succeed
275275
await homePage.sendQuery(`add one user "${randomUsername}"`);
276-
await homePage.waitForConfirmationMessage(10000);
276+
const confirmationAppeared1 = await homePage.waitForConfirmationMessage(20000);
277+
expect(confirmationAppeared1).toBeTruthy();
277278
await homePage.clickConfirmButton();
278279
await homePage.waitForProcessingToComplete();
279280

280281
// Second insertion attempt - should fail with duplicate error
281282
await homePage.sendQuery(`add one user "${randomUsername}"`);
282-
await homePage.waitForConfirmationMessage(10000);
283+
const confirmationAppeared2 = await homePage.waitForConfirmationMessage(20000);
284+
expect(confirmationAppeared2).toBeTruthy();
283285
await homePage.clickConfirmButton();
284286
await homePage.waitForProcessingToComplete();
285287

0 commit comments

Comments
 (0)