From 84cf74cdfcbc8313a4864088ee3ad8df04929e6e Mon Sep 17 00:00:00 2001 From: Annie Huang Date: Thu, 23 Nov 2023 17:00:30 +0800 Subject: [PATCH] extend timeout --- tests/cypress/e2e/helloworld.cy.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/cypress/e2e/helloworld.cy.js b/tests/cypress/e2e/helloworld.cy.js index 5c5890b..a152066 100644 --- a/tests/cypress/e2e/helloworld.cy.js +++ b/tests/cypress/e2e/helloworld.cy.js @@ -187,7 +187,9 @@ describe('example helloworld app', () => { // Check survey dialog pop up cy.CheckTextElement('#QuestCompleted', '關卡完成!', 'Quest Completed!') cy.get('div[class="modal"]').find('p').should('be.visible') - cy.findByRole('link', { name: '回到地圖' }).should('be.visible') + cy.findByRole('link', { name: '回到地圖' }, { timeout: 30000 }).should( + 'be.visible' + ) }) }) })