mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
24 lines
641 B
TypeScript
24 lines
641 B
TypeScript
describe('IonLoading', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/overlay-components/loading');
|
|
});
|
|
|
|
it('display loading', () => {
|
|
//show loading
|
|
cy.get('ion-button').contains('Show Loading').click();
|
|
cy.get('ion-loading').contains('Loading');
|
|
|
|
//loading goes away after 1s
|
|
cy.get('ion-loading').should('not.exist');
|
|
});
|
|
|
|
it('display loading and call dismiss to close it', () => {
|
|
//show loading
|
|
cy.get('ion-button').contains('Show Loading, hide after 250 ms').click();
|
|
cy.get('ion-loading').contains('Loading');
|
|
|
|
//verify loading is gone
|
|
cy.get('ion-loading').should('not.exist');
|
|
});
|
|
});
|