-
Notifications
You must be signed in to change notification settings - Fork 273
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(ui5-segmented-button): migrate tests to cypress #11022
base: main
Are you sure you want to change the base?
Conversation
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.
Overall all tests looks good!
Just a minor change is requested. Thanks!
.as("segmentedButton"); | ||
|
||
cy.get<SegmentedButton>("@segmentedButton") | ||
.find("ui5-segmented-button-item") |
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.
We add pure tag of each components as attribute in order of the scoping feature.
Could you please change all selectors that depend on tag to depend on attribute?
.find("ui5-segmented-button-item")
=> .find("[ui5-segmented-button-item]")
This will make all tests to work if we decide to test the scoping feature on all test pages.
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.
Yes, I was supposed to change that earlier but completely forgot, thank you :)
No description provided.