Skip to content
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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

didip1000
Copy link
Contributor

No description provided.

@didip1000 didip1000 requested a review from tsanislavgatev March 6, 2025 11:43
@didip1000 didip1000 self-assigned this Mar 6, 2025
@didip1000 didip1000 changed the title feat(ui5-segmented-button): migrate tests to cypress test(ui5-segmented-button): migrate tests to cypress Mar 6, 2025
@didip1000 didip1000 requested a review from hinzzx March 7, 2025 15:10
Copy link
Contributor

@nnaydenow nnaydenow left a 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")
Copy link
Contributor

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.

Copy link
Contributor Author

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants