mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
16 lines
356 B
TypeScript
16 lines
356 B
TypeScript
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')
|
|
});
|
|
|
|
});
|
|
});
|