fix usage

This commit is contained in:
Annie Huang committed 2023-10-30 15:00:30 +08:00
1 parent 839b87b478
commit a351eef898
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ Cypress.Commands.add('typeInCommand', (command) => {
cy.get('.xterm-screen').type(command)
})
Cypress.Commands.add('getQuestInfo', (id) => {
return cy.get('#quest').get('p.text-text').contains(`${id}`)
return cy.get('#quest').find('p.text-text').contains(`${id}`)
})
Cypress.Commands.add('getTaskCheckbox', (id) => {
return cy.getQuestInfo(id).findByRole('checkbox')