Skip to content

Commit

Permalink
Make sure the product page is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
maximenoel8 committed Oct 7, 2024
1 parent 3790ee2 commit ad9872c
Show file tree
Hide file tree
Showing 2 changed files with 4 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
5 changes: 3 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,9 @@
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 products synchronized' if page.has_no_xpath?('//*[contains(@class, \'fa-check-circle\')]')
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 ad9872c

Please sign in to comment.