Files
Sean Perkins 420f9bbebd fix(react): IonNav works with react (#25565)
Resolves #24002 

Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
2022-07-06 13:45:30 -04:00

29 lines
772 B
TypeScript

describe('IonNav', () => {
beforeEach(() => {
cy.visit('/navigation');
});
it('should render the root page', () => {
cy.get('ion-nav').contains('Page one content');
});
it('should push a page', () => {
cy.get('ion-button').contains('Go to Page Two').click();
cy.get('#pageTwoContent').should('be.visible');
cy.get('ion-nav').contains('Page two content');
});
it('should pop a page', () => {
cy.get('ion-button').contains('Go to Page Two').click();
cy.get('#pageTwoContent').should('be.visible');
cy.get('ion-nav').contains('Page two content');
cy.get('.ion-page.can-go-back ion-back-button').click();
cy.get('#pageOneContent').should('be.visible');
cy.get('ion-nav').contains('Page one content');
});
});