mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Behat][Admin][Shipping] Update scenarios
This commit is contained in:
parent
dc84aba6e9
commit
467df0e9d4
2 changed files with 35 additions and 21 deletions
|
|
@ -5,59 +5,73 @@ Feature: Adding a new shipping method
|
|||
I want to add a new shipping method to the registry
|
||||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
Given the store operates on a channel named "Web-US" in "USD" currency
|
||||
And the store operates on another channel named "Web-GB" in "GBP" currency
|
||||
And the store is available in "English (United States)"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui @javascript
|
||||
@ui @javascript @todo
|
||||
Scenario: Adding a new shipping method with flat rate per shipment
|
||||
Given I want to create a new shipping method
|
||||
When I specify its code as "FED_EX_CARRIER"
|
||||
When I want to create a new shipping method
|
||||
And I specify its code as "FED_EX_CARRIER"
|
||||
And I specify its position as 0
|
||||
And I name it "FedEx Carrier" in "English (United States)"
|
||||
And I define it for the "United States" zone
|
||||
And I choose "Flat rate per shipment" calculator
|
||||
And I specify its amount as 50
|
||||
And I specify its amount as 50 for "Web-US" channel
|
||||
And I add it
|
||||
Then I should be notified that it has been successfully created
|
||||
And the shipping method "FedEx Carrier" should appear in the registry
|
||||
|
||||
@ui @javascript
|
||||
@ui @javascript @todo
|
||||
Scenario: Adding a new shipping method with description and flat rate per shipment
|
||||
Given I want to create a new shipping method
|
||||
When I specify its code as "FED_EX_CARRIER"
|
||||
When I want to create a new shipping method
|
||||
And I specify its code as "FED_EX_CARRIER"
|
||||
And I name it "FedEx Carrier" in "English (United States)"
|
||||
And I describe it as "FedEx Carrier shipping method for United States" in "English (United States)"
|
||||
And I define it for the "United States" zone
|
||||
And I choose "Flat rate per shipment" calculator
|
||||
And I specify its amount as 50
|
||||
And I specify its amount as 50 for "Web-US" channel
|
||||
And I add it
|
||||
Then I should be notified that it has been successfully created
|
||||
And the shipping method "FedEx Carrier" should appear in the registry
|
||||
|
||||
@ui @javascript
|
||||
@ui @javascript @todo
|
||||
Scenario: Adding a new shipping method with flat rate per unit
|
||||
Given I want to create a new shipping method
|
||||
When I specify its code as "FED_EX_CARRIER"
|
||||
When I want to create a new shipping method
|
||||
And I specify its code as "FED_EX_CARRIER"
|
||||
And I name it "FedEx Carrier" in "English (United States)"
|
||||
And I define it for the "United States" zone
|
||||
And I choose "Flat rate per unit" calculator
|
||||
And I specify its amount as 20
|
||||
And I specify its amount as 20 for "Web-US" channel
|
||||
And I add it
|
||||
Then I should be notified that it has been successfully created
|
||||
And the shipping method "FedEx Carrier" should appear in the registry
|
||||
|
||||
@ui @javascript
|
||||
@ui @javascript @todo
|
||||
Scenario: Adding a new shipping method for channel
|
||||
Given I want to create a new shipping method
|
||||
When I specify its code as "FED_EX_CARRIER"
|
||||
When I want to create a new shipping method
|
||||
And I specify its code as "FED_EX_CARRIER"
|
||||
And I name it "FedEx Carrier" in "English (United States)"
|
||||
And I describe it as "FedEx Carrier shipping method for United States" in "English (United States)"
|
||||
And I define it for the "United States" zone
|
||||
And I make it available in channel "United States"
|
||||
And I make it available in channel "Web-US"
|
||||
And I choose "Flat rate per unit" calculator
|
||||
And I specify its amount as 20
|
||||
And I specify its amount as 20 for "Web-US" channel
|
||||
And I add it
|
||||
Then I should be notified that it has been successfully created
|
||||
And the shipping method "FedEx Carrier" should appear in the registry
|
||||
And the shipping method "FedEx Carrier" should be available in channel "Web-US"
|
||||
|
||||
@ui @javascript @todo
|
||||
Scenario: Adding a new shipping method with flat rate per shipment specified for different channels
|
||||
When I want to create a new shipping method
|
||||
And I specify its code as "FED_EX_CARRIER"
|
||||
And I name it "FedEx Carrier" in "English (United States)"
|
||||
And I define it for the "United States" zone
|
||||
And I choose "Flat rate per shipment" calculator
|
||||
And I specify its amount as 50 for "Web-US" channel
|
||||
And I specify its amount as 40 for "Web-GB" channel
|
||||
And I add it
|
||||
Then I should be notified that it has been successfully created
|
||||
And the shipping method "FedEx Carrier" should appear in the registry
|
||||
And the shipping method "FedEx Carrier" should be available in channel "United States"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Feature: Shipping method unique code validation
|
|||
I want to be prevented from adding two shipping methods with same code
|
||||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
Given the store operates on a channel named "Web" in "USD" currency
|
||||
And the store is available in "English (United States)"
|
||||
And the store allows shipping with "UPS Ground" identified by "UPS"
|
||||
And I am logged in as an administrator
|
||||
|
|
@ -17,7 +17,7 @@ Feature: Shipping method unique code validation
|
|||
And I name it "FedEx Carrier" in "English (United States)"
|
||||
And I define it for the "United States" zone
|
||||
And I choose "Flat rate per shipment" calculator
|
||||
And I specify its amount as 50
|
||||
And I specify its amount as 50 for "Web" channel
|
||||
And I try to add it
|
||||
Then I should be notified that shipping method with this code already exists
|
||||
And there should still be only one shipping method with code "UPS"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue