mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
37 lines
885 B
JavaScript
37 lines
885 B
JavaScript
describe('Nested', () => {
|
|
beforeEach(() => {
|
|
cy.visit('http://localhost:8080/nested');
|
|
cy.ionPageVisible('nestedchild');
|
|
});
|
|
|
|
it('should show first page', () => {
|
|
cy.ionPageVisible('nestedchild');
|
|
});
|
|
|
|
it('should go to second page', () => {
|
|
cy.get('#nested-child-two').click();
|
|
cy.ionPageVisible('nestedchildtwo');
|
|
cy.ionPageHidden('nestedchild');
|
|
});
|
|
|
|
it('should go back to first page', () => {
|
|
cy.get('#nested-child-two').click();
|
|
cy.ionBackClick('nestedchildtwo');
|
|
cy.ionPageVisible('nestedchild');
|
|
});
|
|
|
|
it('should go navigate across nested outlet contexts', () => {
|
|
cy.ionPageVisible('nestedchild');
|
|
|
|
cy.get('#nested-tabs').click();
|
|
|
|
cy.ionPageHidden('routeroutlet');
|
|
cy.ionPageVisible('tab1');
|
|
|
|
cy.ionBackClick('tab1');
|
|
|
|
cy.ionPageDoesNotExist('tab1');
|
|
cy.ionPageVisible('routeroutlet');
|
|
});
|
|
})
|