-
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.
fix(datetime): month grid no longer loops on ios (#25857)
resolves #25752
- Loading branch information
1 parent
121370e
commit c938054
Showing
5 changed files
with
109 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import { toHaveReceivedEvent } from './toHaveReceivedEvent'; | ||
import { toHaveReceivedEventDetail } from './toHaveReceivedEventDetail'; | ||
import { toHaveReceivedEventTimes } from './toHaveReceivedEventTimes'; | ||
|
||
export const matchers = { | ||
toHaveReceivedEvent, | ||
toHaveReceivedEventDetail, | ||
toHaveReceivedEventTimes, | ||
}; |
33 changes: 33 additions & 0 deletions
33
core/src/utils/test/playwright/matchers/toHaveReceivedEventTimes.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,33 @@ | ||
import type { EventSpy } from '../page/event-spy'; | ||
|
||
export function toHaveReceivedEventTimes(eventSpy: EventSpy, count: number) { | ||
if (!eventSpy) { | ||
return { | ||
message: () => `toHaveReceivedEventTimes event spy is null`, | ||
pass: false, | ||
}; | ||
} | ||
|
||
if (typeof (eventSpy as any).then === 'function') { | ||
return { | ||
message: () => | ||
`expected spy to have received event, but it was not resolved (did you forget an await operator?).`, | ||
pass: false, | ||
}; | ||
} | ||
|
||
if (!eventSpy.eventName) { | ||
return { | ||
message: () => `toHaveReceivedEventTimes did not receive an event spy`, | ||
pass: false, | ||
}; | ||
} | ||
|
||
const pass = eventSpy.length === count; | ||
|
||
return { | ||
message: () => | ||
`expected event "${eventSpy.eventName}" to have been called ${count} times, but it was called ${eventSpy.events.length} times`, | ||
pass: pass, | ||
}; | ||
} |
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