test(angular): tabs sibling page test is no longer flaky (#25906)

This commit is contained in:
Liam DeBeasi
2022-09-09 12:00:13 -05:00
committed by GitHub
parent 725b13fa60
commit 634f928541

View File

@ -115,6 +115,16 @@ describe('Tabs', () => {
]); ]);
cy.get('#tab-button-account').click(); cy.get('#tab-button-account').click();
/**
* Wait for the leaving view to
* be unmounted otherwise testTabTitle
* may get the leaving view before it
* is unmounted.
*/
cy.ionPageVisible('app-tabs-tab1');
cy.ionPageDoesNotExist('app-tabs-tab1-nested');
testTabTitle('Tab 1 - Page 1'); testTabTitle('Tab 1 - Page 1');
cy.testStack('ion-tabs ion-router-outlet', [ cy.testStack('ion-tabs ion-router-outlet', [
'app-tabs-tab1', 'app-tabs-tab1',