-
Notifications
You must be signed in to change notification settings - Fork 7
Migrate Toggle's tests #1164
Migrate Toggle's tests #1164
Conversation
|
type: 'toggle', | ||
bubbles: true, | ||
cancelable: false, | ||
composed: true, |
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.
No need to assert stuff like this with a not.toDispatchEvents()
assertion.
const tooltip = page.getByTestId('tooltip'); | ||
|
||
await button.hover(); | ||
await expect(host).toDispatchEvents( |
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.
Bonus.
acf013e
to
fc7c30e
Compare
fc7c30e
to
985eb9c
Compare
test.skip( | ||
browserName === 'webkit', | ||
'"finish" is dispatched inconsistently in CI. Or perhaps on Ubuntu. Try removing this when Webkit 26 is stable (TODO).', | ||
); |
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.
Just a test to see if the Webkit 26 release candidate fixed the issue. No failures yet. I'll keep an eye on CI and unskip the other tests if this test remains stable.
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.
Oh man, that'd be awesome if so!
); | ||
|
||
const host = page.locator('glide-core-toggle'); | ||
const switch$ = page.getByRole('switch'); |
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.
Reserved word. Happy to use whatever naming convention.
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.
Ah. I'm good with this 👍
test.skip( | ||
browserName === 'webkit', | ||
'"finish" is dispatched inconsistently in CI. Or perhaps on Ubuntu. Try removing this when Webkit 26 is stable (TODO).', | ||
); |
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.
Oh man, that'd be awesome if so!
); | ||
|
||
const host = page.locator('glide-core-toggle'); | ||
const switch$ = page.getByRole('switch'); |
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.
Ah. I'm good with this 👍
🚀 Description
N/A
📋 Checklist
🔬 Manual Testing
N/A