-
Notifications
You must be signed in to change notification settings - Fork 77
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
test(commonTests, alert, combobox, dropdown, input-date-picker, modal, popover, tooltip): extracts a general test utility OpenClose
for all components implementing openCloseComponent
util
#7379
test(commonTests, alert, combobox, dropdown, input-date-picker, modal, popover, tooltip): extracts a general test utility OpenClose
for all components implementing openCloseComponent
util
#7379
Conversation
…sitionChainedEvents
…enCloseComponents
emitsOpenCloseTransitionChainedEvents
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 is looking pretty sweet, @Elijbet! 🍬
Can you wire up this helper in other open/close component test suites?
…enCloseComponents
Is it ok if I wire up this helper in other components separately from this PR? I think it's going to bloat up the PR and make it hard to merge. I was hoping to address each case or several cases in a bunch within continuing PRs, so I can progressively adjust the util. |
I'd prefer to have the test helper cover all existing use cases from the get go. There's 6 other components that would need to be included, so I don't think it'll add much bloat since we're replacing any existing tests. |
packages/calcite-components/src/components/dropdown/resources.ts
Outdated
Show resolved
Hide resolved
…enCloseComponents
…or to extract a function with a common test
…enCloseComponents
…enCloseComponents
…se, so we should use it to keep that assosication
…se, so we should use it to keep that assosication
…enCloseComponents
…enCloseComponents
…re descriptive example to the docs
…enCloseComponents
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.
🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️
🛠️🛠️🧪🧪🧪🛠️🛠️🧪🧪🛠️🛠️🛠️🧪🧪🛠️🛠️🧪🛠️🛠️🛠️🧪🛠️
🛠️🧪🛠️🛠️🛠️🛠️🧪🛠️🛠️🧪🛠️🧪🛠️🛠️🧪🛠️🧪🛠️🛠️🛠️🧪🛠️
🛠️🧪🛠️🛠️🛠️🛠️🧪🛠️🛠️🧪🛠️🧪🛠️🛠️🧪🛠️🧪🛠️🛠️🛠️🧪🛠️
🛠️🧪🛠️🛠️🛠️🛠️🧪🛠️🛠️🧪🛠️🧪🛠️🛠️🧪🛠️🧪🛠️🛠️🛠️🛠️🛠️
🛠️🛠️🧪🧪🧪🛠️🛠️🧪🧪🛠️🛠️🛠️🧪🧪🛠️🛠️🧪🧪🧪🛠️🧪🛠️
🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️🛠️
…enCloseComponents
…e commonTests helper (#8392) Remove e2e tests that are covered by the dedicated `openClose commonTests` helper. **Related Issue:** #8391, #7379 ## Summary Remove e2e tests that are covered by dedicated `openClose commonTests` helper to simplify test setup, ensure testing consistency across all `openClose` components, and enhance test maintainability.
…nClose` commonTests helper (#8472) Remove e2e tests covered by the dedicated `openClose` commonTests helper. **Related Issue:** #8392, #7379 ## Summary Remove e2e tests covered by dedicated `openClose` commonTests helper to simplify test setup, ensure testing consistency across all openClose components, and enhance test maintainability.
**Related Issue:** N/A ## Summary Removes `beforeToggle` option as it is not being used by any test. **Note:** It appears this option has not been used since it was introduced by #7379.
Related Issue: #4968
Summary
Extracts a common test utility
openClose
for all components implementingopenCloseComponent
util.Implemented on all relevant components.