Skip to content

Commit 164dc16

Browse files
committed
test: fix playwright tests
1 parent 33d62a4 commit 164dc16

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

package-lock.json

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/e2e/webapp.spec.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,12 @@ test.describe('default', () => {
124124
await page.goto('/');
125125
await page.getByTestId('default-question').nth(0).click();
126126

127-
await page.route('/chat', (route) =>
127+
await page.route('/chat', async (route) => {
128+
await new Promise((resolve) => setTimeout(resolve, 5000));
128129
route.fulfill({
129-
status: -1,
130-
}),
131-
);
130+
status: 200,
131+
});
132+
});
132133

133134
await expect(page.getByTestId('loading-indicator')).not.toBeVisible();
134135
await page.getByTestId('submit-question-button').click();

0 commit comments

Comments
 (0)