Skip to content

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

duygu-rmdn
Copy link
Contributor

JIRA: BGSOFUIRODOPI-3462

@duygu-rmdn duygu-rmdn requested a review from a team June 10, 2025 08:48
@duygu-rmdn duygu-rmdn requested a review from dimovpetar June 11, 2025 11:22
@duygu-rmdn duygu-rmdn requested a review from dimovpetar June 11, 2025 12:28
</BusyIndicator>
);

cy.get("#btn").realClick();
Copy link
Contributor

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();
Copy link
Contributor

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");
Copy link
Contributor

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")
Copy link
Contributor

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();
Copy link
Contributor

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")
Copy link
Contributor

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.

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