mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	ci(test-frontend): Cypressのテストの失敗時、永遠に止まらない問題を回避 (MisskeyIO#434) (#13274)
失敗しないようタイムアウトの延長・15分で止まるように
This commit is contained in:
		
							parent
							
								
									b95e25004f
								
							
						
					
					
						commit
						63c4396987
					
				
					 3 changed files with 5 additions and 4 deletions
				
			
		
							
								
								
									
										1
									
								
								.github/workflows/test-frontend.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/test-frontend.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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();
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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();
 | 
			
		||||
		});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue