mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
minor #15003 Cover seeing default shipping method scenarios in API (jakubtobiasz)
This PR was merged into the 1.13 branch.
Discussion
----------
| Q | A |
|-----------------|--------------------------------------------------------------|
| Branch? | 1.13
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets |
| License | MIT
Commits
-------
69e83ad372 Cover seeing default shipping method scenarios in API
This commit is contained in:
commit
339e69f67e
2 changed files with 18 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ Feature: Seeing default shipping method selected based on shipping address
|
|||
And the store has "FedEx" shipping method with "$20.00" fee within the "UK" zone
|
||||
And I am a logged in customer
|
||||
|
||||
@ui
|
||||
@ui @api
|
||||
Scenario: Seeing default shipping method selected based on country from billing address
|
||||
Given I have product "Star Trek Ship" in the cart
|
||||
And I am at the checkout addressing step
|
||||
|
|
@ -27,7 +27,7 @@ Feature: Seeing default shipping method selected based on shipping address
|
|||
And I should see selected "DHL" shipping method
|
||||
And I should not see "FedEx" shipping method
|
||||
|
||||
@ui
|
||||
@ui @api
|
||||
Scenario: Seeing default shipping method selected based on country from billing address after readdressing
|
||||
Given I have product "Star Trek Ship" in the cart
|
||||
And I am at the checkout addressing step
|
||||
|
|
|
|||
|
|
@ -420,6 +420,14 @@ final class CheckoutContext implements Context
|
|||
$this->client->executeCustomRequest($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When I decide to change my address
|
||||
*/
|
||||
public function iDecideToChangeMyAddress(): void
|
||||
{
|
||||
// Intentionally left blank
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then I should be notified that the order should be addressed first
|
||||
*/
|
||||
|
|
@ -806,6 +814,14 @@ final class CheckoutContext implements Context
|
|||
Assert::same($this->getCheckoutState(), OrderCheckoutStates::STATE_COMPLETED);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then I should see selected :shippingMethod shipping method
|
||||
*/
|
||||
public function iShouldSeeSelectedShippingMethod(ShippingMethodInterface $shippingMethod): void
|
||||
{
|
||||
Assert::true($this->hasShippingMethod($shippingMethod));
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then I should not see :shippingMethod shipping method
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue