-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add customer address books in order creation view | Add webpack #184
base: main
Are you sure you want to change the base?
Changes from all commits
611286d
309852e
c2d7ec8
1633e6e
56d4561
1896935
d0d34de
cd3fa75
8396442
5ee743e
a929f1e
7796e5f
f0300f6
8a516a8
ab9353c
7b232c3
8ae8979
6bb2396
aa83615
bf152d5
5e7d64f
79e1b42
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,48 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
@admin_order_creation_managing_orders | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Feature: Creating order with different billing address | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
In order to place an order in the name of a Customer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
As an Administrator | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
I want to be able to create an order with different shipping and billing addresses in Admin panel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
Background: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Given the store operates on a single channel in "United States" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And the store has a product "Stark Coat" priced at "$100" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And the store has a product "Lannister Banner" priced at "$40" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And the store ships everywhere for free | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And the store allows paying with "Cash on Delivery" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And there is a customer account "jon.snow@the-wall.com" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And their default address is "Ankh-Morpork", "Frost Alley", "90210", "United States" for "Jon Snow" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And this customer has an address "Ned Stark", "Banana Street", "90232", "New York", "United States" in their address book | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I am logged in as an administrator | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
@ui @javascript | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Scenario: Creating an order with both addresses from address books | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
When I create a new order for "jon.snow@the-wall.com" and channel "United States" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I add "Stark Coat" to this order | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I see the address book shipping address select | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I see the address book billing address select | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I select first address in shipping address book with name "Jon Snow" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I select first address in billing address book with name "Ned Stark" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I select "Free" shipping method | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I select "Cash on Delivery" payment method | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I place and confirm this order | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Then I should be notified that order has been successfully created | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And this order shipping address should be "Jon Snow", "Frost Alley", "90210", "Ankh-Morpork", "United States" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And this order billing address should be "Ned Stark", "Banana Street", "90232", "New York", "United States" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And there should be one not paid nor shipped order with channel "United States" for "jon.snow@the-wall.com" in the registry | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+19
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
If we don't see the address book select field, we can't click it. So, in my opinion, these two steps seem redundant. Same below. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
@ui @javascript | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Scenario: Creating an order with one address from address books | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
When I create a new order for "jon.snow@the-wall.com" and channel "United States" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I add "Stark Coat" to this order | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I see the address book shipping address select | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I see the address book billing address select | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I specify this order shipping address as "Ankh-Morpork", "Frost Alley", "90210", "United States" for "Jon Snow" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I select first address in billing address book with name "Ned Stark" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I select "Free" shipping method | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I select "Cash on Delivery" payment method | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And I place and confirm this order | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Then I should be notified that order has been successfully created | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And this order billing address should be "Ned Stark", "Banana Street", "90232", "New York", "United States" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And this order shipping address should be "Jon Snow", "Frost Alley", "90210", "Ankh-Morpork", "United States" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
And there should be one not paid nor shipped order with channel "United States" for "jon.snow@the-wall.com" in the registry |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ Feature: Creating order with different billing address | |
Scenario: Creating an order with both addresses specified | ||
When I create a new order for "jon.snow@the-wall.com" and channel "United States" | ||
And I add "Stark Coat" to this order | ||
And I should not see the address book shipping address select | ||
And I should not see the address book billing address select | ||
Comment on lines
+20
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not needed as well. If there's some kind of "wait" we should move it to the specify step. |
||
And I specify this order shipping address as "Ankh-Morpork", "Frost Alley", "90210", "United States" for "Jon Snow" | ||
And I specify this order billing address as "Rivendell", "Elm Street", "444", "United States" for "Ned Stark" | ||
And I select "Free" shipping method | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "@sylius/admin-order-creation-plugin", | ||
"description": "Admin order creation plugin for Sylius.", | ||
"repository": "https://github.com/Sylius/AdminOrderCreationPlugin.git", | ||
"license": "MIT", | ||
"scripts": { | ||
"dist": "yarn encore production --config-name sylius-plugin-dist" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"entrypoints": { | ||
"sylius-orderCreation-admin": { | ||
"css": [ | ||
"/build/sylius/orderCreation/admin/sylius-orderCreation-admin.css" | ||
], | ||
"js": [ | ||
"/build/sylius/orderCreation/admin/sylius-orderCreation-admin.js" | ||
] | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"build/sylius/orderCreation/admin/sylius-orderCreation-admin.css": "/build/sylius/orderCreation/admin/sylius-orderCreation-admin.css", | ||
"build/sylius/orderCreation/admin/sylius-orderCreation-admin.js": "/build/sylius/orderCreation/admin/sylius-orderCreation-admin.js" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be
^5.4 || ^6.0