mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
update tests
- having bug testing blocked by limited reset time
- not yet check the playing part is fine
(cherry picked from commit c510e4a541)
This commit is contained in:
1 parent
837712b742
commit
610eb3d2b7
4 files changed
+14
-3
No files matched your search
@@ -142,6 +142,8 @@ describe('example helloworld app', () => {
|
||||
cy.checkHint(1, 1)
|
||||
cy.getQuestInfo('✓ 輸入 `echo help` 來朗誦咒語').should('be.visible')
|
||||
cy.getQuestInfo('搜索卷軸').should('be.visible')
|
||||
cy.getQuestInfo('✓ 輸入 `echo help` 來朗誦咒語').should('be.visible')
|
||||
cy.getQuestInfo('搜索卷軸').should('be.visible')
|
||||
// Stage2
|
||||
cy.log('Stage2')
|
||||
cy.typeInCommand(answerarr[1])
|
||||
@@ -154,10 +156,13 @@ describe('example helloworld app', () => {
|
||||
cy.get('#Lbutton').should('be.visible').and('be.enabled')
|
||||
cy.get('#Rbutton').should('be.visible').and('be.disabled')
|
||||
cy.checkHint(2, 2)
|
||||
cy.checkHint(2, 2)
|
||||
cy.get('#Lbutton').click()
|
||||
cy.get('#Rbutton').should('be.enabled')
|
||||
cy.getQuestInfo('✓ 搜索卷軸').should('be.visible')
|
||||
cy.getQuestInfo('查看卷軸').should('be.visible')
|
||||
cy.getQuestInfo('✓ 搜索卷軸').should('be.visible')
|
||||
cy.getQuestInfo('查看卷軸').should('be.visible')
|
||||
// Stage3
|
||||
cy.log('Stage3')
|
||||
cy.typeInCommand(answerarr[2])
|
||||
|
||||
@@ -20,6 +20,10 @@ Cypress.Commands.add('PrepareForGame', () => {
|
||||
'contain',
|
||||
'commander:~ $'
|
||||
)
|
||||
cy.get('@Terminaltextbox', { timeout: 150000 }).should(
|
||||
'contain',
|
||||
'commander:~ $'
|
||||
)
|
||||
})
|
||||
Cypress.Commands.add('typeInCommand', (command) => {
|
||||
cy.get('.xterm-screen', { timeout: 150000 }).type(command)
|
||||
|
||||
Reference in new issue
Block a user