mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Behat] Minor fixes
This commit is contained in:
parent
cf5edc6d7e
commit
1a7c1ecb50
4 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()]),
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ final class ManagingProductAssociationTypesContext implements Context
|
|||
'name' => $productAssociationType->getName()]
|
||||
),
|
||||
sprintf(
|
||||
'Product association type%s should no longer exist in the registry',
|
||||
'Product association type %s should no longer exist in the registry',
|
||||
$productAssociationType->getName()
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue