2019-09-03 21:14:37 +08:00
|
|
|
# feature/result. feature
|
|
|
|
Feature: Result
|
|
|
|
As a member of a project
|
2019-12-17 18:21:49 +08:00
|
|
|
want to add/ edit/ delete text results of a task
|
|
|
|
want to add/ edit/ delete table results of a task
|
|
|
|
want to add/ edit/ delete file results of a task
|
2019-09-03 21:14:37 +08:00
|
|
|
|
|
|
|
Background:
|
2019-12-17 18:21:49 +08:00
|
|
|
Given default screen size2
|
2019-09-03 21:14:37 +08:00
|
|
|
Given the "BioSistemika Process" team exists
|
|
|
|
Given the following users are registered
|
|
|
|
| name | email | password | password_confirmation |
|
|
|
|
| Karli Novak | nonadmin@myorg.com | mypassword1234 | mypassword1234 |
|
|
|
|
And "nonadmin@myorg.com" is in "BioSistemika Process" team as a "admin"
|
2020-12-22 04:35:09 +08:00
|
|
|
Given Templates project exists for the "BioSistemika Process" team
|
2019-09-03 21:14:37 +08:00
|
|
|
And "nonadmin@myorg.com" is signed in with "mypassword1234"
|
2020-05-06 15:13:24 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Unsuccessful add Text result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2020-08-07 18:17:27 +08:00
|
|
|
And WAIT
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "can't be blank"
|
2020-05-06 15:13:24 +08:00
|
|
|
And I click "Cancel" button
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful add text result with Text name
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "LJ ZOO" in "#result_name" field
|
|
|
|
And I fill in "Živali pa so se odpravile dalje po svetu." in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "LJ ZOO"
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful add Text result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "Vse to pa zaradi botra petelina, bog mu daj zdravje!" in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "Vse to pa zaradi botra petelina, bog mu daj zdravje!"
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful edit Text task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "LJ ZOO" in "#result_name" field
|
|
|
|
And I fill in "Živali pa so se odpravile dalje po svetu." in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-pencil-alt" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "ZOO" in "#result_name" field
|
|
|
|
And I fill in "Vse to pa zaradi botra petelina!" in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Save" button
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "Vse to pa zaradi botra petelina!"
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful add comment to a Text task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "LJ ZOO" in "#result_name" field
|
|
|
|
And I fill in "Živali pa so se odpravile dalje po svetu." in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
|
|
|
Then I should see "I was on Triglav one summer."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2020-07-06 20:52:42 +08:00
|
|
|
@wip
|
2020-07-02 20:48:33 +08:00
|
|
|
Scenario: Unsuccessful add comment to a Text task result BUG!!!!!
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "LJ ZOO" in "#result_name" field
|
|
|
|
And I fill in "Živali pa so se odpravile dalje po svetu." in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "" in "message" textarea field
|
|
|
|
And confirm with ENTER key to "#message"
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "can't be blank"
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful edit comment to a Text task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "LJ ZOO" in "#result_name" field
|
|
|
|
And I fill in "Živali pa so se odpravile dalje po svetu." in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click element with css ".comment-container"
|
2020-05-06 15:13:24 +08:00
|
|
|
And I change comment "I was on Triglav one summer." with "I was on Triglav one summer and I do not have plans to go once more." of "#message"
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-save" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "I was on Triglav one summer and I do not have plans to go once more."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Unsuccessful edit comment to a Text task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "LJ ZOO" in "#result_name" field
|
|
|
|
And I fill in "Živali pa so se odpravile dalje po svetu." in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click element with css ".comment-container"
|
2020-05-06 15:13:24 +08:00
|
|
|
And I change comment "I was on Triglav one summer." with "I was on Triglav one summer and I do not have plans to go once more." of "#message"
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-times" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "I was on Triglav one summer."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
|
|
|
Scenario: Unsuccessful delete comment to a Text task resultGiven I am on Task results page
|
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "LJ ZOO" in "#result_name" field
|
|
|
|
And I fill in "Živali pa so se odpravile dalje po svetu." in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
|
|
|
And I hover over comment
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-trash" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to Cancel on confirm dialog
|
|
|
|
Then I should see "I was on Triglav one summer."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful delete comment to a Text task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "LJ ZOO" in "#result_name" field
|
|
|
|
And I fill in "Živali pa so se odpravile dalje po svetu." in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
|
|
|
And I hover over comment
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-trash" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
|
|
|
And WAIT
|
|
|
|
And I should not see "I was on Triglav one summer."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful archive text result with Text name
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "LJ ZOO" in "#result_name" field
|
|
|
|
And I fill in "Živali pa so se odpravile dalje po svetu." in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-briefcase" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
|
|
|
Then I should see "Successfully archived text result in task Experiment design" flash message
|
|
|
|
|
|
|
|
@wip
|
|
|
|
Scenario: Unsuccessful add Table result ##########this one doesnt work
|
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Table" within dropdown menu
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "can't be blank"
|
2020-05-06 15:13:24 +08:00
|
|
|
And I click "Cancel" button
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful add table result with Table name
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Table" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "ZOO" in "#result_name" field
|
|
|
|
And I click on table cell one
|
2020-05-06 15:13:24 +08:00
|
|
|
And I input "Živali pa so se odpravile dalje po svetu." in cell
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "Živali pa so se odpravile dalje po svetu."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful add Table result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Table" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click on table cell one
|
|
|
|
And I input "Vse to pa zaradi botra petelina, bog mu daj zdravje!" in cell
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "Vse to pa zaradi botra petelina, bog mu daj zdravje!"
|
|
|
|
|
2020-05-06 15:13:24 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful edit Table task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Table" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "ZOO" in "#result_name" field
|
|
|
|
And I click on table cell one
|
2020-05-06 15:13:24 +08:00
|
|
|
And I input "Živali pa so se odpravile dalje po svetu." in cell
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-pencil-alt" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "LJ ZOO" in "#result_name" field
|
|
|
|
And I click on table cell one
|
2020-05-06 15:13:24 +08:00
|
|
|
And I input "Vse to pa zaradi botra petelina, bog mu daj zdravje!" in cell
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Save" button
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "Vse to pa zaradi botra petelina, bog mu daj zdravje!"
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful add comment to a Table task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Table" within dropdown menu
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
|
|
|
Then I should see "I was on Triglav one summer."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful edit comment to a Table task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Table" within dropdown menu
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click element with css ".comment-container"
|
|
|
|
And I click element with css ".comment-container"
|
2020-05-06 15:13:24 +08:00
|
|
|
And I change comment "I was on Triglav one summer." with "I was on Triglav one summer and I do not have plans to go once more." of "#message"
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-save" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "I was on Triglav one summer and I do not have plans to go once more."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Unsuccessful edit comment to a Table task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Table" within dropdown menu
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click element with css ".comment-container"
|
2020-05-06 15:13:24 +08:00
|
|
|
And I change comment "I was on Triglav one summer." with "I was on Triglav one summer and I do not have plans to go once more." of "#message"
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-times" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "I was on Triglav one summer."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Unsuccessful delete comment to a Table task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Table" within dropdown menu
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
|
|
|
And I hover over comment
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-trash" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to Cancel on confirm dialog
|
|
|
|
Then I should see "I was on Triglav one summer."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful delete comment to a Table task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Table" within dropdown menu
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
|
|
|
And I hover over comment
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-trash" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
|
|
|
Then I should not see "I was on Triglav one summer."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful archive Table result with Table name
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Table" within dropdown menu
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-briefcase" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
|
|
|
Then I should see "Successfully archived table result in task Experiment design" flash message
|
|
|
|
|
|
|
|
@wip
|
|
|
|
Scenario: Unsuccessful add File result #doesnt work
|
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "File" within dropdown menu
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see File "can't be blank"
|
2020-05-06 15:13:24 +08:00
|
|
|
And I click "Cancel" button
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2020-05-06 15:13:24 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful add File result with File name
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "File" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I attach file "Moon.png" to the drag-n-drop field
|
2020-05-06 15:13:24 +08:00
|
|
|
And I fill in "MED" in "div.form-group:nth-child(1) > input:nth-child(2)" field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2020-05-06 15:13:24 +08:00
|
|
|
And WAIT
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "MED"
|
2019-09-03 21:14:37 +08:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: Successful add File result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "File" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I attach file "Moon.png" to the drag-n-drop field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
|
|
|
Then I should see "Moon"
|
|
|
|
|
2020-07-06 20:52:42 +08:00
|
|
|
@wip
|
2020-07-02 20:48:33 +08:00
|
|
|
Scenario: Successful edit File result with File name
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "File" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I attach file "Moon.png" to the drag-n-drop field
|
2020-05-06 15:13:24 +08:00
|
|
|
And I fill in "MED" in "div.form-group:nth-child(1) > input:nth-child(2)" field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-pencil-alt" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "STAR ZOO" in "#result_name" field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Save" button
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "STAR ZOO"
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful add comment to a File task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "File" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I attach file "Moon.png" to the drag-n-drop field
|
2020-05-06 15:13:24 +08:00
|
|
|
And I fill in "MED" in "div.form-group:nth-child(1) > input:nth-child(2)" field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
|
|
|
Then I should see "I was on Triglav one summer."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful edit comment to a File task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "File" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I attach file "Moon.png" to the drag-n-drop field
|
2020-05-06 15:13:24 +08:00
|
|
|
And I fill in "MED" in "div.form-group:nth-child(1) > input:nth-child(2)" field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click element with css ".comment-container"
|
2020-05-06 15:13:24 +08:00
|
|
|
And I change comment "I was on Triglav one summer." with "I was on Triglav one summer and I do not have plans to go once more." of "#message"
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-save" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "I was on Triglav one summer and I do not have plans to go once more."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Unsuccessful edit comment to a File task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "File" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I attach file "Moon.png" to the drag-n-drop field
|
2020-05-06 15:13:24 +08:00
|
|
|
And I fill in "MED" in "div.form-group:nth-child(1) > input:nth-child(2)" field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click element with css ".comment-container"
|
2020-05-06 15:13:24 +08:00
|
|
|
And I change comment "I was on Triglav one summer." with "I was on Triglav one summer and I do not have plans to go once more." of "#message"
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-times" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I should see "I was on Triglav one summer."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Unsuccessful delete comment to a File task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "File" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I attach file "Moon.png" to the drag-n-drop field
|
2020-05-06 15:13:24 +08:00
|
|
|
And I fill in "MED" in "div.form-group:nth-child(1) > input:nth-child(2)" field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
|
|
|
And I hover over comment
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-trash" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to Cancel on confirm dialog
|
|
|
|
Then I should see "I was on Triglav one summer."
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful delete comment to a File task result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "File" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I attach file "Moon.png" to the drag-n-drop field
|
2020-05-06 15:13:24 +08:00
|
|
|
And I fill in "MED" in "div.form-group:nth-child(1) > input:nth-child(2)" field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "I was on Triglav one summer." in "message" textarea field
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-paper-plane" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And WAIT
|
|
|
|
And I hover over comment
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-trash" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
Then I click to OK on confirm dialog
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Successful archive File result with File name
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "File" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I attach file "Moon.png" to the drag-n-drop field
|
2020-05-06 15:13:24 +08:00
|
|
|
And I fill in "MED" in "div.form-group:nth-child(1) > input:nth-child(2)" field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-briefcase" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
|
|
|
Then I should see "Successfully archived file result in task Experiment design" flash message
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Download archived Text result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "LJ ZOO" in "#result_name" field
|
|
|
|
And I fill in "Živali pa so se odpravile dalje po svetu." in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-briefcase" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
2020-07-06 20:52:42 +08:00
|
|
|
And WAIT
|
2019-12-17 18:21:49 +08:00
|
|
|
And I am on Task archive page
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click button with id "dropdownMenu1"
|
2020-07-29 17:44:52 +08:00
|
|
|
Then I click on "Download" within dropdown menu
|
|
|
|
And I delete downloaded file "LJ ZOO.txt"
|
2019-12-17 18:21:49 +08:00
|
|
|
#no notification can be found
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Download archived Table result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Table" within dropdown menu
|
|
|
|
And I fill in "Test table" in "#result_name" field
|
|
|
|
And I click "Add" button
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-briefcase" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
2020-07-06 20:52:42 +08:00
|
|
|
And WAIT
|
2019-12-17 18:21:49 +08:00
|
|
|
And I am on Task archive page
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click button with id "dropdownMenu1"
|
2020-07-29 17:44:52 +08:00
|
|
|
Then I click on "Download" within dropdown menu
|
|
|
|
And I delete downloaded file "Test table.txt"
|
2019-12-17 18:21:49 +08:00
|
|
|
#no notification can be found
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Download archived File result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "File" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I attach file "Moon.png" to the drag-n-drop field
|
2020-05-06 15:13:24 +08:00
|
|
|
And I fill in "MED" in "div.form-group:nth-child(1) > input:nth-child(2)" field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-briefcase" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
2020-07-06 20:52:42 +08:00
|
|
|
And WAIT
|
2019-12-17 18:21:49 +08:00
|
|
|
And I am on Task archive page
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click button with id "dropdownMenu1"
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click on "View" within dropdown menu
|
2020-05-07 03:10:49 +08:00
|
|
|
Then I click element with css ".file-download-link"
|
2020-07-29 17:44:52 +08:00
|
|
|
And I delete downloaded file "Moon.png"
|
2019-12-17 18:21:49 +08:00
|
|
|
#no notification can be found
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Delete archived Text result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Text" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I fill in "LJ ZOO" in "#result_name" field
|
|
|
|
And I fill in "Živali pa so se odpravile dalje po svetu." in "#result_text_attributes_textarea" rich text editor field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-briefcase" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
2020-07-06 20:52:42 +08:00
|
|
|
And WAIT
|
2019-12-17 18:21:49 +08:00
|
|
|
And I am on Task archive page
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click button with id "dropdownMenu1"
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click on "Delete" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
|
|
|
Then I should see "Sucessfully removed result LJ ZOO from task Experiment design." flash message
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Delete archived Table result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "Table" within dropdown menu
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-briefcase" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
2020-07-06 20:52:42 +08:00
|
|
|
And WAIT
|
2019-12-17 18:21:49 +08:00
|
|
|
And I am on Task archive page
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click button with id "dropdownMenu1"
|
2020-07-29 17:44:52 +08:00
|
|
|
Then I click on "Delete" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
|
|
|
Then I should see "Sucessfully removed result from task Experiment design." flash message
|
2019-09-03 21:14:37 +08:00
|
|
|
|
2019-12-17 18:21:49 +08:00
|
|
|
@javascript
|
2019-09-03 21:14:37 +08:00
|
|
|
Scenario: Delete archived File result
|
2019-12-17 18:21:49 +08:00
|
|
|
Given I am on Task results page
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click "Add new result" button
|
|
|
|
And I click on "File" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I attach file "Moon.png" to the drag-n-drop field
|
2020-05-06 15:13:24 +08:00
|
|
|
And I fill in "MED" in "div.form-group:nth-child(1) > input:nth-child(2)" field
|
2020-07-06 20:52:42 +08:00
|
|
|
And I click "Add" button
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click "fa-briefcase" icon
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
2020-07-06 20:52:42 +08:00
|
|
|
And WAIT
|
2019-12-17 18:21:49 +08:00
|
|
|
And I am on Task archive page
|
2020-05-07 03:10:49 +08:00
|
|
|
And I click button with id "dropdownMenu1"
|
2020-07-29 17:44:52 +08:00
|
|
|
And I click on "Delete" within dropdown menu
|
2019-12-17 18:21:49 +08:00
|
|
|
And I click to OK on confirm dialog
|
|
|
|
Then I should see "Sucessfully removed result MED from task Experiment design." flash message
|