chore(): sync with main

This commit is contained in:
Liam DeBeasi
2023-01-23 13:38:16 -05:00
377 changed files with 22590 additions and 6878 deletions

View File

@ -9,7 +9,8 @@
</ion-toolbar>
</ion-header>
<ion-content class="ion-padding">
{{ title }}
<ion-label id="title">{{ title }}</ion-label>
<ion-input></ion-input>
</ion-content>
</ion-page>
</template>
@ -23,6 +24,7 @@ import {
IonHeader,
IonTitle,
IonToolbar,
IonInput,
modalController
} from '@ionic/vue';
import { defineComponent } from 'vue';
@ -38,7 +40,8 @@ export default defineComponent({
IonContent,
IonHeader,
IonTitle,
IonToolbar
IonToolbar,
IonInput
},
setup() {
const dismiss = async () => {

View File

@ -132,7 +132,7 @@ describe('Overlays', () => {
cy.get('ion-button#present-overlay').click();
cy.get('ion-modal').should('exist');
cy.get('ion-modal ion-content').should('have.text', 'Custom Title');
cy.get('ion-modal ion-content #title').should('have.text', 'Custom Title');
});
it('should pass props to modal via component', () => {
@ -142,7 +142,7 @@ describe('Overlays', () => {
cy.get('ion-button#present-overlay').click();
cy.get('ion-modal').should('exist');
cy.get('ion-modal ion-content').should('have.text', 'Custom Title');
cy.get('ion-modal ion-content #title').should('have.text', 'Custom Title');
});
it('should pass props to popover via controller', () => {
@ -213,6 +213,44 @@ describe('Overlays', () => {
didDismiss: 2
});
});
it('should unmount modal via component', () => {
cy.get('ion-radio#ion-modal').click();
cy.get('ion-radio#component').click();
cy.get('ion-button#present-overlay').click();
cy.get('ion-modal').should('exist');
cy.get('ion-modal ion-input').should('have.value', '');
cy.get('ion-modal ion-input').type('1');
cy.get('ion-modal #dismiss').click();
cy.get('ion-button#present-overlay').click();
cy.get('ion-modal').should('exist');
cy.get('ion-modal ion-input').should('have.value', '');
});
it('should unmount modal via controller', () => {
cy.get('ion-radio#ion-modal').click();
cy.get('ion-radio#controller').click();
cy.get('ion-button#present-overlay').click();
cy.get('ion-modal').should('exist');
cy.get('ion-modal ion-input').should('have.value', '');
cy.get('ion-modal ion-input').type('1');
cy.get('ion-modal #dismiss').click();
cy.get('ion-button#present-overlay').click();
cy.get('ion-modal').should('exist');
cy.get('ion-modal ion-input').should('have.value', '');
});
})
const testLifecycle = (selector, expected = {}) => {