mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
chore(): sync next with master
chore(): sync next with master
This commit is contained in:
@ -62,7 +62,9 @@
|
||||
|
||||
<br />
|
||||
|
||||
<ion-button expand="block" @click="present($event)" id="present-overlay">Present Overlay</ion-button>
|
||||
<ion-button @click="present($event)" id="present-overlay">Present Overlay</ion-button>
|
||||
|
||||
<ion-button @click="changeLoadingProps()" id="change-loading-props">Quickly Change Loading Props</ion-button>
|
||||
|
||||
<ion-action-sheet
|
||||
:is-open="isActionSheetOpen"
|
||||
@ -314,7 +316,18 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
const changeLoadingProps = () => {
|
||||
setLoadingRef(true);
|
||||
setTimeout(() => {
|
||||
setLoadingRef(false);
|
||||
setTimeout(() => {
|
||||
setLoadingRef(true);
|
||||
}, 10);
|
||||
}, 10);
|
||||
}
|
||||
|
||||
return {
|
||||
changeLoadingProps,
|
||||
overlayProps,
|
||||
present,
|
||||
componentType,
|
||||
|
@ -59,7 +59,7 @@ describe('Overlays', () => {
|
||||
cy.get('ion-toast').should('not.exist');
|
||||
});
|
||||
|
||||
it('it should pass props to modal via controller', () => {
|
||||
it('should pass props to modal via controller', () => {
|
||||
cy.get('ion-radio#ion-modal').click();
|
||||
cy.get('ion-radio#controller').click();
|
||||
|
||||
@ -69,7 +69,7 @@ describe('Overlays', () => {
|
||||
cy.get('ion-modal ion-content').should('have.text', 'Custom Title');
|
||||
});
|
||||
|
||||
it('it should pass props to modal via component', () => {
|
||||
it('should pass props to modal via component', () => {
|
||||
cy.get('ion-radio#ion-modal').click();
|
||||
cy.get('ion-radio#component').click();
|
||||
|
||||
@ -79,7 +79,7 @@ describe('Overlays', () => {
|
||||
cy.get('ion-modal ion-content').should('have.text', 'Custom Title');
|
||||
});
|
||||
|
||||
it('it should pass props to popover via controller', () => {
|
||||
it('should pass props to popover via controller', () => {
|
||||
cy.get('ion-radio#ion-popover').click();
|
||||
cy.get('ion-radio#controller').click();
|
||||
|
||||
@ -89,7 +89,7 @@ describe('Overlays', () => {
|
||||
cy.get('ion-popover ion-content').should('have.text', 'Custom Title');
|
||||
});
|
||||
|
||||
it('it should pass props to popover via component', () => {
|
||||
it('should pass props to popover via component', () => {
|
||||
cy.get('ion-radio#ion-popover').click();
|
||||
cy.get('ion-radio#component').click();
|
||||
|
||||
@ -98,4 +98,10 @@ describe('Overlays', () => {
|
||||
|
||||
cy.get('ion-popover ion-content').should('have.text', 'Custom Title');
|
||||
});
|
||||
|
||||
it('should only open one instance at a time when props change quickly on component', () => {
|
||||
cy.get('#change-loading-props').click();
|
||||
|
||||
cy.get('ion-loading').should('have.length', 1);
|
||||
});
|
||||
})
|
||||
|
Reference in New Issue
Block a user