test(tabs): skip test for now

This commit is contained in:
Brandy Carney
2024-09-05 15:33:48 -04:00
parent 8512c8326f
commit 0393cc8455

View File

@@ -3,15 +3,15 @@ describe('IonTabs', () => {
beforeEach(() => {
cy.visit('/tabs/tab1');
});
it('should handle onClick handlers on IonTabButton', () => {
const stub = cy.stub();
cy.on('window:alert', stub);
cy.get('ion-tab-button[tab="tab1"]').click().then(() => {
expect(stub.getCall(0)).to.be.calledWith('Tab was clicked')
});
});
});
@@ -19,18 +19,18 @@ describe('IonTabs', () => {
beforeEach(() => {
cy.visit('/tabs-basic');
});
it('should show correct tab when clicking the tab button', () => {
it.skip('should show correct tab when clicking the tab button', () => {
cy.get('ion-tab[tab="tab1"]').should('be.visible');
cy.get('ion-tab[tab="tab2"]').should('not.be.visible');
cy.get('ion-tab-button[tab="tab2"]').click();
cy.get('ion-tab[tab="tab1"]').should('not.be.visible');
cy.get('ion-tab[tab="tab2"]').should('be.visible');
cy.get('ion-tab-button[tab="tab1"]').click();
cy.get('ion-tab[tab="tab1"]').should('be.visible');
cy.get('ion-tab[tab="tab2"]').should('not.be.visible');
});