Skip to content

Commit

Permalink
test(datetime): fix ionChange wheel test (#26203)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi authored Nov 1, 2022
1 parent 1504b88 commit 4c30a80
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions core/src/components/datetime/test/prefer-wheel/datetime.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,19 @@ test.describe('datetime: prefer wheel', () => {
presentation="date"
prefer-wheel="true"
></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');
Expand Down

0 comments on commit 4c30a80

Please sign in to comment.