mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
19 lines
659 B
TypeScript
19 lines
659 B
TypeScript
describe('Navigation', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/navigation');
|
|
})
|
|
|
|
it('should navigate correctly', () => {
|
|
cy.visit('/navigation/page1');
|
|
cy.wait(2000);
|
|
cy.testStack('ion-router-outlet', ['app-navigation-page2', 'app-navigation-page1']);
|
|
|
|
cy.get('app-navigation-page2').should('have.attr', 'aria-hidden').and('equal', 'true');
|
|
cy.get('app-navigation-page2').should('have.attr', 'class').and('equal', 'ion-page ion-page-hidden');
|
|
|
|
cy.get('app-navigation-page1').should('not.have.attr', 'aria-hidden');
|
|
cy.get('app-navigation-page1').should('have.attr', 'class').and('equal', 'ion-page can-go-back');
|
|
});
|
|
})
|
|
|