mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[Behat] Scenarios for archiving shipping methods
This commit is contained in:
parent
ca3df30b32
commit
62875a04bf
2 changed files with 46 additions and 0 deletions
|
|
@ -52,3 +52,13 @@ Feature: Preventing not available shipping method selection
|
|||
Then I should not be able to select "Raven Post" shipping method
|
||||
And I should not be able to select "Dragon Post" shipping method
|
||||
And I should be informed that my order cannot be shipped to this address
|
||||
|
||||
@ui
|
||||
Scenario: Not being able to select an archival shipping method
|
||||
Given the store has "Raven Post" shipping method with "$10.00" fee
|
||||
And the store has an archival "Dragon Post" shipping method with "$30.00" fee
|
||||
And I have product "Targaryen T-Shirt" in the cart
|
||||
When I am at the checkout addressing step
|
||||
And I specify the shipping address as "Ankh Morpork", "Frost Alley", "90210", "United States" for "Jon Snow"
|
||||
And I complete the addressing step
|
||||
Then I should not be able to select "Dragon Post" shipping method
|
||||
|
|
|
|||
|
|
@ -0,0 +1,36 @@
|
|||
@managing_shipping_methods
|
||||
Feature: Archiving obsolete shipping methods
|
||||
In order to hide no longer available shipping methods from the list and customers' use
|
||||
As an Administrator
|
||||
I want to archive shipping methods
|
||||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store allows shipping with "UPS Carrier" and "FedEx Carrier"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui
|
||||
Scenario: Archiving a shipping method
|
||||
Given I am browsing shipping methods
|
||||
When I archive the "UPS Carrier" shipping method
|
||||
Then the only shipping method on the list should be "FedEx Carrier"
|
||||
|
||||
@domain
|
||||
Scenario: Archiving a shipping method does not remove it from the database
|
||||
When I archive the "UPS Carrier" shipping method
|
||||
Then the shipping method "UPS Carrier" should still exist in the registry
|
||||
|
||||
@ui
|
||||
Scenario: Seeing only archived shipping methods
|
||||
Given the shipping method "UPS Carrier" is archival
|
||||
And I am browsing shipping methods
|
||||
When I filter archival shipping methods
|
||||
Then the only shipping method on the list should be "UPS Carrier"
|
||||
|
||||
@ui
|
||||
Scenario: Restoring an archival shipping method
|
||||
Given the shipping method "UPS Carrier" is archival
|
||||
And I am browsing archival shipping methods
|
||||
When I restore the "UPS Carrier" shipping method
|
||||
Then I should be viewing non archival shipping methods
|
||||
And I should see 2 shipping methods on the list
|
||||
Loading…
Add table
Reference in a new issue