Skip to content

Commit

Permalink
[Behat] Small semantic fixes in scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
Zales0123 committed Oct 28, 2016
1 parent cf5edc6 commit 90849c4
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions features/order/managing_orders/refunding_order_payment.feature
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@managing_orders
Feature: Refunding order payment
In order to refund order payment
Feature: Refunding order's payment
In order to refund order's payment
As an Administrator
I want to be able to mark order payment as refunded
I want to be able to mark order's payment as refunded

Background:
Given the store operates on a single channel in "United States"
@@ -18,13 +18,13 @@ Feature: Refunding order payment
And I am viewing the summary of this order

@ui
Scenario: Marking payment as refunded
Scenario: Marking order's payment as refunded
When I mark this order's payment as refunded
Then I should be notified that the order's payment has been successfully refunded
And it should have payment with state refunded

@ui
Scenario: Marking order as refunded after refunding all its payments
Scenario: Marking an order as refunded after refunding all its payments
When I mark this order's payment as refunded
Then it should have payment with state refunded
And it's payment state should be refunded
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@managing_users
Feature: Changing shop user password
Feature: Changing shop user's password
In order to modify shop user credentials
As an Administrator
I want to be able to change shop user password
@@ -10,7 +10,7 @@ Feature: Changing shop user password
And I am logged in as an administrator

@ui
Scenario: Changing password of shop user
When I change user "kibsoon@example.com" password to "veryGoodGuy"
Scenario: Changing a password of a shop user
When I change the password of user "kibsoon@example.com" to "veryGoodGuy"
Then I should be notified that it has been successfully edited
And I should be able to log in as "kibsoon@example.com" with "veryGoodGuy" password
Original file line number Diff line number Diff line change
@@ -516,9 +516,9 @@ public function iMakeThemSubscribedToTheNewsletter()
}

/**
* @When I change user :customer password to :newPassword
* @When I change the password of user :customer to :newPassword
*/
public function iChangeUserPasswordTo(CustomerInterface $customer, $newPassword)
public function iChangeThePasswordOfUserTo(CustomerInterface $customer, $newPassword)
{
$this->updatePage->open(['id' => $customer->getId()]);
$this->updatePage->changePassword($newPassword);

0 comments on commit 90849c4

Please sign in to comment.