From 970820243ef3ce47c738e16707e17f8218bfb5b8 Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Thu, 17 Oct 2024 06:44:19 +0200 Subject: [PATCH] [Behat] Make scenario for adding a promotion in different language non javascript --- .../adding_promotion_in_different_languages.feature | 2 +- src/Sylius/Behat/Page/Admin/Promotion/CreatePage.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/features/promotion/managing_promotions/adding_promotion_in_different_languages.feature b/features/promotion/managing_promotions/adding_promotion_in_different_languages.feature index 65ae9d7bc3..12bcaed068 100644 --- a/features/promotion/managing_promotions/adding_promotion_in_different_languages.feature +++ b/features/promotion/managing_promotions/adding_promotion_in_different_languages.feature @@ -9,7 +9,7 @@ Feature: Adding promotion in different languages And that channel allows to shop using "English (United States)" and "Polish (Poland)" locales And I am logged in as an administrator - @api @ui @javascript + @api @ui Scenario: Adding a promotion with a label in a different language When I want to create a new promotion And I specify its code as "FULL_METAL_PROMOTION" diff --git a/src/Sylius/Behat/Page/Admin/Promotion/CreatePage.php b/src/Sylius/Behat/Page/Admin/Promotion/CreatePage.php index b795d34e34..6ea3b0dacd 100644 --- a/src/Sylius/Behat/Page/Admin/Promotion/CreatePage.php +++ b/src/Sylius/Behat/Page/Admin/Promotion/CreatePage.php @@ -193,8 +193,6 @@ class CreatePage extends BaseCreatePage implements CreatePageInterface public function hasLabel(string $label, string $localeCode): bool { - $this->getDocument()->find('css', 'div[data-locale="' . $localeCode . '"]')->click(); - $labelElement = $this->getDocument()->find('css', sprintf('label:contains("%s")', $label)); if (null === $labelElement) { return false;