mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(modal): avoid chrome memory leak bug (#26911)
This commit is contained in:
@ -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