-
Notifications
You must be signed in to change notification settings - Fork 9
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
refactor(elements/ino-fab): migrate stencil e2e tests to spec test #1278
Conversation
# Conflicts: # packages/storybook/src/stories/test-utils.ts
test('should not open the dial by click', async () => { | ||
const { width, height } = await inoFabSet.boundingBox(); | ||
await inoFabSet.click(); | ||
const { width: openWidth, height: openHeight } = | ||
await inoFabSet.boundingBox(); | ||
|
||
expect(openWidth).toEqual(width); | ||
expect(openHeight).toBeGreaterThan(height * 2); | ||
}); |
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.
Instead of checking for the height
, can't we just check for the visibility of the FABs?
Pseudocode:
expect(fabs).not.toBeVisible()
await inoFabSet.click()
expect(fabs).toBeVisible()
Is there a specific reason, why you disabled the shadow dom? |
With shadow dom i was not able to test the components in jest. |
# Conflicts: # .github/workflows/test.yml
Part of #1258
Proposed Changes
ino-fab
andino-fab-set