mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
26 lines
733 B
TypeScript
26 lines
733 B
TypeScript
describe('Popovers: Inline', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/popover-inline');
|
|
});
|
|
|
|
it('should initially have no items', () => {
|
|
cy.get('ion-button').click();
|
|
|
|
cy.get('ion-popover').should('be.visible');
|
|
cy.get('ion-list ion-item').should('not.exist');
|
|
});
|
|
|
|
it('should have items after 1500ms', () => {
|
|
cy.get('ion-button').click();
|
|
|
|
cy.get('ion-popover').should('be.visible');
|
|
|
|
cy.wait(1500);
|
|
|
|
cy.get('ion-list ion-item:nth-child(1)').should('have.text', 'A');
|
|
cy.get('ion-list ion-item:nth-child(2)').should('have.text', 'B');
|
|
cy.get('ion-list ion-item:nth-child(3)').should('have.text', 'C');
|
|
cy.get('ion-list ion-item:nth-child(4)').should('have.text', 'D');
|
|
});
|
|
});
|