mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
chore(): sync with main
This commit is contained in:
@ -294,7 +294,7 @@ export class Modal implements ComponentInterface, OverlayInterface {
|
||||
|
||||
/**
|
||||
* Emitted after the modal has presented.
|
||||
* Shorthand for ionModalWillDismiss.
|
||||
* Shorthand for ionModalDidPresent.
|
||||
*/
|
||||
@Event({ eventName: 'didPresent' }) didPresentShorthand!: EventEmitter<void>;
|
||||
|
||||
|
||||
@ -75,6 +75,7 @@ test.describe('modal: rendering', () => {
|
||||
await ionModalDidPresent.next();
|
||||
|
||||
const modal = await page.locator('ion-modal');
|
||||
await expect(modal).toHaveClass(/show-modal/);
|
||||
|
||||
await page.setIonViewport();
|
||||
|
||||
@ -87,6 +88,7 @@ test.describe('modal: rendering', () => {
|
||||
await ionModalWillDismiss.next();
|
||||
await ionModalDidDismiss.next();
|
||||
|
||||
await expect(modal).not.toHaveClass(/show-modal/);
|
||||
await expect(modal).toBeHidden();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user