Skip to content

Commit

Permalink
[Behat][Installation] Fix behats
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Oct 10, 2017
1 parent a73aaf6 commit 965410d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions features/installer/install_command.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Feature: Sylius Install Feature
Scenario: Trying to register administrator account without email
Given I do not provide an email
When I run Sylius CLI installer
Then I should see output "E-mail: This value should not be blank"
Then I should see output "This value should not be blank"

Scenario: Trying to register administrator account with an incorrect email
Given I do not provide a correct email
When I run Sylius CLI installer
Then I should see output "E-mail: This value is not a valid email address."
Then I should see output "This value is not a valid email address."
2 changes: 1 addition & 1 deletion features/installer/load_sample_data_command.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Feature: Load sample data feature
I want to run a command that loads sample data

Scenario: Running install sample data command
Given I run Sylius Install Load Sample Data command
When I run Sylius Install Load Sample Data command
And I confirm loading sample data
Then the command should finish successfully
2 changes: 2 additions & 0 deletions src/Sylius/Behat/Context/Cli/InstallerContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ final class InstallerContext implements Context
private $inputChoices = [
'currency' => 'USD',
'e-mail' => 'test@email.com',
'username' => 'test',
'password' => 'pswd',
'confirmation' => 'pswd',
];
Expand Down Expand Up @@ -141,6 +142,7 @@ public function iDoNotProvideCorrectEmail()
public function iProvideFullAdministratorData()
{
$this->inputChoices['e-mail'] = 'test@admin.com';
$this->inputChoices['username'] = 'test';
$this->inputChoices['password'] = 'pswd1$';
$this->inputChoices['confirmation'] = $this->inputChoices['password'];
}
Expand Down

0 comments on commit 965410d

Please sign in to comment.