Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BB-10457: Front Store Admin can't convert Quote to order if quote was…
… assigned to Customer (#16968) BB-10457: Front Store Admin can't convert Quote to order if quote was assigned to Customer
- Loading branch information
1 parent
69a73cc
commit bf1336c
Showing
2 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
src/Oro/Bundle/SaleBundle/Tests/Behat/Features/Fixtures/QuoteToOrderFixture.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
Oro\Bundle\LocaleBundle\Entity\LocalizedFallbackValue: | ||
productName1: | ||
string: 'Product1' | ||
|
||
Oro\Bundle\ProductBundle\Entity\ProductUnitPrecision: | ||
precision1: | ||
unit: '@item' | ||
precision: '1' | ||
sell: true | ||
|
||
Oro\Bundle\ProductBundle\Entity\Product: | ||
product1: | ||
sku: 'psku1' | ||
type: 'simple' | ||
organization: '@organization' | ||
owner: '@business_unit' | ||
primaryUnitPrecision: '@precision1' | ||
attributeFamily: '@defaultProductFamily' | ||
addName: ['@productName1'] | ||
inventoryStatus: '@enumInventoryStatuses' | ||
status: 'enabled' | ||
|
||
Oro\Bundle\SaleBundle\Entity\Quote: | ||
quote1: | ||
currency: 'USD' | ||
customer: '@customer1' | ||
owner: '@admin' | ||
organization: '@organization' | ||
poNumber: 'Q123' | ||
qid: '1' | ||
website: '@website1' | ||
|
||
Oro\Bundle\SaleBundle\Entity\QuoteProduct: | ||
quoteProduct1: | ||
product: '@product1' | ||
quote: '@quote1' | ||
|
||
Oro\Bundle\CurrencyBundle\Entity\Price (local): | ||
quoteProductPrice1: | ||
value: 5 | ||
currency: USD | ||
|
||
Oro\Bundle\SaleBundle\Entity\QuoteProductOffer: | ||
quoteProductOffer1: | ||
quote_product: '@quoteProduct1' | ||
product_unit: '@item' | ||
price: '@quoteProductPrice1' | ||
quantity: 5 | ||
allow_increments: true | ||
|
||
Oro\Bundle\SaleBundle\Entity\QuoteProductRequest: | ||
quoteProductRequest1: | ||
quote_product: '@quoteProduct1' | ||
product_unit: '@item' | ||
price: '@quoteProductPrice1' | ||
quantity: 5 |
27 changes: 27 additions & 0 deletions
27
...ndle/Tests/Behat/Features/convert_quote_without_customer_user_assignment_to_order.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@ticket-BB-10457 | ||
@fixture-OroCustomerBundle:BuyerCustomerFixture.yml | ||
@fixture-OroSaleBundle:QuoteToOrderFixture.yml | ||
|
||
Feature: Convert Quote without customer user assignment to order | ||
In order to process quotes on front store | ||
As a Frontend admin | ||
I need to be able to convert quote to order when quote was assigned only to Customer | ||
|
||
Scenario: Feature Background | ||
Given I login as administrator | ||
And I go to Sales / Quotes | ||
When I click "Send to Customer" on row "Q123" in grid | ||
And I fill form with: | ||
| To | NancyJSallee@example.org | | ||
And I click "Send" | ||
Then I should see "Quote #1 successfully sent to customer" flash message | ||
|
||
Scenario: Create order from quote | ||
Given I signed in as NancyJSallee@example.org on the store frontend | ||
And I click "Account" | ||
And I click "Quotes" | ||
And I click view Q123 in grid | ||
When I click "Accept and Submit to Order" | ||
And I click "Submit" | ||
Then Checkout "Order Summary Products Grid" should contain products: | ||
| Product1 | 5 | items | |