From 0d6ad791992185869d07a74ce8fcea5f31aba205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Odwa=C5=BCny?= Date: Tue, 30 Jul 2024 02:30:14 +0200 Subject: [PATCH] upgrade behats --- features/banner.feature | 6 +++--- tests/Behat/Page/Admin/BannerPage.php | 2 +- tests/Behat/Resources/suites/ui/admin/ad.yaml | 2 +- tests/Behat/Resources/suites/ui/admin/banner.yaml | 2 +- tests/Behat/Resources/suites/ui/admin/section.yaml | 2 +- tests/Behat/Resources/suites/ui/shop/banners.yaml | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/features/banner.feature b/features/banner.feature index 03978f4..d5a26e3 100644 --- a/features/banner.feature +++ b/features/banner.feature @@ -14,7 +14,7 @@ Feature: Adding a new banner @ui Scenario: Adding a new banner When I fill form with "TEST-SECTION" section, "TEST-AD" ad, "en_US" and "100" priority - And I add new image "ford.jpg" and fill alt as "test-alt" and link as "http://127.0.0.1:8000/en_US" + And I add new image "ford.jpg" and fill alt as "test-alt" and link as "http://127.0.0.1:8080/en_US" And I submit form Then I should be notified that it has been successfully created And "TEST-AD" ad should has 1 banners @@ -22,12 +22,12 @@ Feature: Adding a new banner @ui Scenario: Adding 2 banners to one ad When I fill form with "TEST-SECTION" section, "TEST-AD" ad, "en_US" and "100" priority - And I add new image "ford.jpg" and fill alt as "test-alt" and link as "http://127.0.0.1:8000/en_US" + And I add new image "ford.jpg" and fill alt as "test-alt" and link as "http://127.0.0.1:8080/en_US" And I submit form Then I should be notified that it has been successfully created And I am on new banner page And I fill form with "TEST-SECTION" section, "TEST-AD" ad, "en_US" and "150" priority - And I add new image "troll.jpg" and fill alt as "test-alt" and link as "http://127.0.0.1:8000/en_US" + And I add new image "troll.jpg" and fill alt as "test-alt" and link as "http://127.0.0.1:8080/en_US" And I submit form Then I should be notified that it has been successfully created And "TEST-AD" ad should has 2 banners diff --git a/tests/Behat/Page/Admin/BannerPage.php b/tests/Behat/Page/Admin/BannerPage.php index c3f1a5f..698a38f 100644 --- a/tests/Behat/Page/Admin/BannerPage.php +++ b/tests/Behat/Page/Admin/BannerPage.php @@ -90,7 +90,7 @@ protected function getDefinedElements(): array 'banner_section_field' => '#bitbag_sylius_banner_plugin_banner_section', 'banner_priority_field' => '#bitbag_sylius_banner_plugin_banner_priority', 'banner_ad_field' => '#bitbag_sylius_banner_plugin_banner_ads', - 'banner_file_field' => '#bitbag_sylius_banner_plugin_banner_file', + 'banner_file_field' => 'input[name="bitbag_sylius_banner_plugin_banner[file]"]', 'banner_link_field' => '#bitbag_sylius_banner_plugin_banner_link', 'banner_alt_field' => '#bitbag_sylius_banner_plugin_banner_alt', ]); diff --git a/tests/Behat/Resources/suites/ui/admin/ad.yaml b/tests/Behat/Resources/suites/ui/admin/ad.yaml index 06bde62..ef5fe0c 100644 --- a/tests/Behat/Resources/suites/ui/admin/ad.yaml +++ b/tests/Behat/Resources/suites/ui/admin/ad.yaml @@ -14,4 +14,4 @@ default: - bitbag.sylius_banner_plugin.behat.context.ui.admin.ad_context filters: - tags: "@managing_ad && @ui" + tags: "@managing_ad&&@ui" diff --git a/tests/Behat/Resources/suites/ui/admin/banner.yaml b/tests/Behat/Resources/suites/ui/admin/banner.yaml index 722dbb8..e0022fb 100644 --- a/tests/Behat/Resources/suites/ui/admin/banner.yaml +++ b/tests/Behat/Resources/suites/ui/admin/banner.yaml @@ -17,4 +17,4 @@ default: - bitbag.sylius_banner_plugin.behat.transformer.ad_transformer filters: - tags: "@managing_banners && @ui" + tags: "@managing_banners&&@ui" diff --git a/tests/Behat/Resources/suites/ui/admin/section.yaml b/tests/Behat/Resources/suites/ui/admin/section.yaml index b6612ab..98d3650 100644 --- a/tests/Behat/Resources/suites/ui/admin/section.yaml +++ b/tests/Behat/Resources/suites/ui/admin/section.yaml @@ -14,4 +14,4 @@ default: - bitbag.sylius_banner_plugin.behat.context.ui.admin.section_context filters: - tags: "@managing_sections && @ui" + tags: "@managing_sections&&@ui" diff --git a/tests/Behat/Resources/suites/ui/shop/banners.yaml b/tests/Behat/Resources/suites/ui/shop/banners.yaml index 9eb3911..9436882 100644 --- a/tests/Behat/Resources/suites/ui/shop/banners.yaml +++ b/tests/Behat/Resources/suites/ui/shop/banners.yaml @@ -23,4 +23,4 @@ default: - bitbag.sylius_banner_plugin.behat.transformer.ad_transformer filters: - tags: "@showing_banners && @ui" + tags: "@showing_banners&&@ui"