Skip to content

Commit

Permalink
Wait for the product page to be loaded before checking the signs. (#9332
Browse files Browse the repository at this point in the history
)

* Wait for the product page to be loaded before checking the signs.
  • Loading branch information
maximenoel8 authored Oct 9, 2024
1 parent db30fbe commit de0b604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions testsuite/features/reposync/srv_sync_products.feature
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ Feature: Synchronize products in the products page of the Setup Wizard
Scenario: Detect product loading issues from the UI
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

Expand Down
2 changes: 1 addition & 1 deletion testsuite/features/step_definitions/navigation_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@

Then(/^I should not see a warning nor an error sign$/) do
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, '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
Expand Down

0 comments on commit de0b604

Please sign in to comment.