bump timeouts for e2e tests (#4251)
This commit is contained in:
@@ -100,7 +100,7 @@ async function selectProvider(mainWindow: any, provider: Provider) {
|
|||||||
const root = document.getElementById('root');
|
const root = document.getElementById('root');
|
||||||
return root && root.children.length > 0;
|
return root && root.children.length > 0;
|
||||||
});
|
});
|
||||||
await mainWindow.waitForTimeout(2000);
|
await mainWindow.waitForTimeout(10000);
|
||||||
|
|
||||||
// Take a screenshot before proceeding
|
// Take a screenshot before proceeding
|
||||||
await mainWindow.screenshot({ path: `test-results/before-provider-${provider.name.toLowerCase()}-check.png` });
|
await mainWindow.screenshot({ path: `test-results/before-provider-${provider.name.toLowerCase()}-check.png` });
|
||||||
@@ -155,7 +155,7 @@ async function selectProvider(mainWindow: any, provider: Provider) {
|
|||||||
|
|
||||||
// Wait for chat interface to appear
|
// Wait for chat interface to appear
|
||||||
const chatTextareaAfterClick = await mainWindow.waitForSelector('[data-testid="chat-input"]',
|
const chatTextareaAfterClick = await mainWindow.waitForSelector('[data-testid="chat-input"]',
|
||||||
{ timeout: 2000 });
|
{ timeout: 10000 });
|
||||||
expect(await chatTextareaAfterClick.isVisible()).toBe(true);
|
expect(await chatTextareaAfterClick.isVisible()).toBe(true);
|
||||||
|
|
||||||
// Take screenshot of chat interface
|
// Take screenshot of chat interface
|
||||||
|
|||||||
Reference in New Issue
Block a user