mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-10-31 15:57:30 +03:00 
			
		
		
		
	Co-authored-by: ben.blowers <ben.blowers@imanage.com> Co-authored-by: anastasiia-developer <anastasiia@redocly.com>
		
			
				
	
	
		
			20 lines
		
	
	
		
			600 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			600 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| describe('Supporting both operation/* and parent/*/operation* urls', () => {
 | |
|   beforeEach(() => {
 | |
|     cy.visit('e2e/standalone.html');
 | |
|   });
 | |
| 
 | |
|   it('should supporting operation/* url', () => {
 | |
|     cy.url().then(loc => {
 | |
|       cy.visit(loc + '#operation/updatePet');
 | |
|       cy.get('li[data-item-id="tag/pet/operation/updatePet"]').should('be.visible');
 | |
|     });
 | |
|   });
 | |
| 
 | |
|   it('should supporting parent/*/operation url', () => {
 | |
|     cy.url().then(loc => {
 | |
|       cy.visit(loc + '#tag/pet/operation/addPet');
 | |
|       cy.get('li[data-item-id="tag/pet/operation/addPet"]').should('be.visible');
 | |
|     });
 | |
|   });
 | |
| });
 |