-
Notifications
You must be signed in to change notification settings - Fork 276
chore(ui5-busy-indicator): migrate wdio tests to cypress #11685
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
…BusyIndicatorCy
</BusyIndicator> | ||
); | ||
|
||
cy.get("#btn").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.
asset btn is focused after click
.find(".ui5-busy-indicator-busy-area") | ||
.should("exist"); | ||
|
||
cy.get("#btn").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.
asset btn is focused after click
}); | ||
|
||
it("tests event propagation when busy indicator is active", () => { | ||
const onClickStub = cy.stub().as("clickStub"); |
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.
since it's only 1 handler, you can add the stub directly to the jsx
</BusyIndicator> | ||
); | ||
|
||
cy.get("#busy-container") |
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.
work with [custom-tag] attribute selection instead of ids
</div> | ||
); | ||
|
||
cy.get("#beforeIndicatorWithBtn").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.
asset btn is focused after click
</Dialog> | ||
); | ||
|
||
cy.get("#dialog-inactive-indicator") |
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.
use custom commands for dialog to open and to assert that it's opened.
JIRA: BGSOFUIRODOPI-3462