diff --git a/features/admin/product/managing_products/checking_products_in_the_shop_while_editing_them.feature b/features/admin/product/managing_products/checking_products_in_the_shop_while_editing_them.feature index 9fbd091bf40..cb24c7c97de 100644 --- a/features/admin/product/managing_products/checking_products_in_the_shop_while_editing_them.feature +++ b/features/admin/product/managing_products/checking_products_in_the_shop_while_editing_them.feature @@ -10,7 +10,7 @@ Feature: Checking products in the shop while editing them And the store has a product "Bugatti" available in "United States" channel And I am logged in as an administrator - @todo @ui @no-api + @ui @no-api Scenario: Accessing product show page in shop from the product edit page where product is available in more than one channel Given this product is available in the "Europe" channel And I am browsing products @@ -18,14 +18,14 @@ Feature: Checking products in the shop while editing them And I choose to show this product in the "Europe" channel Then I should see this product in the "Europe" channel in the shop - @todo @ui @no-api + @ui @no-api Scenario: Accessing product show page in shop from the product edit page where product is available in one channel Given I am browsing products When I want to modify this product And I choose to show this product in this channel Then I should see this product in the "United States" channel in the shop - @todo @ui @no-api + @ui @no-api Scenario: Being unable to access product show page in shop when the product is disabled Given this product has been disabled When I want to modify this product diff --git a/features/admin/product/viewing_product_in_admin_panel/checking_products_in_the_shop_while_viewing_them.feature b/features/admin/product/viewing_product_in_admin_panel/checking_products_in_the_shop_while_viewing_them.feature index 6c5ae3c9d23..50874a17131 100644 --- a/features/admin/product/viewing_product_in_admin_panel/checking_products_in_the_shop_while_viewing_them.feature +++ b/features/admin/product/viewing_product_in_admin_panel/checking_products_in_the_shop_while_viewing_them.feature @@ -11,20 +11,20 @@ Feature: Checking products in the shop while viewing them And I am logged in as an administrator And I am browsing products - @todo @ui @no-api + @ui @no-api Scenario: Accessing product show page in shop from the product show page where product is available in more than one channel Given this product is available in the "Europe" channel When I access the "Bugatti" product And I show this product in the "Europe" channel Then I should see this product in the "Europe" channel in the shop - @todo @ui @no-api + @ui @no-api Scenario: Accessing product show page in shop from the product show page where product is available in one channel When I access the "Bugatti" product And I show this product in this channel Then I should see this product in the "Europe" channel in the shop - @todo @ui @no-api + @ui @no-api Scenario: Being unable to access product show page in shop when the product is disabled Given this product has been disabled When I access the "Bugatti" product diff --git a/src/Sylius/Behat/Page/Admin/Product/ShowPage.php b/src/Sylius/Behat/Page/Admin/Product/ShowPage.php index d5bb4aa31dc..56cd8ae56c5 100644 --- a/src/Sylius/Behat/Page/Admin/Product/ShowPage.php +++ b/src/Sylius/Behat/Page/Admin/Product/ShowPage.php @@ -81,13 +81,13 @@ public function showVariantEditPage(ProductVariantInterface $variant): void protected function getDefinedElements(): array { return array_merge(parent::getDefinedElements(), [ + 'breadcrumb' => '.breadcrumb > div', 'edit_product_button' => '#edit-product', 'edit_variant_button' => '#variants .variants-accordion__title:contains("%variantCode%") .edit-variant', 'product_name' => '#header h1 .content > span', - 'show_product_dropdown' => '.scrolling.menu', - 'show_product_single_button' => '.ui.labeled.icon.button', + 'show_product_dropdown' => '[data-test-view-in-store]', + 'show_product_single_button' => '[data-test-view-in-store]', 'variants' => '#variants', - 'breadcrumb' => '.breadcrumb > div', ]); } diff --git a/src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPage.php b/src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPage.php index c74882e056f..17d224fbb67 100644 --- a/src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPage.php +++ b/src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPage.php @@ -365,8 +365,8 @@ protected function getDefinedElements(): array 'product_taxon' => '#sylius-product-taxonomy-tree .item .header:contains("%taxonName%") input', 'product_taxons' => '#sylius_product_productTaxons', 'shipping_required' => '#sylius_product_variant_shippingRequired', - 'show_product_dropdown' => '.scrolling.menu', - 'show_product_single_button' => '[data-test-show-product-in-shop-page]', + 'show_product_dropdown' => '[data-test-view-in-store]', + 'show_product_single_button' => '[data-test-view-in-store]', 'slug' => '#sylius_product_translations_%locale%_slug', 'tab' => '.menu [data-tab="%name%"]', 'taxonomy' => 'a[data-tab="taxonomy"]',