From 373bb3ea8c969233b7ef23747a86225d6d939921 Mon Sep 17 00:00:00 2001 From: Maxime Noel Date: Mon, 14 Oct 2024 12:31:33 +1300 Subject: [PATCH] Rename step verifying UI after reposync to better reflect the tests. --- .../build_validation/reposync/srv_sync_all_products.feature | 2 +- testsuite/features/reposync/srv_sync_products.feature | 2 +- testsuite/features/step_definitions/navigation_steps.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuite/features/build_validation/reposync/srv_sync_all_products.feature b/testsuite/features/build_validation/reposync/srv_sync_all_products.feature index 8d140db9b84..7b4e6e386ad 100644 --- a/testsuite/features/build_validation/reposync/srv_sync_all_products.feature +++ b/testsuite/features/build_validation/reposync/srv_sync_all_products.feature @@ -820,4 +820,4 @@ Feature: Synchronize products in the products page of the Setup Wizard 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 + And I should only see success signs in the product list diff --git a/testsuite/features/reposync/srv_sync_products.feature b/testsuite/features/reposync/srv_sync_products.feature index ea1dfc562af..ccbf0a69c7e 100644 --- a/testsuite/features/reposync/srv_sync_products.feature +++ b/testsuite/features/reposync/srv_sync_products.feature @@ -177,7 +177,7 @@ Feature: Synchronize products in the products page of the Setup Wizard 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 + And I should only see success signs in the product list @scc_credentials Scenario: Trigger a refresh of the products synched from SCC diff --git a/testsuite/features/step_definitions/navigation_steps.rb b/testsuite/features/step_definitions/navigation_steps.rb index 90887e861fa..28078aab2fd 100644 --- a/testsuite/features/step_definitions/navigation_steps.rb +++ b/testsuite/features/step_definitions/navigation_steps.rb @@ -799,7 +799,7 @@ end end -Then(/^I should not see a warning nor an error sign$/) do +Then(/^I should only see success signs in the product list$/) 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, 'Warning detected' if page.has_xpath?('//*[contains(@class, \'fa-exclamation-triangle\')]')