diff --git a/test/specifications/forgot_password.feature b/test/specifications/forgot_password.feature new file mode 100644 index 000000000..d9f970e1c --- /dev/null +++ b/test/specifications/forgot_password.feature @@ -0,0 +1,45 @@ +# feature/forgot password.feature +Feature: Forgot password + I forgot my password + I would like a new password + So that I can use sciNote + +Background: + Given the following users is registered: + | email | password | team + | nonadmin@myorg.com | mypassword1234 | BioSistemika Process + And the following user has got Reset you password email: + | email | password | team + | nonadmin@myorg.com | mypassword1234 | BioSistemika Process + +Scenario: User forgot their password and requests for new password + Given I am on Log in page + And I click to "Forgot your password?" link + Then I fill in Email "nonadmin@myorg.com" + And I click on "Send me reset password instruction" button + Then I should see "You will receive an email with instructions on how to reset your password in a few minutes." flash message + +Scenario: User forgot their password and enters non valid email + Given I am on Log in page + And I click to link "Forgot your password?" + Then I fill in Email "nonuser@myorg.com" + And I click on "Send me reset password instruction" button + Then I should see "Email not found." flash message + +Scenario: User has got Reset Your Password email and click to link + Given I have "Reset Your Password" email for user "nonadmin@myorg.com" + And I click to "RESET PASSWORD" link in email + Then I should see "Change your password" page + +Scenario: User successfully Change password at Change your password page + Given I am on Change your password page + Then I fill in New password "mypassword1234" and I fill in Confirm new password "mypassword1234" + And I click on "Change my password" button + Then I should see "BioSistemika Process" + And I should see "Your password has been changed successfully. You are now logged in." flash message + +Scenario: User unsuccessfully Change password at Change your password page + Given I am on Change your password page + Then I fill in New password "mypassword12344" and I fill in Confirm new password "mypassword1234" + And I click on "Change my password" button + Then I should see "Password confirmation doesn't match Password" flash message diff --git a/test/specifications/gamification.feature b/test/specifications/gamification.feature new file mode 100644 index 000000000..0d74cc342 --- /dev/null +++ b/test/specifications/gamification.feature @@ -0,0 +1,72 @@ +# feature/gamification. feature +Feature: Completing gamification + As a creator of team + I want to finish gamification and earn 1 GB team space + I want to earn up to 10 GB team space + +Background: +Given the following users is registered: + | name | email | password | team | role | + |Karli Novak (creator)| nonadmin@myorg.com | mypassword1234 | BioSistemika Process | Administrator| + + Scenario: Successful first login to sciNote + Given sign up to sciNote BioSistemika Process team of a Karli Novak user + And I click to "I am ready to start" button of a "Welcome to sciNote" modal window + Then I should see start of tutorial + And I click to "SKIP TUTORIAL" button + Then I should see "1/4" completed basic steps of 4 basic steps + + Scenario: Successful create new project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to "New project" button + Then I fill in "Golica" to Project name field of "Create new project" modal window + And I click on "Create project" button + Then I should see "Project Golica successfully created." flash message + Then I should see "2/4" completed basic steps of 4 basic steps + + Scenario: Successful create new experiment + Given Golica project page of a Karli Novak user + And I click to "Create new experiment" card + Then I fill in "Narcisa" to Experiment name field of "Create new experiment" modal window + Then I fill in "Pozno spomladi cvetijo narcise." to Description field of "Create new experiment" modal window + And I click on "Create experiment" button + Then I should see "Project successfully updated." flash message + Then I should see 2 GB of a team space + Then I should see 13 leaves + + Scenario: Successful earn 8 GB invating users to sciNote + Given Profile page of a Karli Novak user + Then I should see 13 leaves + Then I should see 2 GB of a team space + And I click on avatar + And I click to "Invite people to sciNote" + Then I fill in "nikola@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + Then I fill in "marija@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + Then I fill in "luka@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + Then I fill in "matej@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + Then I fill in "mojca@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + Then I fill in "nika@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + Then I fill in "lana@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + Then I fill in "petra@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + And I click on checkbox "Invite user to my team" + And I click on "Invite user/s" button + And I click on "as Normal user/s" modal window + Then I should see "nikola@myorg.com - User successfully invited to sciNote and team BioSistemika Process as Normal user." Invitation results in Invite people to sciNote modal window + Then I should see "marija@myorg.com - User is already a member of sciNote - successfully invited to team BioSistemika Process as Normal user." Invitation results in Invite people to sciNote modal window + Then I should see "luka@myorg.com - User successfully invited to sciNote and team BioSistemika Process as Normal user." Invitation results in Invite people to sciNote modal window + Then I should see "matej@myorg.com - User is already a member of sciNote - successfully invited to team BioSistemika Process as Normal user." Invitation results in Invite people to sciNote modal window + Then I should see "mojca@myorg.com - User successfully invited to sciNote and team BioSistemika Process as Normal user." Invitation results in Invite people to sciNote modal window + Then I should see "nika@myorg.com - User is already a member of sciNote - successfully invited to team BioSistemika Process as Normal user." Invitation results in Invite people to sciNote modal window + Then I should see "lana@myorg.com - User successfully invited to sciNote and team BioSistemika Process as Normal user." Invitation results in Invite people to sciNote modal window + Then I should see "petra@myorg.com - User is already a member of sciNote - successfully invited to team BioSistemika Process as Normal user." Invitation results in Invite people to sciNote modal window + And I click on "Close" button + Then I should see 10 GB of a team space + Then I should see earned 93 leaves diff --git a/test/specifications/home_page.feature b/test/specifications/home_page.feature new file mode 100644 index 000000000..1d7bac715 --- /dev/null +++ b/test/specifications/home_page.feature @@ -0,0 +1,151 @@ +# feature/home page. feature +Feature: Home page + As a creator of team + I want to create a project + I want to edit, archive project + I want to add user, comment to a project + +Background: +Given the following users is registered: + | name | email | password | team | role | + |Karli Novak (creator)| nonadmin@myorg.com | mypassword1234 | BioSistemika Process | Administrator| + |Marija Novak | marija@myorg.com | mypassword5555 | BioSistemika Process | Normal user | + + Scenario: Successful create new project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to "New project" button + Then I fill in "Mangart" to Project name field of "Create new project" modal window + And I click to "Public" button + And I click on "Create project" button + Then I should see "Project Mangart successfully created." flash message + Then I should see "Golica" public project card in "BioSistemika Process" team page + + Scenario: Unsuccessful create new project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to "New project" button + And I click on "Create project" button + Then I should see "is too short (minimum is 2 charaacters)" red Project name error message of "Create new project" modal window + Then I fill in "Golica" to Project name field of "Create new project" modal window + And I click on "Create project" button + Then I should see "This project name has to be unique inside a team (this includes the archive)" red Project name error message of "Create new project" modal window + And I click on "Cancel" button + + Scenario: Successful edit project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to down arrow of a "Mangart" project card + And I click to "Edit" of a Options modal window + Then I change "Mangart" Project name with "Golica" Project name of "Edit project Mangart" modal window + And I click to "Privat" button + And I click on "Update project" button + Then I should see "Golica" privat project card in "BioSistemika Process" team page + + Scenario: Successful add user to a project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to avatar of a "Golica" project card + Then I click to "Manage users" on "Golica" project card + And I click to "Marija Novak" in users dropdown menu of a "Manage users for Golica" modal window + And I click to "User" in Select Role dropdown menu of a "Manage users for Golica" modal window + And I click to "Add" button of a "Manage users for Golica" modal window + And I click to "Close" button + Then I should see "Marija Novak" in Users list of "Golica" project card + + Scenario: Successful change user role to a project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to avatar of a "Golica" project card + Then I click to "Manage users" on "Golica" project card + And I click to "Owner" in Change Role dropdown menu of a "Manage users for Golica" modal window + And I click to "Close" button + Then I should see "Owner" under Marija Novak in Users list of "Golica" project card + + Scenario: Successful add new sciNote user to a project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to avatar of a "Golica" project card + Then I click to "Manage users" on "Golica" project card + And I click to "Invite users" link of a "Manage users for Golica" modal window + Then I should see team BioSistemika Process settings page of a Karli Novak user + + Scenario: Unsuccessful adding user to a project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to avatar of a "Golica" project card + Then I click to "Manage users" on "Golica" project card + And I click to "Marija Novak" in users dropdown menu of a "Manage users for Golica" modal window + And I click to "Add" button of a "Manage users for Golica" modal window + Then I should see error message "Plese select a user role." + And I click to "Close" button + + Scenario: Removing user from a project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to avatar of a "Golica" project card + Then I click to "Manage users" on "Golica" project card + And I click to "X" sign at "Marija Novak" user in dropdown menu of a "Manage users for Golica" modal window + Then "Marija Novak" user is removed from a list in dropdown menu of a "Manage users for Golica" modal window + And I click to "Close" button + + Scenario: Successful add comment to a project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to Comments of a "Golica" project card + Then I add "I was on Triglav one summer." in comment field + And I click to "+" sign + Then I should see "I was on Triglav one summer." in Comments list of "Golica" project card + + Scenario: Unsuccessful add comment to a project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to Comments of a "Golica" project card + And I click to "+" sign + Then I should see "Message can't be blank" red error message under comment field in Comments list of "Golica" project card + + Scenario: Successful edit comment to a project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to Comments of a "Golica" project card + And I click to down arrow of a "I was on Triglav one summer." comment + And I click to "Edit" in Comment options modal window + Then I change "I was on Triglav one summer." comment with "I was on Triglav one summer and I do not have plans to go once more." comment + And I click to "OK" sign + Then I should see "I was on Triglav one summer and I do not have plans to go once more." in Comments list of "Golica" project card + + Scenario: Unsuccessful edit comment to a project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to Comments of a "Golica" project card + And I click to down arrow of a "I was on Triglav one summer." comment + And I click to "Edit" in Comment options modal window + Then I change "I was on Triglav one summer." comment with "I was on Triglav one summer and I do not have plans to go once more." comment + And I click to "Cancel" sign + Then I should see "I was on Triglav one summer." in Comments list of "Golica" project card + + Scenario: Unsuccessful delete comment to a project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to Comments of a "Golica" project card + And I click to down arrow of a "I was on Triglav one summer." comment + And I click to "Delete" in Comment options modal window + And I click to "Cancel" button in "Are you sure you wish to delete this comment" modal window + Then I should see "I was on Triglav one summer." in Comments list of "Golica" project card + + Scenario: Successful delete comment to a project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to Comments of a "Golica" project card + And I click to down arrow of a "I was on Triglav one summer." comment + And I click to "Delete" in Comment options modal window + And I click to "OK" button in "Are you sure you wish to delete this comment" modal window + Then "I was on Triglav one summer." comment is removed from Comments list of "Golica" project card + + Scenario: Unsuccessful archived project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to down arrow of a "Mangart" project card + And I click to "Archive" of a Options modal window + And I click to "Cancel" button in "Are you sure to archive project?" modal window + Then I should see "Golica" privat project card in "BioSistemika Process" team page + + Scenario: Successful archived project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to down arrow of a "Mangart" project card + And I click to "Archive" of a Options modal window + And I click to "OK" button in "Are you sure to archive project?" modal window + Then I should see "Project Golica successfully archived." flash message + + Scenario: Restore archived project + Given home page of BioSistemika Process team of a Karli Novak user + And I click to "Archive" icon + Then I should see "Golica" project + And I click to down arrow of a "Golica" project card + And I click to "Restore" of a Options modal window + Then I should see "Project Golica successfully restored." flash message diff --git a/test/specifications/invite_user.feature b/test/specifications/invite_user.feature new file mode 100644 index 000000000..d82fedaef --- /dev/null +++ b/test/specifications/invite_user.feature @@ -0,0 +1,186 @@ +# feature/invite user.feature +Feature: Invite people to sciNote + As an owner of a team + I want to add new User to my team throuhout the sciNote + +Background: + Given the following users is registered: + |name | email | password | team | role | + |Karli Novak (creator)| nonadmin@myorg.com | mypassword1234 | BioSistemika Process | Administrator| + |Marija Novak | marija@myorg.com | mypassword5555 | Cell | Administrator| + And the following user has got sciNote - Accept Invitation email: + | email |invitation team + | karolina@myorg.com | BioSistemika Process + +Scenario: Successful Add team members + Given Settings page of BioSistemika Process team of a Karli Novak user + And I click on "Add team members" button + Then I fill in "lojze@myorg.com" to Invite users to team BioSistemika Process input field + And confirm with ENTER key + Then I fill in "marija@myorg.com" to Invite users to team BioSistemika Process input field + And confirm with ENTER key + Then I fill in "nonadmin@myorg.com" to Invite users to team BioSistemika Process input field + And confirm with ENTER key + And I click on "Invite user/s" button + And I click on "as Normal user/s" modal window + Then I should see "lojze@myorg.com - User successfully invited to sciNote and team BioSistemika Process as Normal user." Invitation results in Invite users to team BioSistemika Process modal window + Then I should see "marija@myorg.com - User was already a member of sciNote - successfully invited to team BioSistemika Process as Normal user." Invitation results in Invite users to team BioSistemika Process modal window + Then I should see "nonadmin@myorg.com - User is already a member of sciNote and team BioSistemika Process as Administrator." Invitation results in Invite users to team BioSistemika Process modal window + And I click on "Close" button + And I should see "active" Status of "marija@myorg.com" user in Team members list + And I should see "pending" Status of "lojze@myorg.com" user in Team members list + +Scenario: Unsuccessful Add team member + Given Settings page of BioSistemika Process team of a Karli Novak user + And I click on "Add team members" button + Then I fill in "anicamyorg.com" to Invite users to team BioSistemika Process input field + And confirm with ENTER key + Then I click on "Invite user/s" button + Then I click on "as Normal user/s" modal window + Then I should see "anicamyorg.com - Invalid email" Invitation results in Invite users to team BioSistemika Process modal window + And I click on "Close" button + +Scenario: Successful Invite people to sciNote + Given Settings page of BioSistemika Process team of a Karli Novak user + And I click on avatar + And I click to "Invite people to sciNote" + Then I fill in "janez@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + Then I fill in "marija@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + And I click on "Invite user/s" button + Then I should see "janez@myorg.com - User successfully invited to sciNote." Invitation results in Invite people to sciNote modal window + Then I should see "marija@myorg.com - User is already a member of sciNote." Invitation results in Invite people to sciNote modal window + And I click on "Close" button + +Scenario: Unsuccessful Invite people to sciNote + Given Settings page of BioSistemika Process team of a Karli Novak user + And I click to "Invite people to sciNote" + Then I fill in "anicamyorg.com" to Invite people to sciNote input field + And confirm with ENTER key + And I click on "Invite user/s" button + Then I should see "anicamyorg.com - Invalid email" Invitation results in Invite people to sciNote modal window + And I click on "Close" button + +Scenario: Successful Invite people to sciNote + Given Settings page of BioSistemika Process team of a Karli Novak user + And I click on avatar + And I click to "Invite people to sciNote" + Then I fill in "nikola@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + Then I fill in "marija@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + And I click on checkbox "Invite user to my team" + And I click on "Invite user/s" button + And I click on "as Normal user/s" modal window + Then I should see "nikola@myorg.com - User successfully invited to sciNote and team BioSistemika Process as Normal user." Invitation results in Invite people to sciNote modal window + Then I should see "marija@myorg.com - User is already a member of sciNote - successfully invited to team BioSistemika Process as Normal user." Invitation results in Invite people to sciNote modal window + And I click on "Close" button + +Scenario: Unsuccessful Invite people to sciNote + Given Settings page of BioSistemika Process team of a Karli Novak user + And I click to "Invite people to sciNote" + Then I fill in "anicamyorg.com" to Invite people to sciNote input field + And confirm with ENTER key + And I click on checkbox "Invite user to my team" + And I click on "Invite user/s" button + And I click on "as Normal user/s" modal window + Then I should see "anicamyorg.com - Invalid email" Invitation results in Invite people to sciNote modal window + And I click on "Close" button + +Scenario: Successful Invite people to sciNote + Given Profile page of a Karli Novak user + And I click on avatar + And I click to "Invite people to sciNote" + Then I fill in "anton@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + Then I fill in "marija@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + And I click on "Invite user/s" button + Then I should see "anton@myorg.com - User successfully invited to sciNote." Invitation results in Invite people to sciNote modal window + Then I should see "marija@myorg.com - User is already a member of sciNote." Invitation results in Invite people to sciNote modal window + And I click on "Close" button + +Scenario: Unsuccessful Invite people to sciNote + Given Profile page of a Karli Novak user + And I click to "Invite people to sciNote" + Then I fill in "anicamyorg.com" to Invite people to sciNote input field + And confirm with ENTER key + And I click on "Invite user/s" button + Then I should see "anicamyorg.com - Invalid email" Invitation results in Invite people to sciNote modal window + And I click on "Close" button + +Scenario: Successful Invite people to sciNote + Given Profile page of a Karli Novak user + And I click on avatar + And I click to "Invite people to sciNote" + Then I fill in "antonio@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + Then I fill in "marija@myorg.com" to Invite people to sciNote input field + And confirm with ENTER key + And I click on checkbox "Invite user to my team" + And I click on "Invite user/s" button + And I click on "as Normal user/s" modal window + Then I should see "antonio@myorg.com - User successfully invited to sciNote." Invitation results in Invite people to sciNote modal window + Then I should see "marija@myorg.com - User is already a member of sciNote." Invitation results in Invite people to sciNote modal window + And I click on "Close" button + +Scenario: Unsuccessful Invite people to sciNote + Given Profile page of a Karli Novak user + And I click to "Invite people to sciNote" + Then I fill in "anicamyorg.com" to Invite people to sciNote input field + And confirm with ENTER key + And I click on "Invite user/s" button + Then I should see "anicamyorg.com - Invalid email" Invitation results in Invite people to sciNote modal window + And I click on "Close" button + +Scenario: User has got sciNote - Accept Invitation email and click to link + Given I have "Accept Invitation" email for user "karolina@myorg.com" + And I click to "ACCEPT INVITATION" link in email + Then I should see "Set your full name and password" page + +Scenario: Successful Sign up + Given Set your full name and password page for user "karolina@myorg.com" + Then I fill the Sign up form with + | Full name | Password | Password confirmation | Team name | + | Karolina | mypassword3333 | mypassword3333 | Circle | + And I click to reCAPTCHA. + And I click on "Sign up" button + Then I should see "Circle" team + And I should see "Hi, Karolina" next to the avatar + And I should get a Gamification pop up message "Welcome to sciNote." + +Scenario: Verify invited user does have invitation team + Given Settings page of BioSistemika Process team of a Karli Novak user + And I should see "Karolina" name in column "Name" + +Scenario: User has got sciNote - Accept Invitation email and click to link + Given "Accept Invitation" email for user "karolina@myorg.com" + And I click to "ACCEPT INVITATION" link in email + Then I should see "The invitation token prvided is not valid" error message in Log in page + +Scenario: Unsuccessful Sign up, Password confirmation does not match + Given Set your full name and password page for user "agata@myorg.com" + Then I fill the Sign up form with + | Full name | Password | Password confirmation | Team name | + | Agata Novakovic| mypassword6666 | mypassword6665 | Circle | + And I click to reCAPTCHA. + And I click on "Sign up" button + Then I should see "doesn't match Password" error message under "Password confirmation" field + +Scenario: Unsuccessful Sign up, Team name is missing + Given Set your full name and password page for user "agata@myorg.com" + Then I fill the Sign up form with + | Full name | Password | Password confirmation | + | Agata Novakovic| mypassword6666 | mypassword6666 | + And I click to reCAPTCHA. + And I click on "Sign up" button + Then I should see "is too short (minimum is 2 characters)" error message under "Team name" field + +Scenario: Unsuccessful Sign up, reCAPTCHA is missing + Given Set your full name and password page for user "agata@myorg.com" + Then I fill the Sign up form with + | Full name | Password | Password confirmation | Team name | + | Agata Novakovic| mypassword6666 | mypassword6666 | Circle | + And I click on "Sign up" button + Then I should see "reCAPTCHA verification failed, please try again." error message under "recaptcha" field diff --git a/test/specifications/login.feature b/test/specifications/login.feature new file mode 100644 index 000000000..fce811bf3 --- /dev/null +++ b/test/specifications/login.feature @@ -0,0 +1,47 @@ +# feature/login.feature +Feature: Log in / Log out + As a user with account + I want to Log in with my account + So that I can use sciNote + I want to Log out + +Background: + Given the following users is registered: + | email | password | team + | nonadmin@myorg.com | mypassword1234 | BioSistemika Process + +Scenario: Log in successfully + Given I am on Log in page + Then I fill in Email "nonadmin@myorg.com" and Password "mypassword1234" + And I click on "Log in" button + Then I should see "BioSistemika Process" + +Scenario: Unsuccessful Log in + Given I am on Log in page + Then I do not fill in Email and Password + And I click on button "Log in" + Then I should see error message "Invalid email or password" + +Scenario: Unsuccessful Log in + Given I am on Log in page + Then I fill in Email "monday@myorg.com" and Password "monday1234" + And I click on button "Log in" + Then I should see error message "Invalid email or password" + +Scenario: Unsuccessful Log in + Given I am on Log in page + Then I fill in Email "nonadmin@myorg.com" and Password "mypassword123344" + And I click on button "Log in" + Then I should see error message "Invalid email or password" + +Scenario: Unsuccessful Log in + Given I am on Log in page + Then I fill in Email "monday@myorg.com" and Password "mypassword1234" + And I click on button "Log in" + Then I should see error message "Invalid email or password" + +Scenario: Successful Log out + Given home page of a Karli Novak user + Then I click to avatar + And I click on "Settings" + Then I should see message "Logged out successfully." diff --git a/test/specifications/profile.feature b/test/specifications/profile.feature new file mode 100644 index 000000000..55281e3c6 --- /dev/null +++ b/test/specifications/profile.feature @@ -0,0 +1,112 @@ +# feature/profile.feature +Feature: Settings + I want to Change Profile data for my account: Avatar, Full name, Initials, Email and Password + +Background: + Given the following users is registered: + | email | password | full name | Initials | + | nonadmin@myorg.com | mypassword1234 | Karli Novak | KN | +And the following file: + | file | size | + | Moon.png | 0.5 MB | + | Star.png | 0.2 MB | + | File.txt | 0.2 MB | + + Scenario: Successful navigate to profile page + Given home page of BioSistemika Process team of a Karli Novak user + Then I click to Avatar + Then I click to Settings in avatar drop down menu + Then I should see "My profile page" of a Karli Novak user + +Scenario: Unsuccessful add avatar, file is too big + Given My profile page of a Karli Novak user + Then I click to Avatar + Then I click to Browse button + And I select a Moon.png file + Then I click to Open button + Then I click to Upload button + And I should see "You can upload max 0.2 MB of files at one time. Please remove one or more files and try to submit again" error message under "Avatar" field + +Scenario: Unsuccessful add avatar, file is invalid + Given My profile page of a Karli Novak user + Then I click to Avatar + Then I click to Browse button + And I select a File.txt file + Then I click to Open button + Then I click to Upload button + And I should see "Avatar content type is invalid" error message under "Avatar" field + +Scenario: Successful add avatar + Given My profile page of a Karli Novak user + Then I click to Avatar + Then I click to Browse button + And I select a Star.png file + Then I click to Open button + Then I click to Upload button + And I should see "Your account has been updated successfully" flash message + +Scenario: Successful Full name Change + Given My profile page of a Karli Novak user + Then I click to Edit button under Full name field + And I fill in "Novakovic" + Then I click to Update button + And I should see "Karli Novak Novakovic" in Full name field + +Scenario: Unsuccessful Initials Change, is too long + Given My profile page of a Karli Novak user + Then I click to Edit button under Initials field + And I fill in "KNOCK" + Then I click to Update button + And I should see "is too long (maximum is 4 characters)" flash message + +Scenario: Successful Initials Change + Given My profile page of a Karli Novak user + Then I click to Edit button under Initials field + And I fill in "KN" + Then I click to Update button + And I should see "KNKN" in Full name field + +Scenario: Successful Email Change + Given My profile page of a Karli Novak user + Then I click to Edit button under Email field + And I Change "nonadmin@myorg.com" with "user@myorg.com" + And I fill in "mypassword1234" in Current password field + Then I click to Update button + And I should see "user@myorg.com" in Email field + +Scenario: Unsuccessful Password Change, is too short + Given My profile page of a Karli Novak user + Then I click to Edit button under Password field + And I fill in "mypassword1234" in Current pasword field + And I fill in "mypass" in New pasword field + And I fill in "mypass" in New pasword confiramtion field + Then I click to Update button + And I should see "is too short (minimum is 8 characters)" flash message under New password field + And I should see "is too short (minimum is 8 characters)" flash message under New password confiramtion field + +Scenario: Unsuccessful Password Change, does not match + Given My profile page of a Karli Novak user + Then I click to Edit button under Password field + And I fill in "mypassword1234" in Current pasword field + And I fill in "mypassword5678" in New pasword field + And I fill in "mypassword56788" in New pasword confiramtion field + Then I click to Update button + And I should see "doesn't match Password" flash message under New password confiramtion field + +Scenario: Unsuccessful Password Change, current password is invalid + Given My profile page of a Karli Novak user + Then I click to Edit button under Password field + And I fill in "mypassword123" in Current pasword field + And I fill in "mypassword5678" in New pasword field + And I fill in "mypassword5678" in New pasword confiramtion field + Then I click to Update button + And I should see "is invalid" flash message under Current password field + +Scenario: Successful Password Change + Given My profile page of a Karli Novak user + Then I click to Edit button under Password field + And I fill in "mypassword1234" in Current pasword field + And I fill in "mypassword5678" in New pasword field + And I fill in "mypassword5678" in New pasword confiramtion field + Then I click to Update button + And I should see "XXXXX" diff --git a/test/specifications/project.feature b/test/specifications/project.feature new file mode 100644 index 000000000..b8140ad92 --- /dev/null +++ b/test/specifications/project.feature @@ -0,0 +1,49 @@ +# feature/project. feature +Feature: Project + As a creator of team + I want to navigate to other my team + I want to navigate through a sciNote + +Background: +Given the following users is registered: + | name | email | password | team | role | + |Karli Novak (creator)| nonadmin@myorg.com | mypassword1234 | BioSistemika Process | Administrator| + |Karli Novak | nonadmin@myorg.com | mypassword1234 | BioSistemika Path | Normal user | + + Scenario: Successful change a team view + Given home page of BioSistemika Path team of a Karli Novak user + And I click to "BioSistemika Path" name + And I click to "BioSistemika Process" in team dropdown menu + Then I should see "You are working on BioSistemika Process now!" flash message + + Scenario: Successful return to home page + Given My profile page of a Karli Novak user + And I click to "Home" icon + Then I am on home page of BioSistemika Process team of a Karli Novak user + + Scenario: Successful navigate to Protocol management page + Given My profile page of a Karli Novak user + And I click to "Protocol management" icon + Then I am on Protocol management page of BioSistemika Process team of a Karli Novak user + + Scenario: Successful navigate to Repositories page + Given My profile page of a Karli Novak user + And I click to "Repositories" icon + Then I am on Repositories page of BioSistemika Process team of a Karli Novak user + + Scenario: Successful navigate to Activities page + Given My profile page of a Karli Novak user + And I click to "Activities" icon + Then I am on Activities page of BioSistemika Process team of a Karli Novak user + + Scenario: Successful navigate to Premium page + Given My profile page of a Karli Novak user + And I click to "i" icon + And I click to "Premium" in "i" menu + Then I am on "https://scinote.net/premium/" page + +Scenario: Successful navigate to Premium page + Given My profile page of a Karli Novak user + And I click to "i" icon + And I click to "About sciNote" in "i" menu + Then I should see "About sciNote" modal window diff --git a/test/specifications/protocol.feature b/test/specifications/protocol.feature new file mode 100644 index 000000000..11fba1f25 --- /dev/null +++ b/test/specifications/protocol.feature @@ -0,0 +1,113 @@ +# feature/protocol. feature +Feature: Protocol + As a member of a project + I want to add/ edit/ delete a tag + I want to add/ edit task description + I want to complete / uncomplete task + I want to add / change due date + +Background: +Given the following users is registered: + | name | email | password | team | role | + |Karli Novak (creator)| nonadmin@myorg.com | mypassword1234 | BioSistemika Process | Administrator| +And the following file: + | file | size | + | Moon.png | 0.5 MB | + | Star.png | 0.5 MB | + + Scenario: Successful add new tag to a task + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Tags" icon + Then I click to "Create new tag" button to "Manage tags for ZOO" modal window + And I click to "Edit tag" icon to "New tag" tag + Then I change "New tag" tag name to "Sky" tag name + And I click to "Edit tag" icon to "Sky" tag + And I click to "blue" square + And I click on "Save tag" icon + Then I should see blue "Sky" tag in "Showing tags of task ZOO" list + And I click on "Close" button + Then I should see blue "Sky" tag on "Tags:" line + + Scenario: Successful change a tag to a task + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Tags" icon + Then I click to "Create new tag" button to "Manage tags for ZOO" modal window + And I click to "Edit tag" icon to "New tag" tag + Then I change "New tag" tag name to "Star" tag name + And I click to "Edit tag" icon to "Star" tag + And I click to "red" square + And I click on "Save tag" icon + Then I should see red "Star" tag in "Showing tags of task ZOO" list + And I click to "X" icon of a blue "Sky" tag to "Remove tag from task ZOO" + Then blue "Sky" tag is removed from "Showing tags of task ZOO" list + And I click on "Close" button + Then I should see red "Star" tag on "Tags:" line + + Scenario: Successful add a tag to a task + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Tags" icon + Then I click to "Sky" tag from drop down menu + And I click on "+Add tag" button + Then I should see blue "Sky" tag in "Showing tags of task ZOO" list + And I click on "Close" button + Then I should see red "Star" tag on "Tags:" line + Then I should see blue "Sky" tag on "Tags:" line + + Scenario: Successful change a tag name and tag color + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Tags" icon + Then I click to "Create new tag" button to "Manage tags for ZOO" modal window + And I click to "Edit tag" icon to "Star" tag + Then I change "Star" tag name to "Moon" tag name + And I click to "Edit tag" icon to "Moon" tag + And I click to "pink" square + And I click on "Save tag" icon + Then I should see pink "Moon" tag in "Showing tags of task ZOO" list + And I click on "Close" button + Then I should see pink "Moon" tag on "Tags:" line + + Scenario: Successful delete a tag + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Tags" icon + Then I click to "Permanently delete tag from all tasks" icon to "Star" tag + And I click on "Close" button + Then I should see red "Sky" tag on "Tags:" line + + Scenario: Successful add a due date + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Due date:" icon + And I click to "26.9.2018" in Due date field of a "Edit task ZOO due date" modal window + And I click on "Update" button + Then I should see "26.9.2018" due date on "Due date:" line + + Scenario: Successful remove a due date + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Due date:" icon + And I click to "X" at the end of Due date field of a "Edit task ZOO due date" modal window + And I click on "Update" button + Then I should see "not set" due date on "Due date:" line + + Scenario: Successful add description + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "i" icon description of a "ZOO" task + Then I fill in "I was on Triglav one summe.r" to Desription field of "Edit task ZOO description" modal window + And I click on "Update" button + Then I should see "I was on Triglav one summer" description on "i" line + + Scenario: Successful change description + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "i" icon description of a "ZOO" task + Then I change "I was on Triglav one summer." desription with "I will go to Krn one day." desription of "Edit task ZOO description" modal window + And I click on "Update" button + + Scenario: Successful Complete task + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Complete task" button + Then I should see "Task completed" description on "Status:" line + Then I should see grey "Uncomplete task" button + + Scenario: Successful Uncomplete task + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Uncomplete task" button + Then I should see "In progress" description on "Status:" line + Then I should see green "Complete task" button diff --git a/test/specifications/protocol_manage.feature b/test/specifications/protocol_manage.feature new file mode 100644 index 000000000..6466e705e --- /dev/null +++ b/test/specifications/protocol_manage.feature @@ -0,0 +1,110 @@ +# feature/protocol manage. feature +Feature: Protocol manage + As a member of a project + I want to add / change/ save protocol to a task / protocol management + +Background: +Given the following users is registered: + | name | email | password | team | role | + |Karli Novak (creator)| nonadmin@myorg.com | mypassword1234 | BioSistemika Process | Administrator| +And the following file: + | file | size | + | Moon.png | 0.5 MB | + | Star.png | 0.5 MB | + + Scenario: Successful add new tag to a task + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Tags" icon + Then I click to "Create new tag" button to "Manage tags for ZOO" modal window + And I click to "Edit tag" icon to "New tag" tag + Then I change "New tag" tag name to "Sky" tag name + And I click to "Edit tag" icon to "Sky" tag + And I click to "blue" square + And I click on "Save tag" icon + Then I should see blue "Sky" tag in "Showing tags of task ZOO" list + And I click on "Close" button + Then I should see blue "Sky" tag on "Tags:" line + + Scenario: Successful change a tag to a task + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Tags" icon + Then I click to "Create new tag" button to "Manage tags for ZOO" modal window + And I click to "Edit tag" icon to "New tag" tag + Then I change "New tag" tag name to "Star" tag name + And I click to "Edit tag" icon to "Star" tag + And I click to "red" square + And I click on "Save tag" icon + Then I should see red "Star" tag in "Showing tags of task ZOO" list + And I click to "X" icon of a blue "Sky" tag to "Remove tag from task ZOO" + Then blue "Sky" tag is removed from "Showing tags of task ZOO" list + And I click on "Close" button + Then I should see red "Star" tag on "Tags:" line + + Scenario: Successful add a tag to a task + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Tags" icon + Then I click to "Sky" tag from drop down menu + And I click on "+Add tag" button + Then I should see blue "Sky" tag in "Showing tags of task ZOO" list + And I click on "Close" button + Then I should see red "Star" tag on "Tags:" line + Then I should see blue "Sky" tag on "Tags:" line + + Scenario: Successful change a tag name and tag color + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Tags" icon + Then I click to "Create new tag" button to "Manage tags for ZOO" modal window + And I click to "Edit tag" icon to "Star" tag + Then I change "Star" tag name to "Moon" tag name + And I click to "Edit tag" icon to "Moon" tag + And I click to "pink" square + And I click on "Save tag" icon + Then I should see pink "Moon" tag in "Showing tags of task ZOO" list + And I click on "Close" button + Then I should see pink "Moon" tag on "Tags:" line + + Scenario: Successful delete a tag + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Tags" icon + Then I click to "Permanently delete tag from all tasks" icon to "Star" tag + And I click on "Close" button + Then I should see red "Sky" tag on "Tags:" line + + Scenario: Successful add a due date + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Due date:" icon + And I click to "26.9.2018" in Due date field of a "Edit task ZOO due date" modal window + And I click on "Update" button + Then I should see "26.9.2018" due date on "Due date:" line + + Scenario: Successful remove a due date + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Due date:" icon + And I click to "X" at the end of Due date field of a "Edit task ZOO due date" modal window + And I click on "Update" button + Then I should see "not set" due date on "Due date:" line + + Scenario: Successful add description + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "i" icon description of a "ZOO" task + Then I fill in "I was on Triglav one summe.r" to Desription field of "Edit task ZOO description" modal window + And I click on "Update" button + Then I should see "I was on Triglav one summer" description on "i" line + + Scenario: Successful change description + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "i" icon description of a "ZOO" task + Then I change "I was on Triglav one summer." desription with "I will go to Krn one day." desription of "Edit task ZOO description" modal window + And I click on "Update" button + + Scenario: Successful Complete task + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Complete task" button + Then I should see "Task completed" description on "Status:" line + Then I should see grey "Uncomplete task" button + + Scenario: Successful Uncomplete task + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Uncomplete task" button + Then I should see "In progress" description on "Status:" line + Then I should see green "Complete task" button diff --git a/test/specifications/protocol_step.feature b/test/specifications/protocol_step.feature new file mode 100644 index 000000000..6045e6440 --- /dev/null +++ b/test/specifications/protocol_step.feature @@ -0,0 +1,167 @@ +# feature/protocol step. feature +Feature: Protocol step + As a member of a project + I want to add/ edit/ delete a step + I want to add/ edit/ delete description to a step + I want to add/ edit/ delete table to a step + I want to add/ edit/ delete file to a step + +Background: +Given the following users is registered: + | name | email | password | team | role | + |Karli Novak (creator)| nonadmin@myorg.com | mypassword1234 | BioSistemika Process | Administrator| +And the following file: + | file | size | + | Moon.png | 0.5 MB | + | Star.png | 0.5 MB | + + Scenario: Unsuccessful add new step to a task + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Add new" button + And I click on "Add" button + Then I should see Step name "can't be blank" red error message + And I click to "Cancel" button + + Scenario: Successful add new step to a task + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Add new" button + Then I fill in "LJ ZOO" to Step name field + And I click on "Add" button + Then I should see "ZOO" step + + Scenario: Successful add new step to a task + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Add new" button + Then I fill in "ZOO" to Step name field + And I click on "Add" button + Then I should see "ZOO" step + + Scenario: Successful add new step to a task + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Add new" button + Then I fill in "PES" to Step name field + Then I fill in "Živali pa so se odpravile dalje po svetu." to Description field + And I click on "Files" tab + And I click to "Browse to add" button + Then "Open" window is opened + And I click to "Moon.png" File + Then I click to "Open" button + Then I click on "Tables" tab + Then I click on "+Add table" link + And I should see Table title and Table form + Then I fill in "Labradorec" to "A1" Table field + Then I fill in "Dalmatinec" to "B2" Table field + And I click on "Add" button + Then I should see "PES" step + + Scenario: Successful reorder Steps + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow icon of a "LJ ZOO" Step + Then I click to down arrow icon of a "LJ ZOO" Step + Then I click to up arrow icon of a "PES" Step + Then I should see "PES" step on first position + Then I should see "ZOO" step on second position + + Scenario: Successful edit Step + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Edit step" icon of a "PES" Step + Then I change "Živali pa so se odpravile dalje po svetu." Description field with "Vse to pa zaradi botra petelina!" Description field + And I click on "Files" tab + And I click to "Browse to add" button + Then "Open" window is opened + And I click to "Star.png" File + Then I click to "Open" button + And I click to "X" of "Moon.png" file + Then I click on "Tables" tab + And I fill in "Seznam pasem" to Table title field + Then I change "Labradorec" cell content with "Bobtail" cell content to "A1" Table field + And I fill in "Kraški ovčar" to "D2" Table field + Then I click on "Checklist" tab + And I click on "+Add checklist" link + And I click on "+Add item" link + And I click on "+Add item" link + Then I fill in "Seznam pasem" to Checklist name field + And I fill in "Buldog" to Checklist item field + And I fill in "Lesi" to Checklist item field + And I fill in "Hrt" to Checklist item field + And I click on "Add" button + Then I should see "PES" edited step + + Scenario: Successful edit Step with reordering checklist items + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Edit step" icon of a "PES" Step + Then I click on "Checklist" tab + And I move "Hrt" Checklist item to first position + And I move "Buldog" Checklist item to third position + And I click on "Add" button + Then I should see "PES" edited step + + Scenario: Successful check checklist item + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I check "Buldog" Checklist item of a "PES" Step + And I check "Lesi" Checklist item of a "PES" Step + Then I should see checked two check boxes + + Scenario: Successful add comment to a Step + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + Then I add "I was on Triglav one summer." in comment field + And I click to "+" sign in comment field of a "ZOO" Step + Then I should see "I was on Triglav one summer." in Comments list of "ZOO" Step + + Scenario: Unsuccessful add comment to a Step + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "+" sign in comment field of a "ZOO" Step + Then I should see "can't be blank" red error message under comment field in Comments list of a "ZOO" Step + + Scenario: Successful edit comment to a Step + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "ZOO" comment + And I click to "Edit" in Comment options modal window + Then I change "I was on Triglav one summer." comment with "I was on Triglav one summer and I do not have plans to go once more." comment + And I click to "OK" sign + Then I should see "I was on Triglav one summer and I do not have plans to go once more." in Comments list of a "ZOO" Step + + Scenario: Unsuccessful edit comment to a Step + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "ZOO" comment + And I click to "Edit" in Comment options modal window + Then I change "I was on Triglav one summer." comment with "I was on Triglav one summer and I do not have plans to go once more." comment + And I click to "Cancel" sign + Then I should see "I was on Triglav one summer." in Comments list of a "ZOO" Step + + Scenario: Unsuccessful delete comment to a Step + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "I was on Triglav one summer." comment + And I click to "Delete" in Comment options modal window + And I click to "Cancel" button in "Are you sure you wish to delete this comment" modal window + Then I should see "I was on Triglav one summer." in Comments list of a "ZOO" Text + + Scenario: Successful delete comment to a Step + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "I was on Triglav one summer." comment + And I click to "Delete" in Comment options modal window + And I click to "OK" button in "Are you sure you wish to delete this comment" modal window + Then "I was on Triglav one summer." comment is removed from Comments list of a "ZOO" Step + + Scenario: Successful delete Step + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Delete" icon of a "LJ ZOO" Step + And I click to "OK" button of a "Are you sure to delete step LJ ZOO?" modal window + Then I should see " Step 3 successfully deleted." flash message + + Scenario: Successful complete Step + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Complete step" button of a "ZOO" Step + Then I should see white "Uncomplete step" button + + Scenario: Successful edit completed Step + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Edit step" icon of a "PES" Step + Then I change "Vse to pa zaradi botra petelina!" Description field with "Bežimo, da se nam še kaj ne zgodi!" Description field + And I click on "Add" button + Then I should see "PES" edited step + + Scenario: Successful uncomplete Step + Given TASK page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Uncomplete step" button of a "ZOO" Step + Then I should see "Complete step" button diff --git a/test/specifications/result.feature b/test/specifications/result.feature new file mode 100644 index 000000000..dfe0c9ae5 --- /dev/null +++ b/test/specifications/result.feature @@ -0,0 +1,297 @@ +# feature/result. feature +Feature: Result + As a member of a project + I want to add/ edit/ delete text results of a task + I want to add/ edit/ delete table results of a task + I want to add/ edit/ delete file results of a task + +Background: +Given the following users is registered: + | name | email | password | team | role | + |Karli Novak (creator)| nonadmin@myorg.com | mypassword1234 | BioSistemika Process | Administrator| +And the following file: + | file | size | + | Moon.png | 0.5 MB | + | Star.png | 0.5 MB | + + Scenario: Unsuccessful add Text result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Text" button + And I click on "Add text result" button + Then I should see Text "can't be blank" red error message + And I click to "Cancel" button + + Scenario: Successful add text result with Text name + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Text" button + Then I fill in "ZOO" to Name field + Then I fill in "Ĺ˝ivali pa so se odpravile dalje po svetu." to Text field + And I click on "Add text result" button + Then I should see "ZOO" Text Result + + Scenario: Successful add Text result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Text" button + Then I fill in "Vse to pa zaradi botra petelina, bog mu daj zdravje!" to Text field + And I click on "Add text result" button + Then I should see "Vse to pa zaradi botra petelina, bog mu daj zdravje!" Text field + + Scenario: Successful edit Text task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Edit result" icon of a "LJ ZOO" Text task result + Then I change "LJ ZOO" Name with "ZOO" Name + Then I change "Ĺ˝ivali pa so se odpravile dalje po svetu." Text field with "Vse to pa zaradi botra petelina!" Text field + And I click on "Update text result" button + Then I should see "Vse to pa zaradi botra petelina!" Text field + + Scenario: Successful add comment to a Text task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + Then I add "I was on Triglav one summer." in comment field + And I click to "+" sign in comment field of a "ZOO" Text result + Then I should see "I was on Triglav one summer." in Comments list of "ZOO" Text result + + Scenario: Unsuccessful add comment to a Text task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "+" sign in comment field of a "ZOO" Text result + Then I should see "can't be blank" red error message under comment field in Comments list of a "ZOO" Text result + + Scenario: Successful edit comment to a Text task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "ZOO" comment + And I click to "Edit" in Comment options modal window + Then I change "I was on Triglav one summer." comment with "I was on Triglav one summer and I do not have plans to go once more." comment + And I click to "OK" sign + Then I should see "I was on Triglav one summer and I do not have plans to go once more." in Comments list of a "ZOO" Text result + + Scenario: Unsuccessful edit comment to a Text task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "ZOO" comment + And I click to "Edit" in Comment options modal window + Then I change "I was on Triglav one summer." comment with "I was on Triglav one summer and I do not have plans to go once more." comment + And I click to "Cancel" sign + Then I should see "I was on Triglav one summer." in Comments list of a "ZOO" Text result + + Scenario: Unsuccessful delete comment to a Text task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "I was on Triglav one summer." comment + And I click to "Delete" in Comment options modal window + And I click to "Cancel" button in "Are you sure you wish to delete this comment" modal window + Then I should see "I was on Triglav one summer." in Comments list of a "ZOO" Text result + + Scenario: Successful delete comment to a Text task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "I was on Triglav one summer." comment + And I click to "Delete" in Comment options modal window + And I click to "OK" button in "Are you sure you wish to delete this comment" modal window + Then "I was on Triglav one summer." comment is removed from Comments list of a "ZOO" Text result + + Scenario: Successful archive text result with Text name + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Archive result" icon of a "ZOO" Text task result + And I click to "OK" button in "Are you sure to archive result?" modal window + Then I should see "Successfully archived text result in task Control." flash message + + Scenario: Unsuccessful add Table result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Table" button + And I click on "Add Table result" button + Then I should see Text "can't be blank" red error message + And I click to "Cancel" button + + Scenario: Successful add table result with Table name + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Table" button + Then I fill in "ZOO" to Name field + Then I fill in "Ĺ˝ivali pa so se odpravile dalje po svetu." to "A1" Table field + And I click on "Add table result" button + Then I should see "ZOO" Table Result + + Scenario: Successful add Table result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Table" button + Then I fill in "Vse to pa zaradi botra petelina, bog mu daj zdravje!" to "A1" Table field + And I click on "Add table result" button + Then I should see "Vse to pa zaradi botra petelina, bog mu daj zdravje!" in "A1" Table field + + Scenario: Successful edit Table task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Edit result" icon of a "LJ ZOO" Table task result + Then I change "LJ ZOO" Name with "ZOO" Name + Then I change "Ĺ˝ivali pa so se odpravile dalje po svetu." Table field with "Vse to pa zaradi botra petelina!" Table field + Then I fill in "I was on Triglav one summer" to "B2" Table field + And I click on "Update table result" button + Then I should see "I was on Triglav one summer" in "B2" Table field + + Scenario: Successful add comment to a Table task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + Then I add "I was on Triglav one summer." in comment field + And I click to "+" sign in comment field of a "ZOO" Table result + Then I should see "I was on Triglav one summer." in Comments list of "ZOO" Table result + + Scenario: Successful edit comment to a Table task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "ZOO" comment + And I click to "Edit" in Comment options modal window + Then I change "I was on Triglav one summer." comment with "I was on Triglav one summer and I do not have plans to go once more." comment + And I click to "OK" sign + Then I should see "I was on Triglav one summer and I do not have plans to go once more." in Comments list of a "ZOO" Table result + + Scenario: Unsuccessful edit comment to a Table task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "ZOO" comment + And I click to "Edit" in Comment options modal window + Then I change "I was on Triglav one summer." comment with "I was on Triglav one summer and I do not have plans to go once more." comment + And I click to "Cancel" sign + Then I should see "I was on Triglav one summer." in Comments list of a "ZOO" Table result + + Scenario: Unsuccessful delete comment to a Table task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "I was on Triglav one summer." comment + And I click to "Delete" in Comment options modal window + And I click to "Cancel" button in "Are you sure you wish to delete this comment" modal window + Then I should see "I was on Triglav one summer." in Comments list of a "ZOO" Table result + + Scenario: Successful delete comment to a Table task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "I was on Triglav one summer." comment + And I click to "Delete" in Comment options modal window + And I click to "OK" button in "Are you sure you wish to delete this comment" modal window + Then "I was on Triglav one summer." comment is removed from Comments list of a "ZOO" Table result + + Scenario: Successful archive Table result with Table name + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Archive result" icon of a "ZOO" Table task result + And I click to "OK" button in "Are you sure to archive result?" modal window + Then I should see "Successfully archived table result in task Control." flash message + + Scenario: Unsuccessful add File result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "File" button + And I click on "Add file result" button + Then I should see File "can't be blank" red error message + And I click to "Cancel" button + + Scenario: Successful add File result with File name + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "File" button + Then I click to "Browse to add" button + And "Open" window is opened + And I click to "Moon.png" File + And I click to "Open" button + Then I fill in "LJ ZOO" to Name field + And I click on "Add file result" button + Then I should see "ZOO" File Result + + Scenario: Successful add File result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "File" button + Then I click to "Browse to add" button + And "Open" window is opened + And I click to "Moon.png" File + And I click to "Open" button + And I click on "Add file result" button + Then I should see "Moon.png" File Result + + Scenario: Successful edit File result with File name + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Edit result" icon of a "LJ ZOO" File task result + Then I click to "Choose Fie" button + And "Open" window is opened + And I click to "Star.png" File + And I click to "Open" button + Then I change "LJ ZOO" Name with "ZOO" Name + And I click on "Update file result" button + Then I should see "LJ ZOO" File Result + + Scenario: Successful add comment to a File task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + Then I add "I was on Triglav one summer." in comment field + And I click to "+" sign in comment field of a "ZOO" File result + Then I should see "I was on Triglav one summer." in Comments list of "ZOO" File result + + Scenario: Successful edit comment to a File task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "ZOO" comment + And I click to "Edit" in Comment options modal window + Then I change "I was on Triglav one summer." comment with "I was on Triglav one summer and I do not have plans to go once more." comment + And I click to "OK" sign + Then I should see "I was on Triglav one summer and I do not have plans to go once more." in Comments list of a "ZOO" File result + + Scenario: Unsuccessful edit comment to a File task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "ZOO" comment + And I click to "Edit" in Comment options modal window + Then I change "I was on Triglav one summer." comment with "I was on Triglav one summer and I do not have plans to go once more." comment + And I click to "Cancel" sign + Then I should see "I was on Triglav one summer." in Comments list of a "ZOO" File result + + Scenario: Unsuccessful delete comment to a File task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "I was on Triglav one summer." comment + And I click to "Delete" in Comment options modal window + And I click to "Cancel" button in "Are you sure you wish to delete this comment" modal window + Then I should see "I was on Triglav one summer." in Comments list of a "ZOO" File result + + Scenario: Successful delete comment to a File task result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to down arrow of a "I was on Triglav one summer." comment + And I click to "Delete" in Comment options modal window + And I click to "OK" button in "Are you sure you wish to delete this comment" modal window + Then "I was on Triglav one summer." comment is removed from Comments list of a "ZOO" File result + + Scenario: Successful archive File result with File name + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Archive result" icon of a "ZOO" File task result + And I click to "OK" button in "Are you sure to archive result?" modal window + Then I should see "Successfully archived file result in task Control." flash message + + Scenario: Download archived Text result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Archive" icon + Then I should see "ZOO" Text result + And I click to down arrow of a "ZOO" Text result + And I click to "Download" of a Options modal window + Then I should see "ZOO" Text result is dowloaded + + Scenario: Download archived Table result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Archive" icon + Then I should see "ZOO" Table result + And I click to down arrow of a "ZOO" Table result + And I click to "Download" of a Options modal window + Then I should see "ZOO" Table result is dowloaded + + Scenario: Download archived File result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Archive" icon + Then I should see "ZOO" File result + And I click to down arrow of a "ZOO" File result + And I click to "Download" of a Options modal window + Then I should see "ZOO" File result is dowloaded + + Scenario: Delete archived Text result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Archive" icon + Then I should see "ZOO" Text result + And I click to down arrow of a "ZOO" Text result + And I click to "Delete" of a Options modal window + And I click to "OK" button in "Are you sure to permanently delete result?" modal window + Then I should see "Sucessfully removed result from task Control." flash message + + Scenario: Delete archived Table result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Archive" icon + Then I should see "ZOO" Table result + And I click to down arrow of a "ZOO" Table result + And I click to "Delete" of a Options modal window + And I click to "OK" button in "Are you sure to permanently delete result?" modal window + Then I should see "Sucessfully removed result from task Control." flash message + + Scenario: Delete archived File result + Given RESULTS page of a "Control" task of "qPCR" experiment of a "Protein" project of a Karli Novak user + And I click to "Archive" icon + Then I should see "ZOO" File result + And I click to down arrow of a "ZOO" File result + And I click to "Delete" of a Options modal window + And I click to "OK" button in "Are you sure to permanently delete result?" modal window + Then I should see "Sucessfully removed result from task Control." flash message diff --git a/test/specifications/sign_up.feature b/test/specifications/sign_up.feature new file mode 100644 index 000000000..b2116b8da --- /dev/null +++ b/test/specifications/sign_up.feature @@ -0,0 +1,55 @@ +# feature/sign up.feature +Feature: Sign up + As a new User + I want to Sign up as a new User + I want to create a new account + +Background: + Given the following users is registered: + | email | password | team + | nonadmin@myorg.com | mypassword1234 | BioSistemika Process + +Scenario: Successful Sign up + Given I am on Sign up page + Then I fill the Sign up form with + | Full name | Email | Password | Password confirmation | Team name | + | Karli | nonuser@myorg.com | mypassword1234 | mypassword1234 | BioSistemika Process | + And I click on reCAPTCHA. + And I click on "Sign up" button + Then I should see "BioSistemika Process" + Then I should see "Hi, Karli" nex to the avatar + And I should get a Gamification pop up message "Welcome to sciNote." + + Scenario: Unsuccessful Sign up, Password confirmation does not match + Given I am on Sign up page + Then I fill the Sign up form with + | Full name | Email | Password | Password confirmation | Team name | + | Karli | nonuser@myorg.com | mypassword1234 | mypassword123344 | BioSistemika Process | + And I click on reCAPTCHA. + And I click on "Sign up" button + Then I should see "doesn't match Password" error message under "Password confirmation" field + +Scenario: Unsuccessful Sign up, Team name is missing + Given I am on Sign up page + Then I fill the Sign up form with + | Full name | Email | Password | Password confirmation | + | Karli | nonuser@myorg.com | mypassword1234 | mypassword123344 | + And I click on reCAPTCHA. + And I click on "Sign up" button + Then I should see "is too short (minimum is 2 characters)" error message under "Team name" field + +Scenario: Unsuccessful Sign up, reCAPTCHA is missing + Given I am on Sign up page + Then I fill the Sign up form with + | Full name | Email | Password | Password confirmation | Team name | + | Karli | nonuser@myorg.com | mypassword1234 | mypassword1234 | BioSistemika Process | + And I click on "Sign up" button + Then I should see "reCAPTCHA verification failed, please try again." error message under "recaptcha" field + +Scenario: Unsuccessful Sign up, Email has already been taken + Given I am on Sign up page + Then I fill the Sign up form with + | Full name | Email | Password | Password confirmation | Team name | + | Karli | nonadmin@myorg.com | mypassword1234 | mypassword1234 | BioSistemika Process | + And I click on "Sign up" button + Then I should see "has already been taken" error message under Email field diff --git a/test/specifications/teams.feature b/test/specifications/teams.feature new file mode 100644 index 000000000..51a2bf6b3 --- /dev/null +++ b/test/specifications/teams.feature @@ -0,0 +1,76 @@ +# feature/teams.feature +Feature: Teams settings + As a creator of team + I want to change a user role + I want to add and change team description + I want to edit team name + +Background: +Given the following users is registered: + | name | email | password | team | role | + |Karli Novak (creator)| nonadmin@myorg.com | mypassword1234 | BioSistemika Process Company | Administrator| + |Marija Novak | marija@myorg.com | mypassword5555 | BioSistemika Process | Normal user | + |Suazana Novak | suazana@myorg.com | mypassword6666 | BioSistemika Process | Guest user | + + Scenario: Add team description + Given team BioSistemika Process settings page of a Karli Novak user + And I click to "i" blue button + Then I fill in "I was on Triglav one summer." to Description field of "Edit team description" modal window + And I click on "Update" button + Then I should see "I was on Triglav one summer." in team description field + + Scenario: Change team name + Given team BioSistemika Process settings page of a Karli Novak user + And I click to "BioSistemika Process Company" team name link + Then I change "BioSistemika Process Company" description with "BioSistemika Process" description to Name field of "Edit team name" modal window + And I click on "Update" button + Then I should see "BioSistemika Process" in team name field + + Scenario: Change team description + Given team BioSistemika Process settings page of a Karli Novak user + And I click to "i" blue button + Then I change "I was on Triglav one summer." description with "I want to go to Nanos." description to Description field of "Edit team description" modal window + And I click on "Update" button + Then I should see "I want to go to Nanos." in team description field + + Scenario: Change user role + Given team BioSistemika Process settings page of a Karli Novak user + And I click to Action button of a Marija Novak user in Team members table + Then I click to "Guest" in User role modal window + Then I should see "Guest" in Role column of a Marija Novak user in Team members table + + Scenario: Change user role + Given team BioSistemika Process settings page of a Karli Novak user + And I click to Action button of a Suazana Novak user in Team members table + Then I click to "Normal user" in User role modal window + Then I should see "Normal user" in Role column of a Suazana Novak user in Team members table + + Scenario: Change user role + Given team BioSistemika Process settings page of a Karli Novak user + And I click to Action button of a Marija Novak user in Team members table + Then I click to "Administrator" in User role modal window + Then I should see "Administrator" in Role column of a Marija Novak user in Team members table + + Scenario: Change user role + Given team BioSistemika Process settings page of a Karli Novak user + And I click to Action button of a Suazana Novak user in Team members table + Then I click to "Administrator" in User role modal window + Then I should see "Administratorr" in Role column of a Suazana Novak user in Team members table + + Scenario: Change user role + Given team BioSistemika Process settings page of a Karli Novak user + And I click to Action button of a Suazana Novak user in Team members table + Then I click to "Normal user" in User role modal window + Then I should see "Normal user" in Role column of a Suazana Novak user in Team members table + + Scenario: User is removed + Given team BioSistemika Process settings page of a Karli Novak user + And I click to Action button of a Suazana Novak user in Team members table + Then I click to "Remove" in User role modal window + Then I should not see Suazana Novak user in Team members table + +Scenario: User left a team + Given team BioSistemika Process settings page of a Marija Novak user + And I click to Leave team button of BioSistemika Process team in Team table + Then I click to Leave button of "Leave team BioSistemika Process" modal window + Then I should see "Successfuly left team BioSistemika Process."