mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Behat] Fix dashboard scenarios
This commit is contained in:
parent
82408eb761
commit
7b06a858fb
2 changed files with 2 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ Feature: Editing a route
|
|||
Given the store has static contents "Krzysztof Krawczyk" and "Ryszard Rynkowski"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui @javascript
|
||||
@ui
|
||||
Scenario: Change title of a route
|
||||
Given the store has route "krzysztof-krawczyk" with "Ryszard Rynkowski" as its content
|
||||
And I want to edit this route
|
||||
|
|
|
|||
|
|
@ -416,6 +416,7 @@ final class OrderContext implements Context
|
|||
|
||||
for ($i = 0; $i < $numberOfOrders; $i++) {
|
||||
$order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid());
|
||||
$order->setState(OrderInterface::STATE_NEW); // Temporary, we should use checkout to place these orders.
|
||||
$this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE);
|
||||
|
||||
$price = $i === ($numberOfOrders - 1) ? $total : rand(1, $total);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue