mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
fix remove verify by storytext add global function
This commit is contained in:
1 parent
ee841b42e7
commit
839b87b478
4 files changed
+80
-106
No files matched your search
@@ -32,3 +32,12 @@ Cypress.Commands.add('LoginWithPassword', (username, password) => {
|
||||
cy.get('#password').type(password)
|
||||
cy.findByRole('button', { name: 'Log in' }).click()
|
||||
})
|
||||
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}`)
|
||||
})
|
||||
Cypress.Commands.add('getTaskCheckbox', (id) => {
|
||||
return cy.getQuestInfo(id).findByRole('checkbox')
|
||||
})
|
||||
Reference in new issue
Block a user