Skip to content

Commit

Permalink
Merge pull request uyuni-project#9326 from maximenoel8/fix_green_repo…
Browse files Browse the repository at this point in the history
…sync_bv

Make sure the product page is loaded
  • Loading branch information
raulillo82 authored Oct 8, 2024
2 parents e27ea19 + c22c3b0 commit ca14be0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -817,5 +817,6 @@ Feature: Synchronize products in the products page of the Setup Wizard
Scenario: Detect product loading issues from the UI in Build Validation
Given I am authorized for the "Admin" section
When I follow the left menu "Admin > Setup Wizard > Products"
And I wait until I do not see "Loading" text
Then I should not see a "Operation not successful" text
And I should not see a warning nor an error sign
6 changes: 4 additions & 2 deletions testsuite/features/step_definitions/navigation_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -800,8 +800,10 @@
end

Then(/^I should not see a warning nor an error sign$/) do
raise ScriptError, 'Warning detected' unless page.has_no_xpath?('//*[contains(@class, \'fa-exclamation-triangle\')]')
raise ScriptError, 'Error detected' unless page.has_no_xpath?('//*[contains(@class, \'fa-exclamation-circle\')]')
raise ScriptError, 'No product synchronized' if page.has_no_xpath?('//*[contains(@class, \'fa-check-circle\')]')
raise ScriptError, 'At least one product is not fully synchronized' if page.has_ xpath?('//*[contains(@class, \'fa-spinner\')]')
raise ScriptError, 'Warning detected' if page.has_xpath?('//*[contains(@class, \'fa-exclamation-triangle\')]')
raise ScriptError, 'Error detected' if page.has_xpath?('//*[contains(@class, \'fa-exclamation-circle\')]')
end

Then(/^I select the "([^"]*)" repo$/) do |repo|
Expand Down

0 comments on commit ca14be0

Please sign in to comment.