mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
fix(react, vue): do not show back button when replacing to root page (#22750)
resolves #22528
This commit is contained in:
@ -176,6 +176,21 @@ describe('Routing', () => {
|
||||
cy.ionPageVisible('navigation');
|
||||
cy.ionPageHidden('routingparameter');
|
||||
});
|
||||
|
||||
// Verifies fix for https://github.com/ionic-team/ionic-framework/issues/22528
|
||||
it('should not show ion-back-button when replacing to root page', () => {
|
||||
cy.visit('http://localhost:8080');
|
||||
|
||||
cy.routerPush('/navigation');
|
||||
cy.ionPageVisible('navigation');
|
||||
cy.ionPageHidden('home');
|
||||
|
||||
cy.routerReplace('/');
|
||||
cy.ionPageDoesNotExist('navigation');
|
||||
cy.ionPageVisible('home');
|
||||
|
||||
cy.ionBackButtonHidden('home');
|
||||
});
|
||||
});
|
||||
|
||||
describe('Routing - Swipe to Go Back', () => {
|
||||
|
Reference in New Issue
Block a user