diff --git a/testsuite/features/reposync/srv_sync_products.feature b/testsuite/features/reposync/srv_sync_products.feature index 9112559c6686..dbc16d5401d7 100644 --- a/testsuite/features/reposync/srv_sync_products.feature +++ b/testsuite/features/reposync/srv_sync_products.feature @@ -1,4 +1,4 @@ -# Copyright (c) 2017-2024 SUSE LLC +# Copyright (c) 2017-2025 SUSE LLC # Licensed under the terms of the MIT license. Feature: Synchronize products in the products page of the Setup Wizard @@ -66,7 +66,8 @@ Feature: Synchronize products in the products page of the Setup Wizard And I should see the "Development Tools Module 15 SP4 x86_64" selected When I select "Containers Module 15 SP4 x86_64" as a product Then I should see the "Containers Module 15 SP4 x86_64" selected - When I select "SUSE Linux Enterprise Server LTSS 15 SP4 x86_64" as a product + When I select or deselect "SUSE Manager Client Tools Beta for SLE 15 x86_64 (BETA)" beta client tools + And I select "SUSE Linux Enterprise Server LTSS 15 SP4 x86_64" as a product Then I should see the "SUSE Linux Enterprise Server LTSS 15 SP4 x86_64" selected When I click the Add Product button And I wait until I see "SUSE Linux Enterprise Server 15 SP4 x86_64" product has been added diff --git a/testsuite/features/step_definitions/setup_steps.rb b/testsuite/features/step_definitions/setup_steps.rb index 98e12ea0eed9..e00664f1eb5b 100644 --- a/testsuite/features/step_definitions/setup_steps.rb +++ b/testsuite/features/step_definitions/setup_steps.rb @@ -85,6 +85,12 @@ raise ScriptError, "xpath: #{xpath} not found" unless find(:xpath, xpath).set(select == 'select') end +When(/^I select or deselect "([^"]*)" beta client tools$/) do |product| + xpath = "//span[contains(text(), '#{product}')]/ancestor::div[contains(@class, 'product-details-wrapper')]/div/input[@type='checkbox']" + product = find(:xpath, xpath) + product.set($beta_enabled) if product +end + When(/^I wait at most (\d+) seconds until the tree item "([^"]+)" has no sub-list$/) do |timeout, item| repeat_until_timeout(timeout: timeout.to_i, message: "could still find a sub list for tree item #{item}") do xpath = "//span[contains(text(), '#{item}')]/ancestor::div[contains(@class, 'product-details-wrapper')]/div/i[contains(@class, 'fa-angle-')]"