[Admin][PaymentMethod] Added scenarios for adding and browsing payment methods

This commit is contained in:
Grzegorz Sadowski 2016-04-11 14:53:16 +02:00
parent 730230d175
commit e2c3fee5cb
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,30 @@
@managing_payment_methods
Feature: Adding a new payment method
In order to pay for orders in different ways
As an Administrator
I want to add a new payment method to the registry
Background:
Given the store operates on a single channel in "France"
And I am logged in as an administrator
@todo
Scenario: Adding a new payment method
Given I want to create a new payment method
When I name it "Paypal Express Checkout" in "English (United States)"
And I specify its code as "PEC"
And I choose gateway "Paypal Express Checkout"
And I add it
Then I should be notified that it has been successfully created
And the payment method "Paypal Express Checkout" should appear in the registry
@todo
Scenario: Adding a new payment method with description
Given I want to create a new payment method
When I name it "Paypal Express Checkout" in "English (United States)"
And I specify its code as "PEC"
And I choose gateway "Paypal Express Checkout"
And I describe it as "Payment method Paypal Express Checkout" in "English (United States)"
And I add it
Then I should be notified that it has been successfully created
And the payment method "Paypal Express Checkout" should appear in the registry

View file

@ -0,0 +1,16 @@
@managing_payment_methods
Feature: Browsing payment methods
In order to see all payment methods in the store
As an Administrator
I want to be able to browse payment methods
Background:
Given the store has a payment method "Offline" with a code "OFF"
And the store has a payment method "PayPal Express Checkout" with a code "PEC"
And I am logged in as an administrator
@todo
Scenario: Browsing defined payment methods
When I want to browse payment methods
Then I should see 2 payment methods in the list
And the payment method "PayPal Express Checkout" should be in the registry