Skip to content

Commit

Permalink
sign_up test code adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaschabariberi committed Dec 4, 2019
1 parent ac06c22 commit 07307d7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/app/features/001_sign_up.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ So that I can use the application
Scenario: User creates a new account filling all fields with valid data
Given I am on the create account page
When I fill the user registration form
When I attach a profile picture
And I attach a profile picture
And I click the Cadastrar button
Then I should see the welcome page

Scenario: User creates a new account successfully and check the option to see near colleges
Given I am on the create account page
When I fill the user registration form
When I attach a profile picture
And I attach a profile picture
And I check the checkbox to see the page's wizard
And I click the Cadastrar button
Then I should see the page's wizard

Scenario Outline: User try to create a new account with invalid data
Given I am on the create account page
When I fill the user registration form
When I fill in "<form field>" with "<value>"
When I attach a profile picture
And I fill in "<form field>" with "<value>"
And I attach a profile picture
And I click the Cadastrar button
Then I should see the red failed toast

Expand All @@ -48,16 +48,16 @@ Scenario: User try to create a new account with invalid password format
Given I am on the create account page
When I fill the user registration form
When I fill in "user_password" with "cinco"
When I fill in "user_password_confirmation" with "cinco"
When I attach a profile picture
And I fill in "user_password_confirmation" with "cinco"
And I attach a profile picture
And I click the Cadastrar button
Then I should see the red failed toast

Scenario: User try to create a new account with existing user nickname
Given There is an unregistered user
And I am on the create account page
When I fill the user registration form
When I fill in "user_nickname" with "teste002.user"
When I attach a profile picture
And I fill in "user_nickname" with "teste002.user"
And I attach a profile picture
And I click the Cadastrar button
Then I should see the red failed toast

0 comments on commit 07307d7

Please sign in to comment.