-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(action-sheet): use action sheet overlay inline (#26172)
- Loading branch information
1 parent
84990ce
commit 92b763a
Showing
12 changed files
with
409 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
core/src/components/action-sheet/test/isOpen/action-sheet.e2e.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { test } from '@utils/test/playwright'; | ||
|
||
test.describe('action sheet: isOpen', () => { | ||
test.beforeEach(async ({ page, skip }) => { | ||
skip.rtl('isOpen does not behave differently in RTL'); | ||
skip.mode('md', 'isOpen does not behave differently in MD'); | ||
await page.goto('/src/components/action-sheet/test/isOpen'); | ||
}); | ||
|
||
test('should open the action sheet', async ({ page }) => { | ||
const ionActionSheetDidPresent = await page.spyOnEvent('ionActionSheetDidPresent'); | ||
await page.click('#default'); | ||
|
||
await ionActionSheetDidPresent.next(); | ||
await page.waitForSelector('ion-action-sheet', { state: 'visible' }); | ||
}); | ||
|
||
test('should open the action sheet then close after a timeout', async ({ page }) => { | ||
const ionActionSheetDidPresent = await page.spyOnEvent('ionActionSheetDidPresent'); | ||
const ionActionSheetDidDismiss = await page.spyOnEvent('ionActionSheetDidDismiss'); | ||
await page.click('#timeout'); | ||
|
||
await ionActionSheetDidPresent.next(); | ||
await page.waitForSelector('ion-action-sheet', { state: 'visible' }); | ||
|
||
await ionActionSheetDidDismiss.next(); | ||
|
||
await page.waitForSelector('ion-action-sheet', { state: 'hidden' }); | ||
}); | ||
}); |
Oops, something went wrong.