summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorまっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>2024-02-13 00:28:59 +0900
committerGitHub <noreply@github.com>2024-02-13 00:28:59 +0900
commit63c43969875f7fa42acf85c7992b4cdffc142ba2 (patch)
treef3e43b05a137f29585300a0763199605a632d66e
parentrefactor(msjs): avoid any (part 1) (#13247) (diff)
downloadsharkey-63c43969875f7fa42acf85c7992b4cdffc142ba2.tar.gz
sharkey-63c43969875f7fa42acf85c7992b4cdffc142ba2.tar.bz2
sharkey-63c43969875f7fa42acf85c7992b4cdffc142ba2.zip
ci(test-frontend): Cypressのテストの失敗時、永遠に止まらない問題を回避 (MisskeyIO#434) (#13274)
失敗しないようタイムアウトの延長・15分で止まるように
-rw-r--r--.github/workflows/test-frontend.yml1
-rw-r--r--cypress/e2e/basic.cy.js6
-rw-r--r--cypress/e2e/router.cy.js2
3 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/test-frontend.yml b/.github/workflows/test-frontend.yml
index 8ede222e5d..93def1164e 100644
--- a/.github/workflows/test-frontend.yml
+++ b/.github/workflows/test-frontend.yml
@@ -115,6 +115,7 @@ jobs:
run: pnpm exec cypress install
- name: Cypress run
uses: cypress-io/github-action@v6
+ timeout-minutes: 15
with:
install: false
start: pnpm start:test
diff --git a/cypress/e2e/basic.cy.js b/cypress/e2e/basic.cy.js
index d20b28c49f..604241d13c 100644
--- a/cypress/e2e/basic.cy.js
+++ b/cypress/e2e/basic.cy.js
@@ -162,12 +162,12 @@ describe('After user signed in', () => {
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', () => {
// 表示に時間がかかるのでデフォルト秒数だとタイムアウトする
- 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-description] textarea').type('ほげ');
@@ -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();
});
diff --git a/cypress/e2e/router.cy.js b/cypress/e2e/router.cy.js
index 81f497b5b8..6de27be5f4 100644
--- a/cypress/e2e/router.cy.js
+++ b/cypress/e2e/router.cy.js
@@ -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.get('[data-cy-modal-dialog-ok]').click();
});