From fe604f37816e26cbeddd256e45f0dc9d8ea9307b Mon Sep 17 00:00:00 2001 From: Annie Huang Date: Thu, 23 Nov 2023 23:36:30 +0800 Subject: [PATCH] change verify order --- tests/cypress/e2e/helloworld.cy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cypress/e2e/helloworld.cy.js b/tests/cypress/e2e/helloworld.cy.js index 1dfcb9c..533ae77 100644 --- a/tests/cypress/e2e/helloworld.cy.js +++ b/tests/cypress/e2e/helloworld.cy.js @@ -137,8 +137,8 @@ describe('example helloworld app', () => { it('Typing in Terminal', () => { cy.typeInCommand('12345{enter}') cy.get('@Terminaltextbox') - .should('contain', 'zsh: command not found: 12345', { timeout: 50000 }) - .and('contain', '12345') + .should('contain', '12345') + .and('contain', 'zsh: command not found: 12345', { timeout: 50000 }) }) it('Complete the Game(relating UI)', () => { // get answersheet