-
Notifications
You must be signed in to change notification settings - Fork 160
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
feat(cypress): adding more tests to the pricing table cells #11286
feat(cypress): adding more tests to the pricing table cells #11286
Conversation
Deploy preview created for package Built with commit: 50fdbf284554f5ad72789bbce2a34292b695603a |
Deploy preview created for package Built with commit: 50fdbf284554f5ad72789bbce2a34292b695603a |
Deploy preview created for package Built with commit: 50fdbf284554f5ad72789bbce2a34292b695603a |
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.
Reading through the test you added and the logic seems sound, but we're missing the second test condition:
User-entered content should appear in a vertical column layout whether there's an icon enabled or not.
See @oliviaflory's comment here for a screenshot of what problem we're looking to avoid.
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.
Thanks for your work on this one, @bruno-amorim! It's looking great so far. I think the second test case still needs some work, though. See my comment and let me know if you have any questions.
packages/web-components/tests/e2e-storybook/cypress/integration/pricing-table/_tests.js
Outdated
Show resolved
Hide resolved
Hey @jkaeser |
Deploy preview created for package Built with commit: 50fdbf284554f5ad72789bbce2a34292b695603a |
@bruno-amorim Don't forget to re-target this against the v1 branch. |
21e535d
to
b3c2188
Compare
Deploy preview created for package Built with commit: 50fdbf284554f5ad72789bbce2a34292b695603a |
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.
Changes look good to me. Tests passing. I just merged v1
changes, otherwise this should be good to go.
Related Ticket(s)
Closes # ADCMS-4051
Description
We created a regression when implementing the Pricing Table Cell feature to align text next to the optional icons. Then we almost wiped out the side-by-side alignment feature when fixing the regression. This all occurred because our current tests don't adequately reflect our expected functionality.
We need tests for the following cases: