Skip to content
Snippets Groups Projects
Unverified Commit 63c43969 authored by まっちゃとーにゅ's avatar まっちゃとーにゅ Committed by GitHub
Browse files

ci(test-frontend): Cypressのテストの失敗時、永遠に止まらない問題を回避 (MisskeyIO#434) (#13274)

失敗しないようタイムアウトの延長・15分で止まるように
parent b95e2500
No related branches found
No related tags found
No related merge requests found
...@@ -115,6 +115,7 @@ jobs: ...@@ -115,6 +115,7 @@ jobs:
run: pnpm exec cypress install run: pnpm exec cypress install
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v6 uses: cypress-io/github-action@v6
timeout-minutes: 15
with: with:
install: false install: false
start: pnpm start:test start: pnpm start:test
......
...@@ -162,12 +162,12 @@ describe('After user signed in', () => { ...@@ -162,12 +162,12 @@ describe('After user signed in', () => {
it('successfully loads', () => { it('successfully loads', () => {
// 表示に時間がかかるのでデフォルト秒数だとタイムアウトする // 表示に時間がかかるのでデフォルト秒数だとタイムアウトする
cy.get('[data-cy-user-setup-continue]', { timeout: 12000 }).should('be.visible'); cy.get('[data-cy-user-setup-continue]', { timeout: 30000 }).should('be.visible');
}); });
it('account setup wizard', () => { it('account setup wizard', () => {
// 表示に時間がかかるのでデフォルト秒数だとタイムアウトする // 表示に時間がかかるのでデフォルト秒数だとタイムアウトする
cy.get('[data-cy-user-setup-continue]', { timeout: 12000 }).click(); cy.get('[data-cy-user-setup-continue]', { timeout: 30000 }).click();
cy.get('[data-cy-user-setup-user-name] input').type('ありす'); cy.get('[data-cy-user-setup-user-name] input').type('ありす');
cy.get('[data-cy-user-setup-user-description] textarea').type('ほげ'); cy.get('[data-cy-user-setup-user-description] textarea').type('ほげ');
...@@ -205,7 +205,7 @@ describe('After user setup', () => { ...@@ -205,7 +205,7 @@ describe('After user setup', () => {
// アカウント初期設定ウィザード // アカウント初期設定ウィザード
// 表示に時間がかかるのでデフォルト秒数だとタイムアウトする // 表示に時間がかかるのでデフォルト秒数だとタイムアウトする
cy.get('[data-cy-user-setup] [data-cy-modal-window-close]', { timeout: 12000 }).click(); cy.get('[data-cy-user-setup] [data-cy-modal-window-close]', { timeout: 30000 }).click();
cy.get('[data-cy-modal-dialog-ok]').click(); cy.get('[data-cy-modal-dialog-ok]').click();
}); });
......
...@@ -14,7 +14,7 @@ describe('Router transition', () => { ...@@ -14,7 +14,7 @@ describe('Router transition', () => {
// アカウント初期設定ウィザード // アカウント初期設定ウィザード
// 表示に時間がかかるのでデフォルト秒数だとタイムアウトする // 表示に時間がかかるのでデフォルト秒数だとタイムアウトする
cy.get('[data-cy-user-setup] [data-cy-modal-window-close]', { timeout: 12000 }).click(); cy.get('[data-cy-user-setup] [data-cy-modal-window-close]', { timeout: 30000 }).click();
cy.wait(500); cy.wait(500);
cy.get('[data-cy-modal-dialog-ok]').click(); cy.get('[data-cy-modal-dialog-ok]').click();
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment