-
Notifications
You must be signed in to change notification settings - Fork 734
Toast testkit driver #2901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toast testkit driver #2901
Conversation
const {toastDriver} = getDriver({autoDismiss: TIME, onDismiss: dismissFn}); | ||
expect(toastDriver.exists()).toBeTruthy(); | ||
expect(dismissFn).not.toHaveBeenCalled(); | ||
await new Promise(r => setTimeout(r, TIME + 100)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd look into using fake timers instead (if it works)
return messageDriver; | ||
}; | ||
|
||
const getActionButton = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be getAction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with a comment
Description
Toast testkit driver
Changelog
None
Additional info
None