Skip to content

Commit

Permalink
Fix sudo rules settings test
Browse files Browse the repository at this point in the history
Sudo rules > Settings test is failing when trying to
add a new sudo allow command group. This needs to be
selected from a dual list selector and it fails
when clicking the arrow to perform a global search.

Signed-off-by: Carla Martinez <[email protected]>
  • Loading branch information
carma12 committed Feb 5, 2025
1 parent 6fabf1c commit fe2d0f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion tests/features/steps/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Then("I click on the breadcrump link {string}", (value: string) => {

// Dual list
Then("I click on the dual list item {string}", (value: string) => {
cy.get(".pf-v5-c-dual-list-selector__item-text").contains(value).click();
cy.get(".pf-v5-c-dual-list-selector__item-text", { timeout: 2000 }).contains(value).click();
});

Then("I click on the dual list add selected button", () => {
Expand Down
2 changes: 0 additions & 2 deletions tests/features/sudo_rules_settings.feature
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,10 @@ Feature: Sudo rules - Settings page
Given I am on "sudo-command-groups" page
When I click on "Add" button
* I type in the field "Command group name" text "cmdgroup1"
* I type in the field "Description" text "my description"
* in the modal dialog I click on "Add" button
* I should see "success" alert with text "New sudo command group added"
* I close the alert
Then I should see "cmdgroup1" entry in the data table
* entry "cmdgroup1" should have attribute "Description" set to "my description"

Scenario: Add a new sudo allow command group
Given I am on the "sudo-rules" > "sudoRule1" Settings page
Expand Down

0 comments on commit fe2d0f0

Please sign in to comment.