This repository has been archived by the owner on May 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Checks all importants price-related steps * Also moved some common translations inside `common.*` namespace * Placed such translations inside BambooBundle
- Loading branch information
mmoreram
committed
Jun 8, 2015
1 parent
28c2c1e
commit 8e55243
Showing
21 changed files
with
108 additions
and
64 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -26,4 +26,4 @@ Feature: Admin login | |
Scenario: Logged user is redirected to home when goes to login page | ||
Given In admin, I am logged as "[email protected]" - "1234" | ||
When I go to "/admin/login" | ||
Then I should be on "admin/plugin/setup-wizard/store-setup-wizard" | ||
Then I should be on "admin/store-setup-wizard" |
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
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 |
---|---|---|
|
@@ -4,25 +4,54 @@ Feature: Test payment | |
As a logged user | ||
I need to be able to buy products using coupons and check created order | ||
|
||
@javascript | ||
@javascript @stripe | ||
Scenario: Payment workflow with stripe | ||
Given In admin, I am logged as "[email protected]" - "1234" | ||
When I go to "/admin/plugins" | ||
When I go to "/admin/payment" | ||
And I uncheck "enable-plugin-887ee51dc5572759c418db09b66988664f0ecbc1" | ||
And I am logged as "[email protected]" - "1234" | ||
And I go to "/cart/product/2/add" | ||
And I follow "Checkout" | ||
And I press "Payment" | ||
And I should not see "Card number" | ||
And I go to "/admin/payment" | ||
And I check "enable-plugin-887ee51dc5572759c418db09b66988664f0ecbc1" | ||
And I go to "/admin/plugin/887ee51dc5572759c418db09b66988664f0ecbc1" | ||
And I fill in the following: | ||
| elcodi_form_type_plugin_private_key | sk_test_WccEP1bzQJRowjtsx2R65hr3 | | ||
And I press "elcodi_form_type_plugin_save" | ||
And I go to "/cart/payment" | ||
And I should not see "Card number" | ||
And I go to "/admin/payment" | ||
And I check "enable-plugin-887ee51dc5572759c418db09b66988664f0ecbc1" | ||
And I follow "/admin/plugin/887ee51dc5572759c418db09b66988664f0ecbc1" | ||
And I go to "/admin/plugin/887ee51dc5572759c418db09b66988664f0ecbc1" | ||
And I fill in the following: | ||
| elcodi_form_type_plugin_private_key | sk_test_WccEP1bzQJRowjtsx2R65hr3 | | ||
| elcodi_form_type_plugin_public_key | pk_test_6937Di9YMLplqWr6HaQIGdLI | | ||
And I press "elcodi_form_type_plugin_save" | ||
And I am logged as "[email protected]" - "1234" | ||
And I go to "/cart/product/2/add" | ||
And I follow "Checkout" | ||
And I follow "Payment" | ||
And I follow "test-payment-887ee51dc5572759c418db09b66988664f0ecbc1" | ||
And I go to "/cart/payment" | ||
And I should see "Card number" | ||
And I fill in the following: | ||
| stripe_view_credit_cart | 4242424242424242 | | ||
| stripe_view_credit_cart_security | 123 | | ||
| stripe_view_credit_cart_expiration_month | 19 | | ||
| stripe_view_credit_cart_expiration_month | 12 | | ||
| stripe_view_credit_cart_expiration_year | 2020 | | ||
And I press "payment-submit" | ||
Then I should be on "/order/2/thanks" | ||
And I should be on "/order/1/thanks" | ||
And I should see "$5.41" | ||
And I should see "$12.21" | ||
And I should see "$17.62" | ||
And I go to "/my-orders" | ||
And I should see "Paid" | ||
And I should see "Not shipped" | ||
And I go to "/admin/orders" | ||
And the page contains a "order-1" test attribute | ||
And I should see "$17.62" | ||
And I should see "Paid" | ||
And I should see "Not shipped" | ||
And I go to "/admin/order/1" | ||
And I should see "$5.41" | ||
And I should see "$12.21" | ||
And I should see "$17.62" | ||
And I should see "Paid" | ||
And I should see "Not shipped" |
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
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
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
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
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
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
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
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
10 changes: 10 additions & 0 deletions
10
src/Elcodi/Common/BambooBundle/Resources/translations/messages.ca.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,10 @@ | ||
common: | ||
order: | ||
states: | ||
title: Historial | ||
initial: Comanda nova | ||
unpaid: Sense pagar | ||
refunded: Reemborsat | ||
shipped: Enviat | ||
not shipped: Sense enviar | ||
paid: Pagat |
10 changes: 10 additions & 0 deletions
10
src/Elcodi/Common/BambooBundle/Resources/translations/messages.de.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,10 @@ | ||
common: | ||
order: | ||
states: | ||
title: Verlauf | ||
initial: Neue Bestellung | ||
unpaid: Unbezahlt | ||
refunded: Zurückerstattet | ||
shipped: Versendet | ||
not shipped: Nicht versendet | ||
paid: Bezahlt |
10 changes: 10 additions & 0 deletions
10
src/Elcodi/Common/BambooBundle/Resources/translations/messages.en.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,10 @@ | ||
common: | ||
order: | ||
states: | ||
title: History | ||
initial: New order | ||
unpaid: Unpaid | ||
refunded: Refunded | ||
shipped: Shipped | ||
not shipped: Not shipped | ||
paid: Paid |
10 changes: 10 additions & 0 deletions
10
src/Elcodi/Common/BambooBundle/Resources/translations/messages.es.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,10 @@ | ||
common: | ||
order: | ||
states: | ||
title: Historial | ||
initial: Nuevo pedido | ||
unpaid: Sin pagar | ||
refunded: Reembolsado | ||
shipped: Enviado | ||
not shipped: Sin enviar | ||
paid: Pagado |
10 changes: 10 additions & 0 deletions
10
src/Elcodi/Common/BambooBundle/Resources/translations/messages.fr.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,10 @@ | ||
common: | ||
order: | ||
states: | ||
title: Historique | ||
initial: Nouvelle commande | ||
unpaid: Non payée | ||
refunded: Remboursée | ||
shipped: Livrée | ||
not shipped: Non livrée | ||
paid: Payée |
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
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
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
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
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