Skip to content

Commit

Permalink
OP-291: Clean up behat configs
Browse files Browse the repository at this point in the history
  • Loading branch information
hmfilar committed Jul 29, 2024
1 parent d53fe47 commit aafb2e1
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 128 deletions.
176 changes: 88 additions & 88 deletions tests/Behat/Resources/services.yml
Original file line number Diff line number Diff line change
@@ -1,102 +1,102 @@
services:
_defaults: { public: true }
_defaults: { public: true }

bitbag_sylius_cms_plugin.behat.context.setup.wishlist:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Context\Setup\WishlistContext
arguments:
- "@sylius.repository.product"
- "@bitbag_sylius_wishlist_plugin.context.wishlist"
- "@bitbag_sylius_wishlist_plugin.factory.wishlist_product"
- "@bitbag_sylius_wishlist_plugin.manager.wishlist"
- "@sylius.factory.taxon"
- "@sylius.factory.product_taxon"
- "@sylius.manager.product_taxon"
- "@sylius.behat.cookie_setter"
- "%bitbag_sylius_wishlist_plugin.parameters.wishlist_cookie_token%"
- '@sylius.repository.channel'
- '@sylius.repository.shop_user'
bitbag_wishlist_plugin.behat.context.setup.wishlist:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Context\Setup\WishlistContext
arguments:
- "@sylius.repository.product"
- "@bitbag_sylius_wishlist_plugin.context.wishlist"
- "@bitbag_sylius_wishlist_plugin.factory.wishlist_product"
- "@bitbag_sylius_wishlist_plugin.manager.wishlist"
- "@sylius.factory.taxon"
- "@sylius.factory.product_taxon"
- "@sylius.manager.product_taxon"
- "@sylius.behat.cookie_setter"
- "%bitbag_sylius_wishlist_plugin.parameters.wishlist_cookie_token%"
- '@sylius.repository.channel'
- '@sylius.repository.shop_user'

bitbag_sylius_cms_plugin.behat.context.ui.wishlist:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Context\Ui\WishlistContext
arguments:
- "@sylius.repository.product"
- "@bitbag_sylius_cms_plugin.behat.page.shop.product_index"
- "@bitbag_sylius_cms_plugin.behat.page.shop.product_show"
- "@bitbag_sylius_cms_plugin.behat.page.shop.wishlist"
- "@sylius.behat.notification_checker"
- "@bitbag_sylius_cms_plugin.behat.loginer"
- "@bitbag_sylius_cms_plugin.behat.wishlist_creator"
- "@sylius.product_variant_resolver.default"
- "@router"
- "@bitbag_sylius_wishlist_plugin.repository.wishlist"
- "%bitbag_sylius_wishlist_plugin.parameters.wishlist_cookie_token%"
- "@sylius.behat.shared_storage"
- "@sylius.behat.cookie_setter"
- "@sylius.repository.channel"
- "@sylius.repository.shop_user"
- "@bitbag_wishlist_plugin.behat.page.wishlist.index_page"
- "@bitbag_wishlist_plugin.behat.page.wishlist.chosen_show_page"
bitbag_wishlist_plugin.behat.context.ui.wishlist:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Context\Ui\WishlistContext
arguments:
- "@sylius.repository.product"
- "@bitbag_wishlist_plugin.behat.page.shop.product_index"
- "@bitbag_wishlist_plugin.behat.page.shop.product_show"
- "@bitbag_wishlist_plugin.behat.page.shop.wishlist"
- "@sylius.behat.notification_checker"
- "@bitbag_wishlist_plugin.behat.loginer"
- "@bitbag_wishlist_plugin.behat.wishlist_creator"
- "@sylius.product_variant_resolver.default"
- "@router"
- "@bitbag_sylius_wishlist_plugin.repository.wishlist"
- "%bitbag_sylius_wishlist_plugin.parameters.wishlist_cookie_token%"
- "@sylius.behat.shared_storage"
- "@sylius.behat.cookie_setter"
- "@sylius.repository.channel"
- "@sylius.repository.shop_user"
- "@bitbag_wishlist_plugin.behat.page.wishlist.index_page"
- "@bitbag_wishlist_plugin.behat.page.wishlist.chosen_show_page"

bitbag_wishlist_plugin.behat.context.cli.wishlist:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Context\Cli\WishlistContext
arguments:
- '@kernel'
bitbag_wishlist_plugin.behat.context.cli.wishlist:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Context\Cli\WishlistContext
arguments:
- '@kernel'

bitbag_wishlist_plugin.behat.context.common.wishlist:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Context\Common\WishlistContext
arguments:
- '@bitbag_sylius_wishlist_plugin.repository.wishlist'
bitbag_wishlist_plugin.behat.context.common.wishlist:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Context\Common\WishlistContext
arguments:
- '@bitbag_sylius_wishlist_plugin.repository.wishlist'

bitbag_sylius_cms_plugin.behat.page.shop.wishlist:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Page\Shop\WishlistPage
parent: sylius.behat.symfony_page
public: false
bitbag_wishlist_plugin.behat.page.shop.wishlist:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Page\Shop\WishlistPage
parent: sylius.behat.symfony_page
public: false

bitbag_wishlist_plugin.behat.page.wishlist.index_page:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Page\Shop\Wishlist\IndexPage
parent: sylius.behat.symfony_page
public: false
bitbag_wishlist_plugin.behat.page.wishlist.index_page:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Page\Shop\Wishlist\IndexPage
parent: sylius.behat.symfony_page
public: false

bitbag_wishlist_plugin.behat.page.wishlist.chosen_show_page:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Page\Shop\Wishlist\ChosenShowPage
parent: sylius.behat.symfony_page
public: false
bitbag_wishlist_plugin.behat.page.wishlist.chosen_show_page:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Page\Shop\Wishlist\ChosenShowPage
parent: sylius.behat.symfony_page
public: false

bitbag_sylius_cms_plugin.behat.page.shop.product_index:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Page\Shop\ProductIndexPage
parent: sylius.behat.page.shop.product.index
public: false
bitbag_wishlist_plugin.behat.page.shop.product_index:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Page\Shop\ProductIndexPage
parent: sylius.behat.page.shop.product.index
public: false

bitbag_sylius_cms_plugin.behat.page.shop.product_show:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Page\Shop\ProductShowPage
parent: sylius.behat.page.shop.product.show
public: false
bitbag_wishlist_plugin.behat.page.shop.product_show:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Page\Shop\ProductShowPage
parent: sylius.behat.page.shop.product.show
public: false

bitbag_sylius_cms_plugin.behat.loginer:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Service\Loginer
arguments:
- "@sylius.factory.customer"
- "@sylius.factory.shop_user"
- "@sylius.repository.shop_user"
- "@sylius.behat.page.shop.account.login"
- "@sylius.behat.page.shop.home"
bitbag_wishlist_plugin.behat.loginer:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Service\Loginer
arguments:
- "@sylius.factory.customer"
- "@sylius.factory.shop_user"
- "@sylius.repository.shop_user"
- "@sylius.behat.page.shop.account.login"
- "@sylius.behat.page.shop.home"

bitbag_sylius_cms_plugin.behat.wishlist_creator:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Service\WishlistCreator
arguments:
- "@bitbag_sylius_wishlist_plugin.factory.wishlist_product"
- "@bitbag_sylius_wishlist_plugin.repository.wishlist"
bitbag_wishlist_plugin.behat.wishlist_creator:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Service\WishlistCreator
arguments:
- "@bitbag_sylius_wishlist_plugin.factory.wishlist_product"
- "@bitbag_sylius_wishlist_plugin.repository.wishlist"

bitbag_wishlist_plugin.behat.context.api.wishlist:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Context\Api\WishlistContext
arguments:
- "@bitbag_sylius_wishlist_plugin.repository.wishlist"
- "@sylius.repository.shop_user"
- "@bitbag_wishlist_plugin.http_client"
- "@router"
- '@doctrine.orm.entity_manager'
bitbag_wishlist_plugin.behat.context.api.wishlist:
class: Tests\BitBag\SyliusWishlistPlugin\Behat\Context\Api\WishlistContext
arguments:
- "@bitbag_sylius_wishlist_plugin.repository.wishlist"
- "@sylius.repository.shop_user"
- "@bitbag_wishlist_plugin.http_client"
- "@router"
- '@doctrine.orm.entity_manager'

bitbag_wishlist_plugin.http_client:
class: GuzzleHttp\Client
arguments:
- http_errors: false
bitbag_wishlist_plugin.http_client:
class: GuzzleHttp\Client
arguments:
- http_errors: false
6 changes: 3 additions & 3 deletions tests/Behat/Resources/suites.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
imports:
- suites/ui/ui_wishlist.yml
- suites/api/api_wishlist.yml
- suites/cli/cli_wishlist.yml
- suites/ui/ui_wishlist.yml
- suites/api/api_wishlist.yml
- suites/cli/cli_wishlist.yml
34 changes: 17 additions & 17 deletions tests/Behat/Resources/suites/api/api_wishlist.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
default:
suites:
api_wishlist:
contexts:
- sylius.behat.context.hook.doctrine_orm
- sylius.behat.context.setup.channel
- sylius.behat.context.setup.product
- sylius.behat.context.setup.user
- sylius.behat.context.transform.lexical
- sylius.behat.context.transform.product
- sylius.behat.context.transform.product_variant
- sylius.behat.context.transform.channel
- sylius.behat.context.api.shop.channel
suites:
api_wishlist:
contexts:
- sylius.behat.context.hook.doctrine_orm
- sylius.behat.context.setup.channel
- sylius.behat.context.setup.product
- sylius.behat.context.setup.user
- sylius.behat.context.transform.lexical
- sylius.behat.context.transform.product
- sylius.behat.context.transform.product_variant
- sylius.behat.context.transform.channel
- sylius.behat.context.api.shop.channel

- bitbag_sylius_cms_plugin.behat.context.setup.wishlist
- bitbag_sylius_cms_plugin.behat.context.ui.wishlist
- bitbag_wishlist_plugin.behat.context.api.wishlist
filters:
tags: "@api_wishlist&&@api"
- bitbag_wishlist_plugin.behat.context.setup.wishlist
- bitbag_wishlist_plugin.behat.context.ui.wishlist
- bitbag_wishlist_plugin.behat.context.api.wishlist
filters:
tags: "@api_wishlist&&@api"
4 changes: 2 additions & 2 deletions tests/Behat/Resources/suites/cli/cli_wishlist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ default:

- bitbag_wishlist_plugin.behat.context.cli.wishlist
- bitbag_wishlist_plugin.behat.context.common.wishlist
- bitbag_sylius_cms_plugin.behat.context.ui.wishlist
- bitbag_sylius_cms_plugin.behat.context.setup.wishlist
- bitbag_wishlist_plugin.behat.context.ui.wishlist
- bitbag_wishlist_plugin.behat.context.setup.wishlist

filters:
tags: "@cli_wishlist&&@cli"
36 changes: 18 additions & 18 deletions tests/Behat/Resources/suites/ui/ui_wishlist.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
default:
suites:
ui_wishlist:
contexts:
- sylius.behat.context.hook.doctrine_orm
- sylius.behat.context.setup.channel
- sylius.behat.context.setup.product
- sylius.behat.context.setup.customer
- sylius.behat.context.setup.shop_security
- sylius.behat.context.transform.lexical
- sylius.behat.context.transform.product
- sylius.behat.context.transform.channel
- sylius.behat.context.ui.shop.product
- sylius.behat.context.ui.shop.cart
- Behat\MinkExtension\Context\MinkContext
suites:
ui_wishlist:
contexts:
- sylius.behat.context.hook.doctrine_orm
- sylius.behat.context.setup.channel
- sylius.behat.context.setup.product
- sylius.behat.context.setup.customer
- sylius.behat.context.setup.shop_security
- sylius.behat.context.transform.lexical
- sylius.behat.context.transform.product
- sylius.behat.context.transform.channel
- sylius.behat.context.ui.shop.product
- sylius.behat.context.ui.shop.cart
- Behat\MinkExtension\Context\MinkContext

- bitbag_sylius_cms_plugin.behat.context.setup.wishlist
- bitbag_sylius_cms_plugin.behat.context.ui.wishlist
filters:
tags: "@wishlist&&@ui"
- bitbag_wishlist_plugin.behat.context.setup.wishlist
- bitbag_wishlist_plugin.behat.context.ui.wishlist
filters:
tags: "@wishlist&&@ui"

0 comments on commit aafb2e1

Please sign in to comment.