mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
Merge remote-tracking branch 'origin/main' into sync-7.0-11-01-22
This commit is contained in:
@ -148,6 +148,19 @@ test.describe('datetime: prefer wheel', () => {
|
|||||||
presentation="date"
|
presentation="date"
|
||||||
prefer-wheel="true"
|
prefer-wheel="true"
|
||||||
></ion-datetime>
|
></ion-datetime>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const mockToday = '2022-10-10T16:22';
|
||||||
|
Date = class extends Date {
|
||||||
|
constructor(...args) {
|
||||||
|
if (args.length === 0) {
|
||||||
|
super(mockToday)
|
||||||
|
} else {
|
||||||
|
super(...args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
`);
|
`);
|
||||||
|
|
||||||
await page.waitForSelector('.datetime-ready');
|
await page.waitForSelector('.datetime-ready');
|
||||||
|
|||||||
Reference in New Issue
Block a user