mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	
							parent
							
								
									1a6788fc39
								
							
						
					
					
						commit
						ac81955fdf
					
				
							
								
								
									
										2
									
								
								frontend/.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								frontend/.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							| @ -17,7 +17,7 @@ jobs: | ||||
|       - name: Run Cypress | ||||
|         uses: cypress-io/github-action@v2 | ||||
|         with:  | ||||
|           env: AUTH_TOKEN=${{ secrets.UNLEASH_TOKEN }},DEFAULT_ENV="default" | ||||
|           env: AUTH_TOKEN=${{ secrets.UNLEASH_TOKEN }},DEFAULT_ENV="development" | ||||
|           config: baseUrl=${{ github.event.deployment_status.target_url }} | ||||
|           record: true | ||||
|         env: | ||||
|  | ||||
| @ -14,7 +14,7 @@ | ||||
| let featureToggleName = ''; | ||||
| let enterprise = false; | ||||
| let strategyId = ''; | ||||
| let defaultEnv = 'default'; | ||||
| let defaultEnv = 'development'; | ||||
| 
 | ||||
| describe('feature toggle', () => { | ||||
|     before(() => { | ||||
| @ -94,7 +94,7 @@ describe('feature toggle', () => { | ||||
|         cy.url().should('include', featureToggleName); | ||||
|     }); | ||||
| 
 | ||||
|     it('Can add a gradual rollout strategy to the default environment', () => { | ||||
|     it('Can add a gradual rollout strategy to the development environment', () => { | ||||
|         cy.wait(500); | ||||
|         cy.visit(`/projects/default/features2/${featureToggleName}/strategies`); | ||||
|         cy.get('[data-test=ADD_NEW_STRATEGY_ID]').click(); | ||||
| @ -134,11 +134,10 @@ describe('feature toggle', () => { | ||||
|         ).as('addStrategyToFeature'); | ||||
| 
 | ||||
|         cy.get('[data-test=ADD_NEW_STRATEGY_SAVE_ID]').first().click(); | ||||
|         cy.get('[data-test=DIALOGUE_CONFIRM_ID]').click(); | ||||
|         cy.wait('@addStrategyToFeature'); | ||||
|     }); | ||||
| 
 | ||||
|     it('can update a strategy in the default environment', () => { | ||||
|     it('can update a strategy in the development environment', () => { | ||||
|         cy.wait(500); | ||||
|         cy.visit(`/projects/default/features2/${featureToggleName}/strategies`); | ||||
|         cy.get('[data-test=STRATEGY_ACCORDION_ID-flexibleRollout').click(); | ||||
| @ -182,11 +181,10 @@ describe('feature toggle', () => { | ||||
|         ).as('updateStrategy'); | ||||
| 
 | ||||
|         cy.get('[data-test=UPDATE_STRATEGY_BUTTON_ID]').first().click(); | ||||
|         cy.get('[data-test=DIALOGUE_CONFIRM_ID]').click(); | ||||
|         cy.wait('@updateStrategy'); | ||||
|     }); | ||||
| 
 | ||||
|     it('can delete a strategy in the default environment', () => { | ||||
|     it('can delete a strategy in the development environment', () => { | ||||
|         cy.wait(500); | ||||
|         cy.visit(`/projects/default/features2/${featureToggleName}/strategies`); | ||||
| 
 | ||||
| @ -205,7 +203,7 @@ describe('feature toggle', () => { | ||||
|         cy.wait('@deleteStrategy'); | ||||
|     }); | ||||
| 
 | ||||
|     it('Can add a userid  strategy to the default environment', () => { | ||||
|     it('Can add a userid  strategy to the development environment', () => { | ||||
|         cy.wait(500); | ||||
|         cy.visit(`/projects/default/features2/${featureToggleName}/strategies`); | ||||
|         cy.get('[data-test=ADD_NEW_STRATEGY_ID]').click(); | ||||
| @ -247,7 +245,6 @@ describe('feature toggle', () => { | ||||
|         ).as('addStrategyToFeature'); | ||||
| 
 | ||||
|         cy.get('[data-test=ADD_NEW_STRATEGY_SAVE_ID]').first().click(); | ||||
|         cy.get('[data-test=DIALOGUE_CONFIRM_ID]').click(); | ||||
|         cy.wait('@addStrategyToFeature'); | ||||
|     }); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user