Skip to content

Commit

Permalink
upgrade behats
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherhero committed Jul 30, 2024
1 parent a32d48c commit 0d6ad79
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions features/banner.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ 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

@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
2 changes: 1 addition & 1 deletion tests/Behat/Page/Admin/BannerPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]);
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Resources/suites/ui/admin/ad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ default:
- bitbag.sylius_banner_plugin.behat.context.ui.admin.ad_context

filters:
tags: "@managing_ad && @ui"
tags: "@managing_ad&&@ui"
2 changes: 1 addition & 1 deletion tests/Behat/Resources/suites/ui/admin/banner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ default:
- bitbag.sylius_banner_plugin.behat.transformer.ad_transformer

filters:
tags: "@managing_banners && @ui"
tags: "@managing_banners&&@ui"
2 changes: 1 addition & 1 deletion tests/Behat/Resources/suites/ui/admin/section.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ default:
- bitbag.sylius_banner_plugin.behat.context.ui.admin.section_context

filters:
tags: "@managing_sections && @ui"
tags: "@managing_sections&&@ui"
2 changes: 1 addition & 1 deletion tests/Behat/Resources/suites/ui/shop/banners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ default:
- bitbag.sylius_banner_plugin.behat.transformer.ad_transformer

filters:
tags: "@showing_banners && @ui"
tags: "@showing_banners&&@ui"

0 comments on commit 0d6ad79

Please sign in to comment.