Skip to content

Commit

Permalink
[Behat] Unify saving step naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafikooo committed Mar 16, 2023
1 parent e5f67c5 commit 3e1e1df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Feature: Province unique code validation
Scenario: Trying to add a new province with taken code
When I want to edit this country
And I add the "Scotland" province with "GB-NIR" code
And I try to save changes
And I try to save my changes
Then I should be notified that province code must be unique
And province with name "Scotland" should not be added in this country
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Province validation
When I want to create a new province in country "United Kingdom"
And I name the province "Scotland"
But I do not specify the province code
And I try to save changes
And I try to save my changes
Then I should be notified that code is required
And province with name "Scotland" should not be added in this country

Expand All @@ -22,7 +22,7 @@ Feature: Province validation
When I want to create a new province in country "United Kingdom"
And I specify the province code as "GB-SCT"
But I do not name the province
And I try to save changes
And I try to save my changes
Then I should be notified that name is required
And province with code "GB-SCT" should not be added in this country

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function iDisableIt()

/**
* @When I save my changes
* @When I try to save changes
* @When I try to save my changes
*/
public function iSaveMyChanges()
{
Expand Down

0 comments on commit 3e1e1df

Please sign in to comment.