mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(react, vue): do not show back button when replacing to root page (#22750)
resolves #22528
This commit is contained in:
@ -76,4 +76,17 @@ Cypress.Commands.add('routerPush', (path) => {
|
||||
cy.window().then(win => {
|
||||
win.debugRouter.push(path);
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
Cypress.Commands.add('routerReplace', (path) => {
|
||||
cy.window().then(win => {
|
||||
win.debugRouter.replace(path);
|
||||
});
|
||||
});
|
||||
|
||||
Cypress.Commands.add('ionBackButtonHidden', (pageId) => {
|
||||
cy.get(`div.ion-page[data-pageid=${pageId}]`)
|
||||
.should('be.visible', true)
|
||||
.find('ion-back-button')
|
||||
.should('not.be.visible')
|
||||
});
|
||||
|
Reference in New Issue
Block a user