fix cypress fail

This commit is contained in:
Annie Huang committed 2023-11-23 23:27:58 +08:00
1 parent 66adfec365
commit 277d619518
2 files changed
+11 -9

No files matched your search

+2 -4
View File
@@ -137,7 +137,7 @@ describe('example helloworld app', () => {
it('Typing in Terminal', () => {
cy.typeInCommand('12345{enter}')
cy.get('@Terminaltextbox')
.should('contain', 'zsh: command not found: 12345')
.should('contain', 'zsh: command not found: 12345', { timeout: 50000 })
.and('contain', '12345')
})
it('Complete the Game(relating UI)', () => {
@@ -187,9 +187,7 @@ 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: '回到地圖' }, { timeout: 30000 }).should(
'be.visible'
)
cy.get('#BacktoMap').should('contain', '回到地圖').and('be.visible')
})
})
})