diff --git a/features/admin_panel/access_to_admin_panel.feature b/features/admin_panel/access_to_admin_panel.feature index bebcc08c..a10801cc 100644 --- a/features/admin_panel/access_to_admin_panel.feature +++ b/features/admin_panel/access_to_admin_panel.feature @@ -11,4 +11,4 @@ Feature: Access to admin panel Scenario: Unauthorized access Given I am not logged in as an admin user When I get to admin panel route - Then I should see "You do not have access" \ No newline at end of file + Then I should see "You do not have access" diff --git a/features/admin_panel/adding_user_to_admin_panel.feature b/features/admin_panel/adding_user_to_admin_panel.feature index 323794d4..bca90a5c 100644 --- a/features/admin_panel/adding_user_to_admin_panel.feature +++ b/features/admin_panel/adding_user_to_admin_panel.feature @@ -17,11 +17,11 @@ Feature: | email | | firstuser@example.com | - Scenario Outline: Invited user already are admin + Scenario Outline: Invited user is already an administrator Given user with already are admin user When I fill "email" with And I send the form - Then I should see message "This user already are admin user" + Then I should see message "This user is already an administrator" Examples: | email | - | existingadmin@example.com | \ No newline at end of file + | existingadmin@example.com | diff --git a/features/admin_panel/creating_new_admin.feature b/features/admin_panel/creating_new_admin.feature index 72bca8f3..7bfaa293 100644 --- a/features/admin_panel/creating_new_admin.feature +++ b/features/admin_panel/creating_new_admin.feature @@ -9,21 +9,22 @@ Feature: Creating new admin user | user@example.com | Scenario: Invited user already have account - Given I get to authentication route by invitation link - When I log in as "user@example.com" + Given Invited user get to authentication route by invitation link + When I log in as Then I become admin user Scenario Outline: Successfully created an account Given I get to authentication route by invitation link When I fill "email" with - And I fill "password" with > + And I fill "password" with And I fill "name" with Then I create new account with email And I become admin user Examples: | email | password | name | | user@example.com | validpassword | newadmin | - Scenario: Invitation is expired - Given Invitation was send more than 7 days ago + + Scenario: Invitation has expired + Given invitation was send more than 7 days ago When I get to authentication route by invitation link - Then I should see message "Your invitation is expired" \ No newline at end of file + Then I should see message "Your invitation is expired" diff --git a/features/admin_panel/meetup_crud.feature b/features/admin_panel/meetup_crud.feature index 7d5ecdcd..000ecc0c 100644 --- a/features/admin_panel/meetup_crud.feature +++ b/features/admin_panel/meetup_crud.feature @@ -15,7 +15,7 @@ Feature: Meetup CRUD operations And I fill the "date" with And I fill the "place" with And I fill the "language" with - Then New meetup with matching data should be created + Then new meetup with matching data should be created And I should see message "Meetup was created" Examples: | title | date | place | language | @@ -31,4 +31,4 @@ Feature: Meetup CRUD operations And I should see message "Meetup was updated" Examples: | id | title | date | place | language | - | 1 | updated meetup | 2024-02-02 10:10:10 | updated place | en | \ No newline at end of file + | 1 | updated meetup | 2024-02-02 10:10:10 | updated place | en | diff --git a/features/admin_panel/organization_crud.feature b/features/admin_panel/organization_crud.feature index 4083e626..cca516c9 100644 --- a/features/admin_panel/organization_crud.feature +++ b/features/admin_panel/organization_crud.feature @@ -13,7 +13,7 @@ Feature: Organization CRUD operations Given I am on the create organization page When I fill the "name" with And I fill the "description" with - Then New organization with matching data should be created + Then new organization with matching data should be created And I should see message "Organization was created" Examples: | name | description | @@ -27,4 +27,4 @@ Feature: Organization CRUD operations And I should see message "Organization was updated" Examples: | id | name | description | - | 1 | updated organization | updated organization | \ No newline at end of file + | 1 | updated organization | updated organization | diff --git a/features/admin_panel/speakers_crud.feature b/features/admin_panel/speakers_crud.feature index 9ee0c1b8..41957c7e 100644 --- a/features/admin_panel/speakers_crud.feature +++ b/features/admin_panel/speakers_crud.feature @@ -13,7 +13,7 @@ Feature: Speaker CRUD operations Given I am on the create speaker page When I fill the "name" with And I fill the "description" with - Then New speaker with matching data should be created + Then new speaker with matching data should be created And I should see message "Speaker was created" Examples: | name | description | @@ -27,4 +27,4 @@ Feature: Speaker CRUD operations And I should see message "Speaker was updated" Examples: | id | name | description | - | 1 | updated speaker | updated speaker | \ No newline at end of file + | 1 | updated speaker | updated speaker | diff --git a/features/authentication/login.feature b/features/authentication/login.feature index e4ffede9..c2cacc15 100644 --- a/features/authentication/login.feature +++ b/features/authentication/login.feature @@ -5,15 +5,15 @@ Feature: Logging to app | email | password | | existinguser@example.com | correctpassword | - Scenario Outline: attempt to log in with correct credentials + Scenario Outline: Attempt to log in with correct credentials When I fill "email" with - And I fill "password" with - Then I have successfully logged in + And I "password" with + Then I successfully logged in Examples: | email | password | | existinguser@example.com | correctpassword | - Scenario Outline: attempt to log in with wrong password + Scenario Outline: Attempt to log in with wrong password When I fill "email" with And I fill "password" with Then I should see message "bad credentials" @@ -21,10 +21,10 @@ Feature: Logging to app | email | password | | existinguser@example.com | wrongpassword | - Scenario Outline: attempt to log in as unregistered user + Scenario Outline: Attempt to log in as unregistered user When I fill "email" with And I fill "password" with Then I should see message "bad credentials" Examples: | email | password | - | nonexistinguser@example.com | password | \ No newline at end of file + | nonexistinguser@example.com | password | diff --git a/features/authentication/register.feature b/features/authentication/register.feature index a8f636b4..b9fdc0a5 100644 --- a/features/authentication/register.feature +++ b/features/authentication/register.feature @@ -1,9 +1,13 @@ Feature: Register to app + Background: + Given I am on the register page + Scenario Outline: Register with valid data - When I fill "email" with - And I fill "password" with - And I fill "name" with + When I fill "email" with "" + And I fill "password" with "" + And I fill "name" with "" + And I submit form Then I have successfully sign up And I should get an email on Examples: @@ -11,9 +15,10 @@ Feature: Register to app | existinguser@example.com | correctpassword | existinguser | Scenario: Register using existing email - Given there are following users + Given there are following users: | email | password | | existinguser@example.com | password | When I fill "email" with "existinguser@example.com" And I fill "password" with "password" - Then I should see message "User with this email actually exist" \ No newline at end of file + And I submit form + Then I should see message "User with this email actually exist" diff --git a/features/meetup/meetup_crud.feature b/features/meetup/meetup_crud.feature index 8d767f4b..64ca58ea 100644 --- a/features/meetup/meetup_crud.feature +++ b/features/meetup/meetup_crud.feature @@ -18,7 +18,7 @@ Feature: Meetup CRUD operations And I fill the "place" with And I fill the "language" with And I submit form - Then New meetup with matching data should be created + Then new meetup with matching data should be created And Organizer id should be 1 And I should see message "Meetup was created" Examples: