@@ -15,16 +15,16 @@ |
||
| 15 | 15 | use Sylius\Behat\NotificationType; |
| 16 | 16 | use Sylius\Behat\Page\Admin\Crud\CreatePageInterface; |
| 17 | 17 | use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface; |
| 18 | +use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
| 18 | 19 | use Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface; |
| 19 | 20 | use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface; |
| 20 | 21 | use Sylius\Behat\Page\Admin\Product\IndexPageInterface; |
| 21 | 22 | use Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface; |
| 22 | 23 | use Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface; |
| 23 | -use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
| 24 | 24 | use Sylius\Behat\Service\NotificationCheckerInterface; |
| 25 | 25 | use Sylius\Behat\Service\Resolver\CurrentProductPageResolverInterface; |
| 26 | -use Sylius\Component\Core\Model\ProductInterface; |
|
| 27 | 26 | use Sylius\Behat\Service\SharedStorageInterface; |
| 27 | +use Sylius\Component\Core\Model\ProductInterface; |
|
| 28 | 28 | use Sylius\Component\Taxonomy\Model\TaxonInterface; |
| 29 | 29 | use Webmozart\Assert\Assert; |
| 30 | 30 | |
@@ -15,6 +15,7 @@ discard block |
||
| 15 | 15 | use Behat\Gherkin\Node\TableNode; |
| 16 | 16 | use Behat\Mink\Element\NodeElement; |
| 17 | 17 | use Doctrine\Common\Persistence\ObjectManager; |
| 18 | +use Sylius\Behat\Service\SharedStorageInterface; |
|
| 18 | 19 | use Sylius\Component\Attribute\Factory\AttributeFactoryInterface; |
| 19 | 20 | use Sylius\Component\Core\Formatter\StringInflector; |
| 20 | 21 | use Sylius\Component\Core\Model\ChannelInterface; |
@@ -24,7 +25,6 @@ discard block |
||
| 24 | 25 | use Sylius\Component\Core\Model\ProductVariantInterface; |
| 25 | 26 | use Sylius\Component\Core\Pricing\Calculators; |
| 26 | 27 | use Sylius\Component\Core\Repository\ProductRepositoryInterface; |
| 27 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
| 28 | 28 | use Sylius\Component\Core\Uploader\ImageUploaderInterface; |
| 29 | 29 | use Sylius\Component\Product\Factory\ProductFactoryInterface; |
| 30 | 30 | use Sylius\Component\Product\Generator\SlugGeneratorInterface; |
@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | use Sylius\Component\Product\Model\ProductAttributeValueInterface; |
| 33 | 33 | use Sylius\Component\Product\Model\ProductOptionInterface; |
| 34 | 34 | use Sylius\Component\Product\Model\ProductOptionValueInterface; |
| 35 | +use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
| 35 | 36 | use Sylius\Component\Resource\Factory\FactoryInterface; |
| 36 | -use Sylius\Component\Shipping\Model\ShippingCategoryInterface; |
|
| 37 | 37 | use Sylius\Component\Resource\Model\TranslationInterface; |
| 38 | +use Sylius\Component\Shipping\Model\ShippingCategoryInterface; |
|
| 38 | 39 | use Sylius\Component\Taxation\Model\TaxCategoryInterface; |
| 39 | -use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
| 40 | 40 | use Symfony\Component\HttpFoundation\File\UploadedFile; |
| 41 | 41 | |
| 42 | 42 | /** |
@@ -14,32 +14,30 @@ |
||
| 14 | 14 | use Behat\Behat\Context\Context; |
| 15 | 15 | use Doctrine\Common\Persistence\ObjectManager; |
| 16 | 16 | use SM\Factory\FactoryInterface as StateMachineFactoryInterface; |
| 17 | -use Sylius\Component\Core\Currency\CurrencyStorageInterface; |
|
| 17 | +use Sylius\Behat\Service\SharedStorageInterface; |
|
| 18 | +use Sylius\Component\Core\Model\AddressInterface; |
|
| 18 | 19 | use Sylius\Component\Core\Model\ChannelInterface; |
| 19 | 20 | use Sylius\Component\Core\Model\ChannelPricingInterface; |
| 20 | -use Sylius\Component\Core\Model\PromotionCouponInterface; |
|
| 21 | -use Sylius\Component\Core\OrderCheckoutTransitions; |
|
| 22 | -use Sylius\Component\Currency\Model\CurrencyInterface; |
|
| 23 | -use Sylius\Component\Order\Processor\OrderProcessorInterface; |
|
| 24 | -use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
|
| 25 | -use Sylius\Component\Core\Model\AddressInterface; |
|
| 26 | 21 | use Sylius\Component\Core\Model\OrderInterface; |
| 27 | 22 | use Sylius\Component\Core\Model\OrderItemInterface; |
| 28 | 23 | use Sylius\Component\Core\Model\ProductInterface; |
| 29 | 24 | use Sylius\Component\Core\Model\ProductVariantInterface; |
| 25 | +use Sylius\Component\Core\Model\PromotionCouponInterface; |
|
| 30 | 26 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
| 27 | +use Sylius\Component\Core\OrderCheckoutTransitions; |
|
| 31 | 28 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
| 32 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
| 29 | +use Sylius\Component\Currency\Model\CurrencyInterface; |
|
| 30 | +use Sylius\Component\Customer\Model\CustomerInterface; |
|
| 31 | +use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
|
| 33 | 32 | use Sylius\Component\Order\OrderTransitions; |
| 34 | 33 | use Sylius\Component\Payment\Model\PaymentInterface; |
| 35 | 34 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
| 36 | 35 | use Sylius\Component\Payment\PaymentTransitions; |
| 36 | +use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
| 37 | 37 | use Sylius\Component\Resource\Factory\FactoryInterface; |
| 38 | 38 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
| 39 | 39 | use Sylius\Component\Shipping\ShipmentTransitions; |
| 40 | -use Sylius\Component\Customer\Model\CustomerInterface; |
|
| 41 | 40 | use Sylius\Component\User\Model\UserInterface; |
| 42 | -use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
| 43 | 41 | |
| 44 | 42 | /** |
| 45 | 43 | * @author Łukasz Chruściel <[email protected]> |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Bundle\CoreBundle\Fixture\Factory; |
| 13 | 13 | |
| 14 | -use Doctrine\Common\Persistence\ObjectManager; |
|
| 15 | 14 | use Sylius\Component\Core\Formatter\StringInflector; |
| 16 | 15 | use Sylius\Component\Core\Model\TaxonInterface; |
| 17 | 16 | use Sylius\Component\Locale\Model\LocaleInterface; |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Behat\Behat\Context\Context; |
| 15 | 15 | |
| 16 | -use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
|
| 17 | 16 | use Sylius\Component\Core\Repository\CustomerRepositoryInterface; |
| 17 | +use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
|
| 18 | 18 | use Webmozart\Assert\Assert; |
| 19 | 19 | |
| 20 | 20 | /** |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use Sylius\Behat\Page\Admin\Customer\ShowPageInterface; |
| 18 | 18 | use Sylius\Behat\Page\Admin\Customer\UpdatePageInterface; |
| 19 | 19 | use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface; |
| 20 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
| 21 | 20 | use Sylius\Component\Core\Model\CustomerInterface; |
| 22 | 21 | use Webmozart\Assert\Assert; |
| 23 | 22 | |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | use Sylius\Component\Core\Model\OrderInterface; |
| 31 | 31 | use Sylius\Component\Core\Model\ProductInterface; |
| 32 | 32 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
| 33 | -use Sylius\Component\Order\Repository\OrderRepositoryInterface; |
|
| 34 | 33 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
| 35 | 34 | use Sylius\Component\Resource\Factory\FactoryInterface; |
| 36 | 35 | use Webmozart\Assert\Assert; |
@@ -16,15 +16,13 @@ |
||
| 16 | 16 | use Sylius\Behat\Page\Shop\Account\DashboardPageInterface; |
| 17 | 17 | use Sylius\Behat\Page\Shop\Account\LoginPageInterface; |
| 18 | 18 | use Sylius\Behat\Page\Shop\Account\ProfileUpdatePageInterface; |
| 19 | -use Sylius\Behat\Page\Shop\Account\VerificationPageInterface; |
|
| 20 | 19 | use Sylius\Behat\Page\Shop\Account\RegisterPageInterface; |
| 20 | +use Sylius\Behat\Page\Shop\Account\VerificationPageInterface; |
|
| 21 | 21 | use Sylius\Behat\Page\Shop\HomePageInterface; |
| 22 | 22 | use Sylius\Behat\Service\NotificationCheckerInterface; |
| 23 | -use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface; |
|
| 24 | 23 | use Sylius\Behat\Service\SharedStorageInterface; |
| 25 | -use Sylius\Behat\Service\SecurityServiceInterface; |
|
| 26 | -use Sylius\Component\Core\Model\ShopUserInterface; |
|
| 27 | 24 | use Sylius\Component\Core\Model\CustomerInterface; |
| 25 | +use Sylius\Component\Core\Model\ShopUserInterface; |
|
| 28 | 26 | use Webmozart\Assert\Assert; |
| 29 | 27 | |
| 30 | 28 | /** |
@@ -429,6 +429,8 @@ |
||
| 429 | 429 | } |
| 430 | 430 | |
| 431 | 431 | /** |
| 432 | + * @param integer $timeout |
|
| 433 | + * @param string $elementName |
|
| 432 | 434 | * @return bool |
| 433 | 435 | */ |
| 434 | 436 | private function waitForElement($timeout, $elementName) |