fix(vue): improve compatibility with route guards (#22371)

resolves #22344
This commit is contained in:
Liam DeBeasi
2020-10-22 11:03:58 -04:00
committed by GitHub
parent 561a4ac535
commit 31f9bc81d6
6 changed files with 69 additions and 8 deletions

View File

@ -62,7 +62,23 @@ describe('Routing', () => {
cy.ionPageDoesNotExist('routingparameter');
cy.ionPageVisible('routing');
})
});
// Verifies fix for https://github.com/ionic-team/ionic-framework/issues/22359
it('should work properly with async navigation guards', () => {
cy.visit('http://localhost:8080');
cy.get('#delayed-redirect').click();
cy.get('ion-loading').should('exist');
cy.ionPageVisible('routing');
cy.ionPageHidden('home');
cy.ionBackClick('routing');
cy.ionPageVisible('home');
cy.ionPageDoesNotExist('routing');
});
});
describe('Routing - Swipe to Go Back', () => {