From 9783ac104bc9cc7b6118a6a67be9261fbbe167b3 Mon Sep 17 00:00:00 2001 From: Mat Pellerin Date: Thu, 22 Feb 2024 10:32:40 +0100 Subject: [PATCH] Increasing delay to 6s for ask tests (#55) --- cypress/e2e/3-widget/ask.cy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/3-widget/ask.cy.js b/cypress/e2e/3-widget/ask.cy.js index 1a81063..2ba93ce 100644 --- a/cypress/e2e/3-widget/ask.cy.js +++ b/cypress/e2e/3-widget/ask.cy.js @@ -26,7 +26,7 @@ describe('Ask', () => { cy.get(nucliaSearchBarSelector).shadow().find(searchBarInputSelector).type(`${firstQuery}\n`, { force: true }); cy.get(nucliaSearchResultsSelector) .shadow() - .find(`${initialAnswerSelector} ${answerContainerSelector}`) + .find(`${initialAnswerSelector} ${answerContainerSelector}`, {timeout: 6000}) .should('exist'); // chat with your doc @@ -61,7 +61,7 @@ describe('Ask', () => { cy.get(nucliaSearchBarSelector).shadow().find(searchBarInputSelector).type(`${secondQuery}\n`, { force: true }); cy.get(nucliaSearchResultsSelector) .shadow() - .find(`${initialAnswerSelector} ${answerContainerSelector}`) + .find(`${initialAnswerSelector} ${answerContainerSelector}`, {timeout: 6000}) .should('exist'); cy.get(nucliaSearchResultsSelector) .shadow()