Skip to content

Commit

Permalink
GitHub Actionsで落ちるテストの待ち時間を長くした
Browse files Browse the repository at this point in the history
  • Loading branch information
unstoppa61e committed Apr 14, 2022
1 parent 4ec0663 commit 23233ba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
20 changes: 10 additions & 10 deletions cypress/integration/stage_select.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ describe('Stage select', () => {
context('when the user clicks stage 1 panel', () => {
it('moves to stage 1', () => {
cy.visit('/')
cy.wait(2000)
cy.wait(5000)
cy.findByTestId('stage-panel-1').click()
cy.wait(2000)
cy.wait(5000)
cy.url().should('eq', Cypress.config().baseUrl + '/stages/1')
})
})
Expand All @@ -13,9 +13,9 @@ describe('Stage select', () => {
context('if stage 1 is not cleared yet', () => {
it('remains home', () => {
cy.visit('/')
cy.wait(2000)
cy.wait(5000)
cy.findByTestId('stage-panel-2').click()
cy.wait(2000)
cy.wait(5000)
cy.url().should('eq', Cypress.config().baseUrl + '/')
})
})
Expand All @@ -24,9 +24,9 @@ describe('Stage select', () => {
it('moves to stage 2', () => {
cy.setLocalStorage('gorogoropanda.com/clearedStage', 'gjj');
cy.visit('/')
cy.wait(2000)
cy.wait(5000)
cy.findByTestId('stage-panel-2').click()
cy.wait(2000)
cy.wait(5000)
cy.url().should('eq', Cypress.config().baseUrl + '/stages/2')
})
})
Expand All @@ -37,9 +37,9 @@ describe('Stage select', () => {
it('remains home', () => {
cy.setLocalStorage('gorogoropanda.com/clearedStage', 'u51');
cy.visit('/')
cy.wait(2000)
cy.wait(5000)
cy.findByTestId('review-panel-1').click()
cy.wait(2000)
cy.wait(5000)
cy.url().should('eq', Cypress.config().baseUrl + '/')
})
})
Expand All @@ -48,9 +48,9 @@ describe('Stage select', () => {
it('moves to review 1', () => {
cy.setLocalStorage('gorogoropanda.com/clearedStage', 'ttw');
cy.visit('/')
cy.wait(2000)
cy.wait(5000)
cy.findByTestId('review-panel-1').click()
cy.wait(2000)
cy.wait(5000)
cy.url().should('eq', Cypress.config().baseUrl + '/reviews/1')
})
})
Expand Down
18 changes: 9 additions & 9 deletions cypress/integration/url_access.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ describe('URL access', () => {
context('when the user accesses stage 1 URL', () => {
it('moves to stage 1', () => {
cy.visit('/stages/1')
cy.wait(750)
cy.wait(2000)
cy.url().should('eq', Cypress.config().baseUrl + '/stages/1')
})
})
Expand All @@ -11,7 +11,7 @@ describe('URL access', () => {
context('if stage 1 is not cleared yet', () => {
it('gets redirected home', () => {
cy.visit('/stages/2')
cy.wait(750)
cy.wait(2000)
cy.url().should('eq', Cypress.config().baseUrl + '/')
})
})
Expand All @@ -20,7 +20,7 @@ describe('URL access', () => {
it('moves to stage 2', () => {
cy.setLocalStorage('gorogoropanda.com/clearedStage', 'gjj');
cy.visit('/stages/2')
cy.wait(750)
cy.wait(2000)
cy.url().should('eq', Cypress.config().baseUrl + '/stages/2')
})
})
Expand All @@ -30,7 +30,7 @@ describe('URL access', () => {
context('if no stages are cleared yet', () => {
it('gets redirected home', () => {
cy.visit('/reviews/1')
cy.wait(750)
cy.wait(2000)
cy.url().should('eq', Cypress.config().baseUrl + '/')
})
})
Expand All @@ -39,7 +39,7 @@ describe('URL access', () => {
it('gets redirected home', () => {
cy.setLocalStorage('gorogoropanda.com/clearedStage', 'u51');
cy.visit('/reviews/1')
cy.wait(750)
cy.wait(2000)
cy.url().should('eq', Cypress.config().baseUrl + '/')
})
})
Expand All @@ -48,7 +48,7 @@ describe('URL access', () => {
it('moves to review 1', () => {
cy.setLocalStorage('gorogoropanda.com/clearedStage', 'ttw');
cy.visit('/reviews/1')
cy.wait(750)
cy.wait(2000)
cy.url().should('eq', Cypress.config().baseUrl + '/reviews/1')
})
})
Expand All @@ -58,7 +58,7 @@ describe('URL access', () => {
context('if no stages are cleared yet', () => {
it('gets redirected home', () => {
cy.visit('/thank-you-for-playing')
cy.wait(750)
cy.wait(2000)
cy.url().should('eq', Cypress.config().baseUrl + '/')
})
})
Expand All @@ -67,7 +67,7 @@ describe('URL access', () => {
it('gets redirected home', () => {
cy.setLocalStorage('gorogoropanda.com/clearedStage', 'ttw');
cy.visit('/thank-you-for-playing')
cy.wait(750)
cy.wait(2000)
cy.url().should('eq', Cypress.config().baseUrl + '/')
})
})
Expand All @@ -77,7 +77,7 @@ describe('URL access', () => {
cy.setLocalStorage('gorogoropanda.com/clearedStage', 'ttw');
cy.setLocalStorage('gorogoropanda.com/clearedReview', 'gjj');
cy.visit('/thank-you-for-playing')
cy.wait(750)
cy.wait(2000)
cy.url().should('eq', Cypress.config().baseUrl + '/thank-you-for-playing')
})
})
Expand Down

0 comments on commit 23233ba

Please sign in to comment.