[Behat] Minor fixes

This commit is contained in:
Grzegorz Sadowski 2016-10-27 14:51:27 +02:00
parent cf5edc6d7e
commit 1a7c1ecb50
4 changed files with 7 additions and 7 deletions

View file

@ -5,11 +5,11 @@ Feature: Deleting payment methods
I want to be able to delete a payment method
Background:
Given the store has a payment method "Offline" with a code "offline"
And I am logged in as an administrator
@ui
Scenario: Deleted payment method should disappear from the registry
Given the store has a payment method "Offline" with a code "offline"
When I delete the "Offline" payment method
Then I should be notified that it has been successfully deleted
And this payment method should no longer exist in the registry

View file

@ -11,6 +11,6 @@ Feature: Browsing customer groups
@ui
Scenario: Browsing customer groups in the store
When I want to browse customer groups of the store
When I want to browse customer groups
Then I should see 2 customer groups in the list
And I should see the customer group "Retail" in the list

View file

@ -135,9 +135,9 @@ final class ManagingCustomerGroupsContext implements Context
}
/**
* @When I want to browse customer groups of the store
* @When I want to browse customer groups
*/
public function iWantToBrowseCustomerGroupsOfTheStore()
public function iWantToBrowseCustomerGroups()
{
$this->indexPage->open();
}
@ -163,9 +163,9 @@ final class ManagingCustomerGroupsContext implements Context
/**
* @Then /^(this customer group) should still be named "([^"]+)"$/
*/
public function thisChannelNameShouldBe(CustomerGroupInterface $customerGroup, $customerGroupName)
public function thisCustomerGroupShouldStillBeNamed(CustomerGroupInterface $customerGroup, $customerGroupName)
{
$this->iWantToBrowseCustomerGroupsOfTheStore();
$this->iWantToBrowseCustomerGroups();
Assert::true(
$this->indexPage->isSingleResourceOnPage(['name' => $customerGroup->getName()]),