Skip to content

Commit

Permalink
Adapt cypress tests
Browse files Browse the repository at this point in the history
With the addition of new PF5 classes,
some Cypress tests need to be adapted
to work with the new `v5` classes.

Signed-off-by: Carla Martinez <carlmart@redhat.com>
  • Loading branch information
carma12 committed Jan 8, 2024
1 parent 63d7ac8 commit bf93d01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/features/steps/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Given("I am logged in as {string}", (username: string) => {
}
});
cy.get(
"div.pf-v5-c-masthead__content button span.pf-v5-c-dropdown__toggle-text"
"div.pf-v5-c-masthead__content button span.pf-v5-c-menu-toggle__text"
).then(($ele) => {
if ($ele.text() != username) {
cy.loginAsAnUser(
Expand Down Expand Up @@ -149,5 +149,5 @@ Then(
// Kebab
When("I click on kebab menu and select {string}", (buttonName: string) => {
cy.get("#main-dropdown-kebab").click();
cy.get("button.pf-v5-c-dropdown__menu-item").contains(buttonName).click();
cy.get("span.pf-v5-c-menu__item-text").contains(buttonName).click();
});

0 comments on commit bf93d01

Please sign in to comment.