-
Notifications
You must be signed in to change notification settings - Fork 276
chore(ui5-responsive-popover): migrate wdio tests to cypress #11701
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
base: main
Are you sure you want to change the base?
Conversation
</> | ||
); | ||
|
||
cy.get("#respPopover").invoke("attr", "open", true); |
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.
there is custom command for responsive popover which checks whether the component is open and to open it
</> | ||
); | ||
|
||
cy.get("#respPopover").invoke("attr", "open", true); |
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.
i would switch the id selector to [custom-tag] selector as there is only 1 RP on the page.
</> | ||
); | ||
|
||
cy.get("#btnOpen3").realClick(); |
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.
do you need to click on the button since RP is programatically opened? same applies for the following tests
it("header and footer are hidden on desktop", () => { | ||
cy.mount( | ||
<> | ||
<Button id="btnOpen3" /> |
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.
remove {}
|
||
describe("Acc", () => { | ||
it("tests accessible-role", () => { | ||
cy.mount( |
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.
split these 3 test into 3 smaller ones and add description in the test title what exactly is tested. like: tests accessible-role=AlertDialog
JIRA: BGSOFUIRODOPI-3462