From 5a90b26af688a04ff8e5adcc097781c1faa6510c Mon Sep 17 00:00:00 2001 From: Annie Huang Date: Thu, 16 Nov 2023 15:01:36 +0800 Subject: [PATCH] add new command(not yet finish loop enter command) --- tests/cypress/e2e/helloworld.cy.js | 2 +- tests/cypress/support/commands.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/cypress/e2e/helloworld.cy.js b/tests/cypress/e2e/helloworld.cy.js index cbdd011..5894660 100644 --- a/tests/cypress/e2e/helloworld.cy.js +++ b/tests/cypress/e2e/helloworld.cy.js @@ -128,7 +128,7 @@ describe('example helloworld app', () => { .should('contain', 'zsh: command not found: 12345') .and('contain', '12345') }) - it('Complete the Game', () => { + it.only('Complete the Game(relating UI)', () => { // get answersheet cy.get('@answers').then((answers) => { const answerarr = answers.split('\n') diff --git a/tests/cypress/support/commands.js b/tests/cypress/support/commands.js index f6d6746..fa0f4b6 100644 --- a/tests/cypress/support/commands.js +++ b/tests/cypress/support/commands.js @@ -59,3 +59,6 @@ Cypress.Commands.add('checkPending', () => { 'pending' ) }) +Cypress.Commands.add('Complete the Stage (only command)', () => { + cy.log('') +})