Created
February 27, 2014 05:53
-
-
Save scytacki/9245099 to your computer and use it in GitHub Desktop.
rails portal cucumber output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scotts-mbp:rigse-master scytacki$ bin/cucumber features/ | |
Using the default profile... | |
WARNING: No DRb server is running. Running features locally: | |
Unable to load configuration from /Users/scytacki/Development/rigse-master/config/newrelic.yml | |
Overriding ActionMailer config and setting test mode | |
/Users/scytacki/.rvm/gems/ruby-1.9.3-p545/gems/uuidtools-2.1.2/lib/uuidtools.rb:486: Use RbConfig instead of obsolete and deprecated Config. | |
java version "1.6.0_65" | |
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) | |
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode) | |
Waiting for Solr to start..solr started | |
Feature: External Activities can support a REST publishing api | |
Background: # features/activity_runtime_api/publish.feature:2 | |
Given an external activity named "Fun Stuff" with the definition # features/step_definitions/activity_runtime_api_publish_steps.rb:29 | |
""" | |
{ | |
"type": "Activity", | |
"name": "Cool Activity", | |
"url": "http://activity.com/activity/1", | |
"launch_url": "http://activity.com/activity/1/sessions/", | |
"description": "This activity does fun stuff.", | |
"sections": [ | |
{ | |
"name": "Cool Activity Section 1", | |
"pages": [ | |
{ | |
"name": "Cool Activity Page 1", | |
"elements": [ | |
{ | |
"type": "open_response", | |
"id": "1234567", | |
"prompt": "Do you like this activity?" | |
}, | |
{ | |
"type": "multiple_choice", | |
"id": "456789", | |
"prompt": "What color is the sky?", | |
"allow_multiple_selection": false, | |
"choices": [ | |
{ | |
"id": "97", | |
"content": "red" | |
}, | |
{ | |
"id": "98", | |
"content": "blue", | |
"correct": true | |
}, | |
{ | |
"id": "99", | |
"content": "green" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
""" | |
And a modified version of the external activity named "Fun Stuff" with the definition # features/step_definitions/activity_runtime_api_publish_steps.rb:29 | |
""" | |
{ | |
"type": "Activity", | |
"name": "Cool Activity", | |
"url": "http://activity.com/activity/1", | |
"launch_url": "http://activity.com/activity/1/sessions/", | |
"sections": [ | |
{ | |
"name": "Cool Activity Section 1", | |
"pages": [ | |
{ | |
"name": "Cool Activity Page 1", | |
"elements": [ | |
{ | |
"type": "open_response", | |
"id": "1234568", | |
"prompt": "Why do you like/dislike this activity?" | |
}, | |
{ | |
"type": "multiple_choice", | |
"id": "456789", | |
"prompt": "What color is the sky?", | |
"allow_multiple_selection": false, | |
"choices": [ | |
{ | |
"id": "97", | |
"content": "red" | |
}, | |
{ | |
"id": "98", | |
"content": "blue", | |
"correct": true | |
}, | |
{ | |
"id": "99", | |
"content": "greenish-green" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
""" | |
And a sequence named "Many fun things" with the definition # features/step_definitions/activity_runtime_api_publish_steps.rb:33 | |
""" | |
{ | |
"type": "Sequence", | |
"name": "Many fun things", | |
"description": "Several activities together in a sequence", | |
"url": "http://activity.com/sequence/1", | |
"launch_url": "http://activity.com/sequence/1", | |
"activities": [ | |
{ | |
"type": "Activity", | |
"name": "Cool Activity", | |
"url": "http://activity.com/activity/1", | |
"launch_url": "http://activity.com/activity/1/sessions/", | |
"description": "This activity does fun stuff.", | |
"sections": [ | |
{ | |
"name": "Cool Activity Section 1", | |
"pages": [ | |
{ | |
"name": "Cool Activity Page 1", | |
"elements": [ | |
{ | |
"type": "open_response", | |
"id": "1234567", | |
"prompt": "Do you like this activity?" | |
}, | |
{ | |
"type": "multiple_choice", | |
"id": "456789", | |
"prompt": "What color is the sky?", | |
"allow_multiple_selection": false, | |
"choices": [ | |
{ | |
"id": "97", | |
"content": "red" | |
}, | |
{ | |
"id": "98", | |
"content": "blue", | |
"correct": true | |
}, | |
{ | |
"id": "99", | |
"content": "green" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "Activity", | |
"name": "Cooler Activity", | |
"url": "http://activity.com/activity/2", | |
"launch_url": "http://activity.com/activity/2/sessions/", | |
"description": "This activity does even more fun stuff.", | |
"sections": [ | |
{ | |
"name": "Cooler Activity Section 1", | |
"pages": [ | |
{ | |
"name": "Cooler Activity Page 1", | |
"elements": [ | |
{ | |
"type": "open_response", | |
"id": "1234568", | |
"prompt": "Do you hate this activity?" | |
}, | |
{ | |
"type": "multiple_choice", | |
"id": "456790", | |
"prompt": "What sound is the sky?", | |
"allow_multiple_selection": false, | |
"choices": [ | |
{ | |
"id": "100", | |
"content": "red" | |
}, | |
{ | |
"id": "101", | |
"content": "blue", | |
"correct": true | |
}, | |
{ | |
"id": "102", | |
"content": "green" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
""" | |
And a modified version of the sequence named "Many fun things" with the definition # features/step_definitions/activity_runtime_api_publish_steps.rb:33 | |
""" | |
{ | |
"type": "Sequence", | |
"name": "This has a different name", | |
"description": "All we did was change the name. And the description.", | |
"url": "http://activity.com/sequence/1", | |
"launch_url": "http://activity.com/sequence/1", | |
"activities": [ | |
{ | |
"type": "Activity", | |
"name": "Cool Activity", | |
"url": "http://activity.com/activity/1", | |
"launch_url": "http://activity.com/activity/1/sessions/", | |
"description": "This activity does fun stuff.", | |
"sections": [ | |
{ | |
"name": "Cool Activity Section 1", | |
"pages": [ | |
{ | |
"name": "Cool Activity Page 1", | |
"elements": [ | |
{ | |
"type": "open_response", | |
"id": "1234567", | |
"prompt": "Do you like this activity?" | |
}, | |
{ | |
"type": "multiple_choice", | |
"id": "456789", | |
"prompt": "What color is the sky?", | |
"allow_multiple_selection": false, | |
"choices": [ | |
{ | |
"id": "97", | |
"content": "red" | |
}, | |
{ | |
"id": "98", | |
"content": "blue", | |
"correct": true | |
}, | |
{ | |
"id": "99", | |
"content": "green" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "Activity", | |
"name": "Cooler Activity", | |
"url": "http://activity.com/activity/2", | |
"launch_url": "http://activity.com/activity/2/sessions/", | |
"description": "This activity does even more fun stuff.", | |
"sections": [ | |
{ | |
"name": "Cooler Activity Section 1", | |
"pages": [ | |
{ | |
"name": "Cooler Activity Page 1", | |
"elements": [ | |
{ | |
"type": "open_response", | |
"id": "1234568", | |
"prompt": "Do you hate this activity?" | |
}, | |
{ | |
"type": "multiple_choice", | |
"id": "456790", | |
"prompt": "What sound is the sky?", | |
"allow_multiple_selection": false, | |
"choices": [ | |
{ | |
"id": "100", | |
"content": "red" | |
}, | |
{ | |
"id": "101", | |
"content": "blue", | |
"correct": true | |
}, | |
{ | |
"id": "102", | |
"content": "green" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
""" | |
@mechanize | |
Scenario: External REST activity is published the first time # features/activity_runtime_api/publish.feature:304 | |
When the external runtime publishes the activity "Fun Stuff" # features/step_definitions/activity_runtime_api_publish_steps.rb:124 | |
Then the portal should respond with a "201" status and location # features/step_definitions/activity_runtime_api_publish_steps.rb:100 | |
And the portal should create an external activity with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| name | Cool Activity | | |
| url | http://activity.com/activity/1 | | |
| launch_url | http://activity.com/activity/1/sessions/ | | |
| description | This activity does fun stuff. | | |
And the external activity should have a template # features/step_definitions/activity_runtime_api_publish_steps.rb:107 | |
And the portal should create an activity with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| name | Cool Activity | | |
And the portal should create a section with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| name | Cool Activity Section 1 | | |
And the portal should create a page with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| name | Cool Activity Page 1 | | |
And the portal should create an open response with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| prompt | Do you like this activity? | | |
| external_id | 1234567 | | |
And the portal should create a multiple choice with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| prompt | What color is the sky? | | |
| allow_multiple_selection | false | | |
| external_id | 456789 | | |
| choices | [{"external_id": "97", "choice": "red"},{"external_id": "98", "choice": "blue", "is_correct": "true"},{"external_id": "99", "choice": "green"}] | | |
@mechanize | |
Scenario: External REST activity is published the second time # features/activity_runtime_api/publish.feature:329 | |
Given the external runtime published the activity "Fun Stuff" before # features/step_definitions/activity_runtime_api_publish_steps.rb:132 | |
When the external runtime publishes the activity "Fun Stuff" again # features/step_definitions/activity_runtime_api_publish_steps.rb:124 | |
Then the published activity "Fun Stuff" should be correctly modified by the API # features/activity_runtime_api/publish.feature:332 | |
@mechanize | |
Scenario: External REST sequence is published the first time # features/activity_runtime_api/publish.feature:335 | |
When the external runtime publishes the sequence "Many fun things" # features/step_definitions/activity_runtime_api_publish_steps.rb:124 | |
Then the portal should respond with a "201" status and location # features/step_definitions/activity_runtime_api_publish_steps.rb:100 | |
And the portal should create an external activity with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| name | Many fun things | | |
| url | http://activity.com/sequence/1 | | |
| launch_url | http://activity.com/sequence/1 | | |
| description | Several activities together in a sequence | | |
And the external activity should have a template # features/step_definitions/activity_runtime_api_publish_steps.rb:107 | |
And the portal should create an investigation with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| name | Many fun things | | |
And the portal should create an activity with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| name | Cooler Activity | | |
And the portal should create a section with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| name | Cooler Activity Section 1 | | |
And the portal should create a page with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| name | Cooler Activity Page 1 | | |
And the portal should create an open response with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| prompt | Do you hate this activity? | | |
| external_id | 1234568 | | |
And the portal should create a multiple choice with the following attributes: # features/step_definitions/activity_runtime_api_publish_steps.rb:37 | |
| prompt | What sound is the sky? | | |
| allow_multiple_selection | false | | |
| external_id | 456790 | | |
| choices | [{"external_id": "100", "choice": "red"},{"external_id": "101", "choice": "blue", "is_correct": "true"},{"external_id": "102", "choice": "green"}] | | |
@mechanize | |
Scenario: External REST sequence is published the second time # features/activity_runtime_api/publish.feature:362 | |
Given the external runtime published the sequence "Many fun things" before # features/step_definitions/activity_runtime_api_publish_steps.rb:132 | |
When the external runtime publishes the sequence "Many fun things" again # features/step_definitions/activity_runtime_api_publish_steps.rb:124 | |
Then the published activity "Many fun things" should be correctly modified by the API # features/activity_runtime_api/publish.feature:365 | |
Feature: External Activities can support a REST api | |
Background: # features/activity_runtime_api/running.feature:2 | |
Given the following external REST activity: # features/step_definitions/activity_runtime_api_steps.rb:1 | |
| name | Cool Thing | | |
| url | http://activities.com/activity/1 | | |
| launch_url | http://activities.com/activity/1/sessions/ | | |
And "activities.com/activity/1/sessions/" handles a GET with query: # features/step_definitions/activity_runtime_api_steps.rb:45 | |
| domain | http://www.example.com/ | | |
| externalId | 999 | | |
| returnUrl | http://www.example.com/dataservice/external_activity_data/888 | | |
And "activities.com/activity/1/sessions/" GET responds with # features/step_definitions/activity_runtime_api_steps.rb:58 | |
""" | |
HTTP/1.1 200 OK | |
Content-Type: text/plain | |
Super Cool Activity here. | |
""" | |
And "imageshack.com/images/1.png" GET responds with # features/step_definitions/activity_runtime_api_steps.rb:58 | |
""" | |
HTTP/1.1 200 OK | |
Content-Type: image/png | |
.PNG fake content here. | |
""" | |
@mechanize | |
Scenario: External REST activity is run the first time # features/activity_runtime_api/running.feature:27 | |
When a student first runs the external activity "Cool Thing" # features/step_definitions/activity_runtime_api_steps.rb:85 | |
Then the browser should send a GET to "activities.com/activity/1/sessions/" # features/step_definitions/activity_runtime_api_steps.rb:67 | |
@mechanize | |
Scenario: External REST activity is run the second time # features/activity_runtime_api/running.feature:32 | |
Given the student ran the external REST activity "Cool Thing" before # features/step_definitions/activity_runtime_api_steps.rb:89 | |
When the student runs the external activity "Cool Thing" again # features/step_definitions/activity_runtime_api_steps.rb:94 | |
Then the browser should send a GET to "activities.com/activity/1/sessions/" # features/step_definitions/activity_runtime_api_steps.rb:67 | |
@mechanize | |
Scenario: External REST activity sends data back to the portal # features/activity_runtime_api/running.feature:38 | |
Given the student ran the external REST activity "Cool Thing" before # features/step_definitions/activity_runtime_api_steps.rb:89 | |
When the browser returns the following data to the portal # features/step_definitions/activity_runtime_api_steps.rb:102 | |
""" | |
[ | |
{ "type": "open_response", | |
"question_id": "1234567", | |
"answer": "I like this activity" | |
}, | |
{ "type": "multiple_choice", | |
"question_id": "456789", | |
"answer_ids": ["98"], | |
"answer_texts": ["blue"] | |
}, | |
{ "type": "image_question", | |
"question_id": "1970", | |
"answer": "This is my image question answer", | |
"image_url": "imageshack.com/images/1.png" | |
} | |
] | |
""" | |
Then the portal should create an open response saveable with the answer "I like this activity" # features/step_definitions/activity_runtime_api_steps.rb:111 | |
And the portal should create an image question saveable with the answer "This is my image question answer" # features/step_definitions/activity_runtime_api_steps.rb:117 | |
And the portal should create a multiple choice saveable with the answer "blue" # features/step_definitions/activity_runtime_api_steps.rb:126 | |
And the student's progress bars should be updated # features/step_definitions/activity_runtime_api_steps.rb:134 | |
Feature: Admin can access various admin pages | |
In order to configure the portal | |
As an admin | |
I need to access various admin pages | |
Background: # features/admin_accesses_special_pages.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@enable_gses | |
Scenario: Admin access GSEs # features/admin_accesses_special_pages.feature:12 | |
When I login as an admin # features/step_definitions/global_steps.rb:67 | |
And I am on the home page # features/step_definitions/web_steps.rb:66 | |
And I follow "Admin" # features/step_definitions/web_steps.rb:88 | |
Then I should see "GSEs" # features/step_definitions/web_steps.rb:149 | |
@disable_gses | |
Scenario: Admin access GSEs # features/admin_accesses_special_pages.feature:19 | |
When I login as an admin # features/step_definitions/global_steps.rb:67 | |
And I am on the home page # features/step_definitions/web_steps.rb:66 | |
And I follow "Admin" # features/step_definitions/web_steps.rb:88 | |
Then I should not see "GSEs" # features/step_definitions/web_steps.rb:167 | |
Feature: Admin can add, edit and remove notices | |
As an admin | |
I should be able to add, edit and remove notices | |
In order to update my users with important updates or information | |
Background: # features/admin_can_add_edit_remove_notices.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And I create a notice "Notice for admin" for the roles "Admin" # features/step_definitions/admin_can_add_edit_remove_notices_steps.rb:2 | |
@javascript | |
Scenario: Admin can add a notice # features/admin_can_add_edit_remove_notices.feature:15 | |
When I create a notice "Notice for users" for the roles "Admin" # features/step_definitions/admin_can_add_edit_remove_notices_steps.rb:2 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Notice for users" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Admin can edit notices # features/admin_can_add_edit_remove_notices.feature:22 | |
When I follow "Edit" # features/step_definitions/web_steps.rb:88 | |
And I fill "Edited notice for users" in the tinyMCE editor with id "notice_html" # features/step_definitions/web_steps.rb:297 | |
And I press "Update Notice" # features/step_definitions/web_steps.rb:78 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Edited notice for users" # features/step_definitions/web_steps.rb:149 | |
@dialog @javascript | |
Scenario: Admin can remove notices # features/admin_can_add_edit_remove_notices.feature:32 | |
When I follow "Delete Notice" # features/step_definitions/web_steps.rb:88 | |
And accept the dialog # features/step_definitions/global_steps.rb:168 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should not see "Notice for admin" # features/step_definitions/web_steps.rb:167 | |
@javascript | |
Scenario: Admin cannot publish blank notices or without selecting any roles # features/admin_can_add_edit_remove_notices.feature:40 | |
When I create a notice " " for the roles "" # features/step_definitions/admin_can_add_edit_remove_notices_steps.rb:2 | |
Then I should see "Notice text is blank" # features/step_definitions/web_steps.rb:149 | |
And I should see "No role is selected" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Admin can cancel notice creation or editing # features/admin_can_add_edit_remove_notices.feature:47 | |
When I go to the admin create notice page # features/step_definitions/web_steps.rb:70 | |
And I follow "Cancel" # features/step_definitions/web_steps.rb:88 | |
Then I should be on "the site notices index page" # features/step_definitions/web_steps.rb:231 | |
When I follow "Edit" # features/step_definitions/web_steps.rb:88 | |
And I follow "Cancel" # features/step_definitions/web_steps.rb:88 | |
Then I should be on "the site notices index page" # features/step_definitions/web_steps.rb:231 | |
@javascript | |
Scenario: Anonymous users cannot create notice page # features/admin_can_add_edit_remove_notices.feature:57 | |
When I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
And I try to go to the admin create notice page # features/step_definitions/web_steps.rb:74 | |
Then I should be on "my home page" # features/step_definitions/web_steps.rb:231 | |
@dialog @javascript | |
Scenario: Admin is shown a message if there are no notices # features/admin_can_add_edit_remove_notices.feature:65 | |
When I follow "Delete Notice" # features/step_definitions/web_steps.rb:88 | |
And accept the dialog # features/step_definitions/global_steps.rb:168 | |
Then I should see "You have no notices." # features/step_definitions/web_steps.rb:149 | |
Feature: Admin configures project help page | |
In order to customize a project help page | |
As the site administrator | |
I want to configure project's settings | |
Background: # features/admin_configures_project_help_page.feature:7 | |
Given the most basic default project # features/step_definitions/default_project_and_jnlps_steps.rb:1 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
When I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
@javascript | |
Scenario: Admin can preview the help page if it has added HTML # features/admin_configures_project_help_page.feature:15 | |
When I fill in "admin_project[custom_help_page_html]" with "Creating Help Page" # features/step_definitions/web_steps.rb:92 | |
And I press "Preview Custom Help Page" # features/step_definitions/web_steps.rb:78 | |
And I wait 2 seconds # features/step_definitions/global_steps.rb:135 | |
Then the newly opened window should have content "Creating Help Page" # features/step_definitions/global_steps.rb:183 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: Admin can add an external URL for the help page # features/admin_configures_project_help_page.feature:23 | |
When I choose "Use external help URL" # features/step_definitions/web_steps.rb:129 | |
And I check "Mark this project as active:" # features/step_definitions/web_steps.rb:121 | |
And I fill in "admin_project[external_url]" with "www.google.com" # features/step_definitions/web_steps.rb:92 | |
And I save the project # features/step_definitions/admin_steps.rb:103 | |
And I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
And I should see "http://www.google.com" in the input box of external URL for help page on projects page # features/step_definitions/admin_steps.rb:98 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And I follow "Help" within the top navigation bar # features/step_definitions/web_steps.rb:35 | |
Then the newly opened window should have content "Google" # features/step_definitions/global_steps.rb:183 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
And I follow "Help" within the top navigation bar # features/step_definitions/web_steps.rb:35 | |
Then the newly opened window should have content "Google" # features/step_definitions/global_steps.rb:183 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: Admin can add custom HTML for the help page # features/admin_configures_project_help_page.feature:40 | |
When I choose "Use custom help page HTML" # features/step_definitions/web_steps.rb:129 | |
And I check "Mark this project as active:" # features/step_definitions/web_steps.rb:121 | |
And I fill in "admin_project[custom_help_page_html]" with "Creating Help Page" # features/step_definitions/web_steps.rb:92 | |
And I save the project # features/step_definitions/admin_steps.rb:103 | |
And I follow "Help" # features/step_definitions/web_steps.rb:88 | |
Then the newly opened window should have content "Creating Help Page" # features/step_definitions/global_steps.rb:183 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
And I follow "Help" # features/step_definitions/web_steps.rb:88 | |
Then the newly opened window should have content "Creating Help Page" # features/step_definitions/global_steps.rb:183 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: Admin can preview the help page if it is an external URL # features/admin_configures_project_help_page.feature:54 | |
When I fill in "admin_project[external_url]" with "www.google.com" # features/step_definitions/web_steps.rb:92 | |
And I press "Preview External Help URL" # features/step_definitions/web_steps.rb:78 | |
And I wait 2 seconds # features/step_definitions/global_steps.rb:135 | |
Then the newly opened window should have content "Google" # features/step_definitions/global_steps.rb:183 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: Admin should see errors on saving the project settings if text boxes are blank # features/admin_configures_project_help_page.feature:62 | |
When I fill in "admin_project[custom_help_page_html]" with "" # features/step_definitions/web_steps.rb:92 | |
And I choose "Use custom help page HTML" # features/step_definitions/web_steps.rb:129 | |
And I press "Save" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Custom HTML cannot be blank if selected as the help page." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
When am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
And I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
And I fill in "admin_project[external_url]" with "" # features/step_definitions/web_steps.rb:92 | |
And I choose "Use external help URL" # features/step_definitions/web_steps.rb:129 | |
And I press "Save" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Please enter a valid external help URL." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Admin should see errors on previewing the the help page if text boxes are blank # features/admin_configures_project_help_page.feature:75 | |
When I fill in "admin_project[custom_help_page_html]" with "" # features/step_definitions/web_steps.rb:92 | |
And I press "Preview Custom Help Page" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Please enter some custom help HTML to preview." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
When am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
And I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
And I fill in "admin_project[external_url]" with "" # features/step_definitions/web_steps.rb:92 | |
And I press "Preview External Help URL" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Please enter a valid external help URL." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Admin should be allowed to remove help page link # features/admin_configures_project_help_page.feature:86 | |
When I choose "No help link" # features/step_definitions/web_steps.rb:129 | |
And I save the project # features/step_definitions/admin_steps.rb:103 | |
Then I should see "No Help Page" # features/step_definitions/web_steps.rb:149 | |
And am on the Project Help Page # features/step_definitions/web_steps.rb:66 | |
Then I should see "There is no help available for this site." # features/step_definitions/web_steps.rb:149 | |
And I go to the search instructional materials page # features/step_definitions/web_steps.rb:70 | |
Then Help link should not appear in the top navigation bar # features/step_definitions/global_steps.rb:195 | |
Feature: Admin configures project settings | |
In order to customize a project | |
As the site administrator | |
I want to configure a project's settings | |
Scenario: Admin views project without setting up jnlps # features/admin_configures_project_settings.feature:7 | |
Given the most basic default project # features/step_definitions/default_project_and_jnlps_steps.rb:1 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
Then I should see the sites name # features/step_definitions/global_steps.rb:120 | |
@javascript | |
Scenario: Admin edits project without setting up jnlps # features/admin_configures_project_settings.feature:15 | |
Given the most basic default project # features/step_definitions/default_project_and_jnlps_steps.rb:1 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
When I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
Then I should see the button "Save" # features/step_definitions/global_steps.rb:151 | |
@javascript | |
Scenario: Admin edits project with jnlps # features/admin_configures_project_settings.feature:23 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
When I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
Then I should see the button "Save" # features/step_definitions/global_steps.rb:151 | |
@javascript | |
Scenario: Admin enables default class # features/admin_configures_project_settings.feature:38 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
Then I should see the sites name # features/step_definitions/global_steps.rb:120 | |
And I should see "Default Class: disabled" # features/step_definitions/web_steps.rb:149 | |
When I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Enable Default Class" # features/step_definitions/web_steps.rb:149 | |
When I check "Enable Default Class" # features/step_definitions/web_steps.rb:121 | |
And I save the project # features/step_definitions/admin_steps.rb:103 | |
Then I should see "Default Class: enabled" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Admin enables grade levels for classes # features/admin_configures_project_settings.feature:51 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the following teachers exist: # features/step_definitions/teacher_steps.rb:25 | |
| login | password | | |
| teacher | teacher | | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I am on the clazz create page # features/step_definitions/web_steps.rb:66 | |
Then I should not see "Grade Levels:" # features/step_definitions/web_steps.rb:167 | |
Given I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Grade Levels for Classes: disabled" # features/step_definitions/web_steps.rb:149 | |
When I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Enable Grade Levels for Classes" # features/step_definitions/web_steps.rb:149 | |
When I check "Enable Grade Levels for Classes" # features/step_definitions/web_steps.rb:121 | |
And I save the project # features/step_definitions/admin_steps.rb:103 | |
Then I should see "Grade Levels for Classes: enabled" # features/step_definitions/web_steps.rb:149 | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I am on the clazz create page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Grade Levels:" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Admin modifies css for otml # features/admin_configures_project_settings.feature:72 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
Then I should see the sites name # features/step_definitions/global_steps.rb:120 | |
When I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Custom stylesheet for OTML:" # features/step_definitions/web_steps.rb:149 | |
When I fill in "admin_project[custom_css]" with ".testing_css_class_here {position:relative; padding:5px;}" # features/step_definitions/web_steps.rb:92 | |
And I save the project # features/step_definitions/admin_steps.rb:103 | |
Then I should see ".testing_css_class_here" # features/step_definitions/web_steps.rb:149 | |
# OTLabbookButton useBitmap="true" | |
# OTLabbookBundle scaleDrawTools="false" | |
@javascript | |
Scenario: Admin configures bitmap snapshots # features/admin_configures_project_settings.feature:86 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
Then I should see the sites name # features/step_definitions/global_steps.rb:120 | |
When I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Use Bitmaps in Labbook Exclusively:" # features/step_definitions/web_steps.rb:149 | |
When I check "Use Bitmaps in Labbook Exclusively" # features/step_definitions/web_steps.rb:121 | |
And I save the project # features/step_definitions/admin_steps.rb:103 | |
Then I should see "Use Bitmaps in Labbook Exclusively: Yes" # features/step_definitions/web_steps.rb:149 | |
Scenario: Admin creates a new project # features/admin_configures_project_settings.feature:97 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
When I create a new project with the description "test project" # features/step_definitions/admin_steps.rb:73 | |
Then I should see "test project" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Admin should preview Help page from admin projects page # features/admin_configures_project_settings.feature:105 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
When I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
And I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
And I choose "Use custom help page HTML" # features/step_definitions/web_steps.rb:129 | |
And I fill in "admin_project[custom_help_page_html]" with "Creating Help Page" # features/step_definitions/web_steps.rb:92 | |
And I save the project # features/step_definitions/admin_steps.rb:103 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
And I press "Preview Custom Help Page" # features/step_definitions/web_steps.rb:78 | |
Then the newly opened window should have content "Creating Help Page" # features/step_definitions/global_steps.rb:183 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
When am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
And I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
And I choose "Use external help URL" # features/step_definitions/web_steps.rb:129 | |
And I fill in "admin_project[external_url]" with "www.google.com" # features/step_definitions/web_steps.rb:92 | |
And I save the project # features/step_definitions/admin_steps.rb:103 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
And I press "Preview External Help URL" # features/step_definitions/web_steps.rb:78 | |
Then the newly opened window should have content "google" # features/step_definitions/global_steps.rb:183 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: Admin edits the home page HTML # features/admin_configures_project_settings.feature:128 | |
Given the most basic default project # features/step_definitions/default_project_and_jnlps_steps.rb:1 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
When I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
And I fill in "admin_project[home_page_content]" with "Creating Home Page" # features/step_definitions/web_steps.rb:92 | |
And I save the project # features/step_definitions/admin_steps.rb:103 | |
And I log out # features/step_definitions/global_steps.rb:88 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Creating Home Page" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Admin can preview edited home page # features/admin_configures_project_settings.feature:140 | |
Given the most basic default project # features/step_definitions/default_project_and_jnlps_steps.rb:1 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
When I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
And I fill in "admin_project[home_page_content]" with "Creating Home Page" # features/step_definitions/web_steps.rb:92 | |
And I save the project # features/step_definitions/admin_steps.rb:103 | |
And I press "Preview Home Page" # features/step_definitions/web_steps.rb:78 | |
Then the newly opened window should have content "Creating Home Page" # features/step_definitions/global_steps.rb:183 | |
And the newly opened window should have content "Username" # features/step_definitions/global_steps.rb:183 | |
And the newly opened window should have content "Password" # features/step_definitions/global_steps.rb:183 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: Admin can preview the home page from admin projects page # features/admin_configures_project_settings.feature:154 | |
Given the most basic default project # features/step_definitions/default_project_and_jnlps_steps.rb:1 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
When I follow "edit project" # features/step_definitions/web_steps.rb:88 | |
And I fill in "admin_project[home_page_content]" with "Creating Home Page" # features/step_definitions/web_steps.rb:92 | |
And I save the project # features/step_definitions/admin_steps.rb:103 | |
And am on the admin projects page # features/step_definitions/web_steps.rb:66 | |
And I press "Preview Home Page" # features/step_definitions/web_steps.rb:78 | |
Then the newly opened window should have content "Creating Home Page" # features/step_definitions/global_steps.rb:183 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
Feature: The Project administrator disables certain vendor interfaces | |
As a Investigations project admin | |
I want modify the list of supported vendor interfaces | |
So that I can provide a smaller list of well tested interfaces | |
Background: # features/admin_configures_vendor_interfaces.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: The project administrator removes some probe interfaces # features/admin_configures_vendor_interfaces.feature:11 | |
Given the following users exist: # features/step_definitions/global_steps.rb:45 | |
| login | password | roles | | |
| student_login | student_password | member | | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And the following vendor interfaces exist: # features/step_definitions/admin_configures_interfaces_steps.rb:20 | |
| name | description | | |
| pasco usb | a pasco usb interface | | |
| vernier usb | a vernier usb interface | | |
| radios hack RS232 | old school interface | | |
| Texas Instruments | good old TI interface | | |
| pasco bluetooth | pasco in the house | | |
And the current project is using the following interfaces: # features/step_definitions/admin_configures_interfaces_steps.rb:2 | |
| name | | |
| pasco usb | | |
| vernier usb | | |
| radios hack RS232 | | |
| Texas Instruments | | |
| pasco bluetooth | | |
When I go to the current project edit page # features/step_definitions/web_steps.rb:70 | |
Then I should see "Default Project" # features/step_definitions/web_steps.rb:149 | |
And I should see "Vendor Interfaces" # features/step_definitions/web_steps.rb:149 | |
Then I should see the following form checkboxes: # features/step_definitions/admin_configures_interfaces_steps.rb:27 | |
| name | checked | | |
| pasco usb | true | | |
| vernier usb | true | | |
| radios hack RS232 | true | | |
| Texas Instruments | true | | |
| pasco bluetooth | true | | |
When I check in the following: # features/step_definitions/admin_configures_interfaces_steps.rb:39 | |
| name | checked | | |
| pasco usb | true | | |
| vernier usb | true | | |
| radios hack RS232 | false | | |
| Texas Instruments | false | | |
| pasco bluetooth | true | | |
And I press "Save" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Project was successfully updated" # features/step_definitions/web_steps.rb:149 | |
When I go to the current project edit page # features/step_definitions/web_steps.rb:70 | |
Then I should see the following form checkboxes: # features/step_definitions/admin_configures_interfaces_steps.rb:27 | |
| name | checked | | |
| pasco usb | true | | |
| vernier usb | true | | |
| radios hack RS232 | false | | |
| Texas Instruments | false | | |
| pasco bluetooth | true | | |
Scenario: The student user can only select configured interfaces # features/admin_configures_vendor_interfaces.feature:58 | |
Given the following users exist: # features/step_definitions/global_steps.rb:45 | |
| login | password | roles | | |
| student_login | student_password | member | | |
And the following vendor interfaces exist: # features/step_definitions/admin_configures_interfaces_steps.rb:20 | |
| name | description | | |
| pasco usb | a pasco usb interface | | |
| vernier usb | a vernier usb interface | | |
| radios hack RS232 | old school interface | | |
| Texas Instruments | good old TI interface | | |
| pasco bluetooth | pasco in the house | | |
And the current project is using the following interfaces: # features/step_definitions/admin_configures_interfaces_steps.rb:2 | |
| name | | |
| pasco usb | | |
| vernier usb | | |
When I login with username: student_login # features/step_definitions/global_steps.rb:78 | |
When I follow "My Preferences" # features/step_definitions/web_steps.rb:88 | |
Then I should see "User Preferences" # features/step_definitions/web_steps.rb:149 | |
And I should see "Probeware Interface" # features/step_definitions/web_steps.rb:149 | |
Then I should have the following selection options: # features/step_definitions/admin_configures_interfaces_steps.rb:49 | |
| option | | |
| pasco usb | | |
| vernier usb | | |
And I should not see the following selection options: # features/step_definitions/admin_configures_interfaces_steps.rb:61 | |
| option | | |
| radios hack RS232 | | |
| Texas Instruments | | |
| pasco bluetooth | | |
Feature: Admin switches to a different user | |
In order to see the portal as other users do without knowing their passwords | |
As an admin | |
I want to switch to a different user | |
Background: # features/admin_switches.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: Admin switches to student # features/admin_switches.feature:12 | |
When I login as an admin # features/step_definitions/global_steps.rb:67 | |
And I switch to "Joe Switchuser" in the user list by searching "Switchuser" # features/step_definitions/admin_steps.rb:80 | |
Then I should see "Welcome Joe Switchuser" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Admin switches back to admin # features/admin_switches.feature:18 | |
When I login as an admin # features/step_definitions/global_steps.rb:67 | |
And I switch to "Joe Switchuser" in the user list by searching "Switchuser" # features/step_definitions/admin_steps.rb:80 | |
Then I should see "Welcome Joe Switchuser" # features/step_definitions/web_steps.rb:149 | |
And I follow "Switch Back" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Welcome joe user" # features/step_definitions/web_steps.rb:149 | |
Feature: Admin views default class | |
In order to setup site wide activities | |
As an admin | |
I want to view the default class | |
Scenario: Admin views default class # features/admin_views_default_class.feature:7 | |
Given the default class is created # features/step_definitions/portal_clazz_steps.rb:8 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
When I login as an admin # features/step_definitions/global_steps.rb:67 | |
And go to the class page for "Default Class" # features/step_definitions/web_steps.rb:70 | |
Then I should see "Default Class" # features/step_definitions/web_steps.rb:149 | |
Feature: Admin views districts | |
In order to know which districts have registered | |
As the site administrator | |
I want to view the districts | |
Background: # features/admin_views_districts.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
Scenario: admin see a list of districts # features/admin_views_districts.feature:12 | |
When I am on the districts page # features/step_definitions/web_steps.rb:66 | |
Then I should see the default district # features/step_definitions/default_project_and_jnlps_steps.rb:80 | |
And I should see "create District" # features/step_definitions/web_steps.rb:149 | |
Scenario: admin creates a new district # features/admin_views_districts.feature:17 | |
When I am on the districts page # features/step_definitions/web_steps.rb:66 | |
And I follow "create District" # features/step_definitions/web_steps.rb:88 | |
And I fill in "portal_district_name" with "Test District" # features/step_definitions/web_steps.rb:92 | |
And I select "WY" from "portal_district[state]" # features/step_definitions/web_steps.rb:117 | |
And press "Save" # features/step_definitions/web_steps.rb:78 | |
And I follow "Admin" # features/step_definitions/web_steps.rb:88 | |
And I follow "Districts" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Test District" # features/step_definitions/web_steps.rb:149 | |
Scenario: admin does not see the classes inside the district because doing that clobbers the server # features/admin_views_districts.feature:27 | |
Given there is an active class named "sample class" with a district # features/step_definitions/portal_clazz_steps.rb:14 | |
When I am on the districts page # features/step_definitions/web_steps.rb:66 | |
Then I should not see "sample class" # features/step_definitions/web_steps.rb:167 | |
And I should not see "active classes" # features/step_definitions/web_steps.rb:167 | |
Feature: An author adds multiple choice questions | |
As a Investigations author | |
I want to add a multiple choice questions to my investigations | |
So that I can understand what my students are learning. | |
Background: # features/author_adds_question.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: The author adds a multiple choice question to an investigation # features/author_adds_question.feature:11 | |
Given the following simple investigations exist: # features/step_definitions/investigations_steps.rb:29 | |
| name | description | user | | |
| testing fast cars | how fast can cars go? | author | | |
And I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
When I go to the first page of the "testing fast cars" investigation # features/step_definitions/web_steps.rb:70 | |
Then I should see "Page: testing fast cars" # features/step_definitions/web_steps.rb:149 | |
When I add a "Multiple Choice Question" to the page # features/step_definitions/authoring_steps.rb:70 | |
Then I should see "Why do you think ..." # features/step_definitions/web_steps.rb:149 | |
When I follow xpath "//a[@title='edit multiple choice question']" # features/step_definitions/authoring_steps.rb:6 | |
And I wait 1 second # features/step_definitions/global_steps.rb:135 | |
Then I should see "choices" # features/step_definitions/web_steps.rb:149 | |
And I should see "Enable Rationale" # features/step_definitions/web_steps.rb:149 | |
And I should see "Multiple Selection" # features/step_definitions/web_steps.rb:149 | |
And I should see "a" # features/step_definitions/web_steps.rb:149 | |
And I should see "b" # features/step_definitions/web_steps.rb:149 | |
And I should see "c" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: The author adds a multiple choice question to an investigation # features/author_adds_question.feature:32 | |
Given the following users exist: # features/step_definitions/global_steps.rb:45 | |
| login | password | roles | | |
| author | author | author | | |
Given the following simple investigations exist: # features/step_definitions/investigations_steps.rb:29 | |
| name | description | user | | |
| testing fast cars | how fast can cars go? | author | | |
And I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
When I go to the first page of the "testing fast cars" investigation # features/step_definitions/web_steps.rb:70 | |
Then I should see "Page: testing fast cars" # features/step_definitions/web_steps.rb:149 | |
When I add a "Multiple Choice Question" to the page # features/step_definitions/authoring_steps.rb:70 | |
Then I should see "Why do you think ..." # features/step_definitions/web_steps.rb:149 | |
When I follow xpath "//a[@title='edit multiple choice question']" # features/step_definitions/authoring_steps.rb:6 | |
And I wait 1 second # features/step_definitions/global_steps.rb:135 | |
Then I should see "choices" # features/step_definitions/web_steps.rb:149 | |
And I should see "Enable Rationale" # features/step_definitions/web_steps.rb:149 | |
And I should see "Multiple Selection" # features/step_definitions/web_steps.rb:149 | |
And I should see "a" # features/step_definitions/web_steps.rb:149 | |
And I should see "b" # features/step_definitions/web_steps.rb:149 | |
And I should see "c" # features/step_definitions/web_steps.rb:149 | |
When I follow "delete" within "span.delete_link" # features/step_definitions/web_steps.rb:35 | |
And I press "Save" # features/step_definitions/web_steps.rb:78 | |
Then I should not see "choices" # features/step_definitions/web_steps.rb:167 | |
And I go to the first page of the "testing fast cars" investigation # features/step_definitions/web_steps.rb:70 | |
Then I should see "Why do you think ..." # features/step_definitions/web_steps.rb:149 | |
And I should see "b" # features/step_definitions/web_steps.rb:149 | |
And I should see "c" # features/step_definitions/web_steps.rb:149 | |
But I should not see the xpath "//a[@value='a']" # features/step_definitions/global_steps.rb:139 | |
Feature: An copies and pastes embeddables | |
As a Investigations author | |
I want to copy and paste embeddables | |
So that I can create investigations more quickly | |
Background: # features/author_copies_and_pastes_embeddables.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@dialog @javascript | |
Scenario: The author copies and pastes an embeddable by clicking on the embeddable content # features/author_copies_and_pastes_embeddables.feature:12 | |
Given the following simple investigations exist: # features/step_definitions/investigations_steps.rb:29 | |
| name | description | user | | |
| testing fast cars | how fast can cars go? | author | | |
And I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
When I go to the first page of the "testing fast cars" investigation # features/step_definitions/web_steps.rb:70 | |
And I add a "Text" to the page # features/step_definitions/authoring_steps.rb:70 | |
Then I should see "content goes here ..." # features/step_definitions/web_steps.rb:149 | |
When I copy the embeddable "Text: content goes here ..." by clicking on the content # features/step_definitions/authoring_steps.rb:86 | |
Then I should see "paste Text: content goes here ..." # features/step_definitions/web_steps.rb:149 | |
When I paste the embeddable "Text: content goes here ..." # features/step_definitions/authoring_steps.rb:102 | |
And I wait 1 second # features/step_definitions/global_steps.rb:135 | |
Then I should see "Text: content goes here ..." 2 times # features/step_definitions/web_steps.rb:145 | |
@dialog @javascript | |
Scenario: The author copies and pastes an embeddable by clicking on the embeddable title # features/author_copies_and_pastes_embeddables.feature:29 | |
Given the following users exist: # features/step_definitions/global_steps.rb:45 | |
| login | password | roles | | |
| author | author | member, author | | |
Given the following simple investigations exist: # features/step_definitions/investigations_steps.rb:29 | |
| name | description | user | | |
| testing fast cars | how fast can cars go? | author | | |
And I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
When I go to the first page of the "testing fast cars" investigation # features/step_definitions/web_steps.rb:70 | |
And I add a "Text" to the page # features/step_definitions/authoring_steps.rb:70 | |
Then I should see "content goes here ..." # features/step_definitions/web_steps.rb:149 | |
When I copy the embeddable "Text: content goes here ..." by clicking on the title # features/step_definitions/authoring_steps.rb:86 | |
Then I should see "paste Text: content goes here ..." # features/step_definitions/web_steps.rb:149 | |
When I paste the embeddable "Text: content goes here ..." # features/step_definitions/authoring_steps.rb:102 | |
And I wait 1 second # features/step_definitions/global_steps.rb:135 | |
Then I should see "Text: content goes here ..." 2 times # features/step_definitions/web_steps.rb:145 | |
Feature: An author creates an investigation | |
As a Investigations author | |
I want to create an investigation | |
So that students can take it. | |
Background: # features/author_creates_investigation.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
Scenario: The author creates an investigation # features/author_creates_investigation.feature:10 | |
Given a mock gse # features/step_definitions/authoring_steps.rb:24 | |
And I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
When I go to the create investigation page # features/step_definitions/web_steps.rb:70 | |
Then I should see "Sequence: (new)" # features/step_definitions/web_steps.rb:149 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| investigation[name] | Test Investigation | | |
| investigation[description] | testing testing 1 2 3 | | |
And I save the investigation # features/step_definitions/authoring_steps.rb:17 | |
Then I should see "Sequence was successfully created." # features/step_definitions/web_steps.rb:149 | |
Feature: An author deletes parts of an investigation | |
As a Investigations author | |
I want to delete parts of my investigation | |
So that I can revise my investigation | |
Background: # features/author_deletes.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@dialog @javascript | |
Scenario: The author deletes a page from a section # features/author_deletes.feature:12 | |
Given the following simple investigations exist: # features/step_definitions/investigations_steps.rb:29 | |
| name | description | user | | |
| testing fast cars | how fast can cars go? | author | | |
And I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
And I show the first section of the "testing fast cars" investigation # features/step_definitions/authoring_steps.rb:11 | |
Then I should see "Page: testing fast cars" # features/step_definitions/web_steps.rb:149 | |
When I follow "delete" # features/step_definitions/web_steps.rb:88 | |
And accept the dialog # features/step_definitions/global_steps.rb:168 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should not see "Page: testing fast cars" # features/step_definitions/web_steps.rb:167 | |
@dialog @javascript | |
Scenario: The author deletes a element from a page # features/author_deletes.feature:27 | |
Given the following users exist: # features/step_definitions/global_steps.rb:45 | |
| login | password | roles | | |
| author | author | member, author | | |
And the author "author" created an investigation named "Test" with text and a open response question # features/step_definitions/investigations_steps.rb:44 | |
And I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
And I go to the first page of the "Test" investigation # features/step_definitions/web_steps.rb:70 | |
Then I should see "Text: " # features/step_definitions/web_steps.rb:149 | |
When I follow "delete text" # features/step_definitions/web_steps.rb:88 | |
And accept the dialog # features/step_definitions/global_steps.rb:168 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should not see "Text: " # features/step_definitions/web_steps.rb:167 | |
Feature: An author registers to use the portal | |
As a potential author | |
I want to register | |
In order to author content on the portal | |
Background: # features/author_registers.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And member registration is enabled # features/step_definitions/admin_steps.rb:7 | |
Scenario: Anonymous user signs up as an author # features/author_registers.feature:13 | |
Given I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
And I press "Sign up as a member" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Signup" # features/step_definitions/web_steps.rb:149 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Author | | |
| user_email | [email protected] | | |
| user_login | login | | |
| user_password | password | | |
| user_password_confirmation | password | | |
And I press "Sign up" # features/step_definitions/web_steps.rb:78 | |
Then I should see "A message with a confirmation link has been sent to your email address. Please open the link to activate your account." # features/step_definitions/web_steps.rb:149 | |
Unable to load configuration from /Users/scytacki/Development/rigse-master/config/newrelic.yml | |
And "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51 | |
When I open the email # features/step_definitions/email_steps.rb:73 | |
Then I should see "Please activate your new account" in the email subject # features/step_definitions/email_steps.rb:89 | |
When I click the first link in the email # features/step_definitions/email_steps.rb:119 | |
Then I should see "Your account was successfully confirmed. You are now signed in." # features/step_definitions/web_steps.rb:149 | |
And I should not see "Sorry, there was an error creating your account" # features/step_definitions/web_steps.rb:167 | |
Scenario: Anonymous user signs up as an author with form errors # features/author_registers.feature:35 | |
Given I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
And I press "Sign up as a member" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Signup" # features/step_definitions/web_steps.rb:149 | |
When I press "Sign up" # features/step_definitions/web_steps.rb:78 | |
Then I should see "9 errors prohibited this user from being saved" # features/step_definitions/web_steps.rb:149 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Author | | |
| user_email | [email protected] | | |
| user_login | login | | |
| user_password | password | | |
| user_password_confirmation | password | | |
And I press "Sign up" # features/step_definitions/web_steps.rb:78 | |
Then I should see "A message with a confirmation link has been sent to your email address. Please open the link to activate your account." # features/step_definitions/web_steps.rb:149 | |
And "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51 | |
When I open the email # features/step_definitions/email_steps.rb:73 | |
Then I should see "Please activate your new account" in the email subject # features/step_definitions/email_steps.rb:89 | |
When I click the first link in the email # features/step_definitions/email_steps.rb:119 | |
Then I should see "Your account was successfully confirmed. You are now signed in." # features/step_definitions/web_steps.rb:149 | |
And I should not see "Sorry, there was an error creating your account" # features/step_definitions/web_steps.rb:167 | |
Scenario: Anonymous user can't sign up as an author when member registration is disabled # features/author_registers.feature:59 | |
Given I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
And member registration is disabled # features/step_definitions/admin_steps.rb:7 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
Then I should not see the button "Sign up as a member" # features/step_definitions/global_steps.rb:156 | |
Feature: An author edits a data collector | |
As a Investigations author | |
I want to author data collectors in my investigations | |
So that I can provoke exploration by my students. | |
Background: # features/data_collector_authoring.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
@javascript | |
Scenario: The author edits a graph and sees the Y-axis label and units change as the probe type changes # features/data_collector_authoring.feature:13 | |
Given the following simple investigations exist: # features/step_definitions/investigations_steps.rb:29 | |
| name | description | user | | |
| testing fast cars | how fast can cars go? | author | | |
When I go to the first page of the "testing fast cars" investigation # features/step_definitions/web_steps.rb:70 | |
Then I should see "Page: testing fast cars" # features/step_definitions/web_steps.rb:149 | |
When I add a "Graph" to the page # features/step_definitions/authoring_steps.rb:70 | |
Then I should see "Data Collector" # features/step_definitions/web_steps.rb:149 | |
When I follow "edit graph" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Sensor Graph:" # features/step_definitions/web_steps.rb:149 | |
When I select "Pressure" from "embeddable_data_collector[probe_type_id]" # features/step_definitions/web_steps.rb:117 | |
Then the "embeddable_data_collector_y_axis_label" field should contain "Pressure" # features/step_definitions/web_steps.rb:185 | |
And the "embeddable_data_collector_y_axis_units" field should contain "kPa" # features/step_definitions/web_steps.rb:185 | |
@javascript | |
Scenario: The author edits a graph from list of graphs # features/data_collector_authoring.feature:30 | |
Given I created a data collector # features/step_definitions/authoring_steps.rb:66 | |
When I visit the route /embeddable/data_collectors # features/step_definitions/limit_access_to_routes_steps.rb:6 | |
And I follow "edit graph" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Probe type" # features/step_definitions/web_steps.rb:149 | |
Feature: A developer loads home page without initializing data in database | |
As a Developer | |
I might load the app before I've finished the setup | |
Because I don't read the documentation | |
Feature: A developer reads technical documentation about the software | |
As a Developer | |
I want to view formatted technical documentation included with this software | |
So that I can learn more about how this software works | |
And so I can see that documentation I write is formatted correctly before I commit it and share with other developers | |
Background: # features/developer_reads_documentation.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
Scenario: A developer looks at the readme # features/developer_reads_documentation.feature:10 | |
Given I am on /readme # features/step_definitions/web_steps.rb:66 | |
Then I should see "Technical Documentation" # features/step_definitions/web_steps.rb:149 | |
Scenario: A developer looks at a textile formatted document in the doc directory # features/developer_reads_documentation.feature:14 | |
Given I am on /doc/core-extensions.textile # features/step_definitions/web_steps.rb:66 | |
Then I should see "Extensions to Existing Ruby Classes" # features/step_definitions/web_steps.rb:149 | |
Scenario: A developer looks at a markdown formatted document in the doc directory # features/developer_reads_documentation.feature:18 | |
Given I am on /doc/updating_an_older_instance.md # features/step_definitions/web_steps.rb:66 | |
Then I should see "Updating an older portal instance to master" # features/step_definitions/web_steps.rb:149 | |
Scenario: A developer tries to read documentation that doesn't exist # features/developer_reads_documentation.feature:22 | |
Given I am on /doc/does_not_exist.md # features/step_definitions/web_steps.rb:66 | |
Then I should see "Technical document: does_not_exist.md not found" # features/step_definitions/web_steps.rb:149 | |
Scenario: A developer tries to read a file that is not documentation # features/developer_reads_documentation.feature:26 | |
Given I am on /doc/jamis.rb # features/step_definitions/web_steps.rb:66 | |
Then I should see "Document: jamis.rb not displayable" # features/step_definitions/web_steps.rb:149 | |
Feature: A developer can tag a scenario to enable a project setting | |
As a Developer | |
I want to test a scenario with a particular project setting | |
Because the scenario requires it | |
@enable_gses | |
Scenario: The use_gse setting should be enabled # features/developer_tags_scenario.feature:7 | |
Then APP_CONFIG[:use_gse] should be true # features/step_definitions/default_project_and_jnlps_steps.rb:76 | |
@disable_gses | |
Scenario: The use_gse setting should be enabled # features/developer_tags_scenario.feature:11 | |
Then APP_CONFIG[:use_gse] should be false # features/step_definitions/default_project_and_jnlps_steps.rb:76 | |
Feature: External Activities can be run as offerings | |
As a student | |
I want to run an External Activity that has been assigned to me | |
Background: # features/external_activites_can_be_run_as_offerings.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
Scenario: External Activity offerings are runnable # features/external_activites_can_be_run_as_offerings.feature:10 | |
When the external activity "My Activity" is assigned to the class "Class_with_no_assignment" # features/step_definitions/assignment_steps.rb:20 | |
And I am logged in with the username student # features/step_definitions/global_steps.rb:74 | |
When I go to my home page # features/step_definitions/web_steps.rb:70 | |
And I follow "Class_with_no_assignment" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
And run the external activity # features/step_definitions/student_steps.rb:66 | |
Then I should be on /mock_html/test-external-activity.html # features/step_definitions/web_steps.rb:231 | |
Feature: Investigations can be duplicated | |
As an author | |
I want to dupliate investigations | |
So that I can customize it. | |
Background: # features/investigations_can_be_duplicated.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: Duplicating investigations have an offering count of 0 # features/investigations_can_be_duplicated.feature:12 | |
Given I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
And I am on the investigations page for "NewestInv" # features/step_definitions/web_steps.rb:66 | |
When I duplicate the investigation # features/step_definitions/investigations_steps.rb:383 | |
Then the investigation "copy of NewestInv" should have been created # features/step_definitions/investigations_steps.rb:333 | |
And the investigation "copy of NewestInv" should have an offerings count of 0 # features/step_definitions/investigations_steps.rb:338 | |
@javascript | |
Scenario: Authors can duplicate an investigations # features/investigations_can_be_duplicated.feature:20 | |
Given I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
And I am on the investigations page for "NewestInv" # features/step_definitions/web_steps.rb:66 | |
When I duplicate the investigation # features/step_definitions/investigations_steps.rb:383 | |
Then the investigation "copy of NewestInv" should have been created # features/step_definitions/investigations_steps.rb:333 | |
@javascript | |
Scenario: Members who are not authors cannot duplicate an investigations # features/investigations_can_be_duplicated.feature:27 | |
Given I am logged in with the username member # features/step_definitions/global_steps.rb:74 | |
And I am on the investigations page for "NewestInv" # features/step_definitions/web_steps.rb:66 | |
Then I cannot duplicate the investigation # features/step_definitions/investigations_steps.rb:392 | |
@javascript | |
Scenario: Investigations with linked snapshot buttons should have their links point to the new cloned embeddable # features/investigations_can_be_duplicated.feature:33 | |
Given I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
And I am on the investigations page for "WithLinksInv" # features/step_definitions/web_steps.rb:66 | |
When I duplicate the investigation # features/step_definitions/investigations_steps.rb:383 | |
Then the investigation "copy of WithLinksInv" should have correct linked snapshot buttons # features/step_definitions/investigations_steps.rb:356 | |
@javascript | |
Scenario: Investigations with linked prediction graphs should have their links point to the new cloned embeddable # features/investigations_can_be_duplicated.feature:40 | |
Given I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
And I am on the investigations page for "WithLinksInv" # features/step_definitions/web_steps.rb:66 | |
When I duplicate the investigation # features/step_definitions/investigations_steps.rb:383 | |
Then the investigation "copy of WithLinksInv" should have correct linked prediction graphs # features/step_definitions/investigations_steps.rb:343 | |
Feature: Limit access to restricted routes | |
Only logged in users with appropriate roles should be able to see and change resources in the portal. | |
If a user without the appropriate role or permissions attempts to access a resource the system should redirect the user with an appropriate warning message. | |
In NO case should the system allow: | |
* access to private student data to unauthorized users | |
* unauthorized users to edit or delete resources they shouldn't | |
As a person concerned about security | |
I want ensure that I can not access restricted routes | |
So that we can protect our users data | |
Background: # features/limit_access_to_routes.feature:15 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
Scenario Outline: Anonymous user can't access dataservice routes # features/limit_access_to_routes.feature:19 | |
Given I am not logged in # features/step_definitions/limit_access_to_routes_steps.rb:1 | |
When I visit the route <route> # features/step_definitions/limit_access_to_routes_steps.rb:6 | |
Then I should be on my home page # features/step_definitions/web_steps.rb:231 | |
Examples: | |
| route | | |
| /dataservice/bundle_contents | | |
| /dataservice/bundle_loggers | | |
| /dataservice/console_contents | | |
| /dataservice/console_loggers | | |
| /dataservice/blobs | | |
Scenario Outline: Admin user can accesss dataservice routes # features/limit_access_to_routes.feature:32 | |
Given the following users exist: # features/step_definitions/global_steps.rb:45 | |
| login | password | roles | | |
| admin_login | admin_password | admin, member, author | | |
And I am logged in with the username admin_login # features/step_definitions/global_steps.rb:74 | |
When I visit the route <route> # features/step_definitions/limit_access_to_routes_steps.rb:6 | |
Then I should be on <route> # features/step_definitions/web_steps.rb:231 | |
Examples: | |
| route | | |
| /dataservice/bundle_contents | | |
| /dataservice/bundle_loggers | | |
| /dataservice/console_loggers | | |
| /dataservice/console_contents | | |
| /dataservice/blobs | | |
Scenario Outline: Anonymous user can't access portal listing routes: # features/limit_access_to_routes.feature:48 | |
Given I am not logged in # features/step_definitions/limit_access_to_routes_steps.rb:1 | |
When I visit the route <route> # features/step_definitions/limit_access_to_routes_steps.rb:6 | |
Then I should be on my home page # features/step_definitions/web_steps.rb:231 | |
Examples: | |
| route | | |
| /portal/classes | | |
| /portal/courses | | |
| /portal/school_memberships | | |
| /portal/schools | | |
| /portal/semesters | | |
| /portal/student_clazzes | | |
| /portal/students | | |
| /portal/subjects | | |
| /portal/teachers | | |
| /portal/districts | | |
| /portal/grades | | |
| /portal/learners | | |
| /portal/external_user_domains | | |
| /portal/external_users | | |
| /portal/grade_levels | | |
| /portal/nces06_districts | | |
| /portal/nces06_schools | | |
| /portal/offerings | | |
| /portal/teachers | | |
Scenario Outline: Admin user can accesss portal listing routes # features/limit_access_to_routes.feature:75 | |
Given the following users exist: # features/step_definitions/global_steps.rb:45 | |
| login | password | roles | | |
| admin_login | admin_password | admin, member, author | | |
Given I am logged in with the username admin_login # features/step_definitions/global_steps.rb:74 | |
When I visit the route <route> # features/step_definitions/limit_access_to_routes_steps.rb:6 | |
Then I should be on <route> # features/step_definitions/web_steps.rb:231 | |
Examples: | |
| route | | |
| /portal/classes | | |
| /portal/courses | | |
| /portal/school_memberships | | |
| /portal/schools | | |
| /portal/semesters | | |
| /portal/student_clazzes | | |
| /portal/students | | |
| /portal/subjects | | |
| /portal/teachers | | |
| /portal/districts | | |
| /portal/grades | | |
| /portal/learners | | |
| /portal/external_user_domains | | |
| /portal/external_users | | |
| /portal/grade_levels | | |
| /portal/nces06_districts | | |
| /portal/nces06_schools | | |
| /portal/offerings | | |
Scenario Outline: Anonymous user can't access user listing routes: # features/limit_access_to_routes.feature:104 | |
Given I am not logged in # features/step_definitions/limit_access_to_routes_steps.rb:1 | |
When I visit the route <route> # features/step_definitions/limit_access_to_routes_steps.rb:6 | |
Then I should be on my home page # features/step_definitions/web_steps.rb:231 | |
Examples: | |
| route | | |
| /users | | |
Scenario Outline: Admin user can accesss user listing routes # features/limit_access_to_routes.feature:113 | |
Given the following users exist: # features/step_definitions/global_steps.rb:45 | |
| login | password | roles | | |
| admin_login | admin_password | admin, member, author | | |
And I am logged in with the username admin_login # features/step_definitions/global_steps.rb:74 | |
When I visit the route <route> # features/step_definitions/limit_access_to_routes_steps.rb:6 | |
Then I should be on <route> # features/step_definitions/web_steps.rb:231 | |
Examples: | |
| route | | |
| /users | | |
Scenario Outline: Anonymous user can't access report learner routes: # features/limit_access_to_routes.feature:125 | |
Given I am not logged in # features/step_definitions/limit_access_to_routes_steps.rb:1 | |
When I visit the route <route> # features/step_definitions/limit_access_to_routes_steps.rb:6 | |
Then I should be on my home page # features/step_definitions/web_steps.rb:231 | |
Examples: | |
| route | | |
| /report/learner | | |
Scenario Outline: Admin user can accesss report learner routes # features/limit_access_to_routes.feature:134 | |
Given the following users exist: # features/step_definitions/global_steps.rb:45 | |
| login | password | roles | | |
| admin_login | admin_password | admin, member, author | | |
And I am logged in with the username admin_login # features/step_definitions/global_steps.rb:74 | |
When I visit the route <route> # features/step_definitions/limit_access_to_routes_steps.rb:6 | |
Then I should be on <route> # features/step_definitions/web_steps.rb:231 | |
Examples: | |
| route | | |
| /report/learner | | |
Scenario Outline: Researcher user can accesss report learner routes # features/limit_access_to_routes.feature:146 | |
Given the following users exist: # features/step_definitions/global_steps.rb:45 | |
| login | password | roles | | |
| researcher_login | researcher_password | member, researcher | | |
And I am logged in with the username researcher_login # features/step_definitions/global_steps.rb:74 | |
When I visit the route <route> # features/step_definitions/limit_access_to_routes_steps.rb:6 | |
Then I should be on <route> # features/step_definitions/web_steps.rb:231 | |
Examples: | |
| route | | |
| /report/learner | | |
Feature: A manager updates account information for another user | |
In order to correct mistakes a user has made | |
As a Manager | |
I want to update a users account information | |
Background: # features/manager_updates_account_information.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
Scenario Outline: Managers can change a users email address # features/manager_updates_account_information.feature:11 | |
When I am logged in with the username mymanager # features/step_definitions/global_steps.rb:74 | |
And I am on the user preferences page for the user "<username>" # features/step_definitions/web_steps.rb:66 | |
Then I should see "User Preferences" # features/step_definitions/web_steps.rb:149 | |
When I fill in "user_email" with "<changed_email>" # features/step_definitions/web_steps.rb:92 | |
And I press "Save" # features/step_definitions/web_steps.rb:78 | |
When I am on the user preferences page for the user "<username>" # features/step_definitions/web_steps.rb:66 | |
Then I should see "User Preferences" # features/step_definitions/web_steps.rb:149 | |
And the "user_email" field should contain "<changed_email>" # features/step_definitions/web_steps.rb:185 | |
Examples: | |
| username | changed_email | | |
| student | [email protected] | | |
| teacher | [email protected] | | |
Scenario Outline: Managers can change a users password # features/manager_updates_account_information.feature:26 | |
When I am logged in with the username mymanager # features/step_definitions/global_steps.rb:74 | |
And I am on the user list page # features/step_definitions/web_steps.rb:66 | |
And I click "Reset Password" for user: "<userlogin>" # features/step_definitions/password_steps.rb:1 | |
Then I should see "Password for <username> (<userlogin>)" # features/step_definitions/web_steps.rb:149 | |
When I fill in "user_password" with "<new_password>" # features/step_definitions/web_steps.rb:92 | |
And I fill in "user_password_confirmation" with "<new_password>" # features/step_definitions/web_steps.rb:92 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should be on user list # features/step_definitions/web_steps.rb:231 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
And I login with username: <userlogin> password: <new_password> # features/step_definitions/global_steps.rb:83 | |
Then I should see "Welcome" # features/step_definitions/web_steps.rb:149 | |
And I should see "My Preferences" # features/step_definitions/web_steps.rb:149 | |
Examples: | |
| username | userlogin | new_password | | |
| Alfred Robert | student | foobarbaz | | |
| John Nash | teacher | buzbixbez | | |
@javascript | |
Scenario: Managers can activate users # features/manager_updates_account_information.feature:46 | |
When there is an unactivated user named "justsignedup" # features/step_definitions/registration_steps.rb:5 | |
And I am logged in with the username mymanager # features/step_definitions/global_steps.rb:74 | |
And I am on the user list page # features/step_definitions/web_steps.rb:66 | |
And I should see "justsignedup" # features/step_definitions/web_steps.rb:149 | |
And I activate the user from user list by searching "justsignedup" # features/step_definitions/admin_steps.rb:90 | |
Then I should be on the user list page # features/step_definitions/web_steps.rb:231 | |
And I should see "Activation of user, joe ( justsignedup ) complete." # features/step_definitions/web_steps.rb:149 | |
Feature: Investigations can be reported on | |
So that researchers can report on activies run by students | |
As a researcher | |
I want to print several kinds of reports | |
So that our work can be validated | |
Which will support the funding of future projects | |
Background: # features/researcher_reports.feature:8 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And the following multiple choice questions exists: # features/step_definitions/authoring_steps.rb:46 | |
| prompt | answers | correct_answer | | |
| b_a | a,b,c,d | a | | |
| b_b | a,b,c,d | a | | |
| b_c | a,b,c,d | a | | |
| b_d | a,b,c,d | a | | |
| b_e | a,b,c,d | a | | |
And there is an image question with the prompt "image_q" # features/step_definitions/authoring_steps.rb:62 | |
And the following investigations with multiple choices exist: # features/step_definitions/investigations_steps.rb:61 | |
| investigation | activity | section | page | multiple_choices | image_questions | | |
| first investigation | act 1 | section 1 | fi page 1 | a, b | | | |
| first investigation | act 2 | section 2 | fi page 2 | c, d | | | |
| second investigation | act 3 | section 3 | si page 3 | b_a, b_b | image_q | | |
| second investigation | act 4 | section 4 | si page 4 | b_c, b_d | | | |
And the following assignments exist: # features/step_definitions/assignment_steps.rb:11 | |
| type | name | class | | |
| investigation | first investigation | My Class | | |
| investigation | second investigation | My Class | | |
| investigation | second investigation | Biology | | |
Scenario: A student answers all questions, and gets them all correct # features/researcher_reports.feature:36 | |
Given the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| student | My Class | first investigation | a | a | | |
| student | My Class | first investigation | b | a | | |
| student | My Class | first investigation | c | a | | |
| student | My Class | first investigation | d | a | | |
Then "student" should have 4 answers for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:117 | |
And "student" should have answered 100% of the questions for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:124 | |
And "student" should have 100% of the questions correctly for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:131 | |
Scenario: A student answers half of the questions, and gets them both right # features/researcher_reports.feature:47 | |
Given the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| student | My Class | first investigation | a | a | | |
| student | My Class | first investigation | b | a | | |
Then "student" should have 2 answers for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:117 | |
And "student" should have answered 50% of the questions for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:124 | |
And "student" should have 50% of the questions correctly for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:131 | |
Scenario: A student answers 3/4 of the questions, and gets them all wrong # features/researcher_reports.feature:56 | |
Given the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| student | My Class | first investigation | a | b | | |
| student | My Class | first investigation | b | b | | |
| student | My Class | first investigation | c | b | | |
Then "student" should have 3 answers for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:117 | |
And "student" should have answered 75% of the questions for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:124 | |
And "student" should have 0% of the questions correctly for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:131 | |
Scenario: A student answers none of the questions, and gets them all wrong # features/researcher_reports.feature:66 | |
Given the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
Then "student" should have 0 answers for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:117 | |
And "student" should have answered 0% of the questions for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:124 | |
And "student" should have 0% of the questions correctly for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:131 | |
Scenario: A student changes their answer from incorrect, to correct. # features/researcher_reports.feature:73 | |
Given the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| student | My Class | first investigation | a | b | | |
| student | My Class | first investigation | a | a | | |
| student | My Class | first investigation | c | b | | |
Then "student" should have 3 answers for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:117 | |
And "student" should have answered 75% of the questions for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:124 | |
And "student" should have 25% of the questions correctly for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:131 | |
Scenario: Confusions about an answered, seen, and unseen questions # features/researcher_reports.feature:83 | |
Given the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| student | My Class | first investigation | a | b | | |
| student | My Class | first investigation | b | b | | |
Then "student" should have answered 50% of the questions for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:124 | |
And "student" should have 0% of the questions correctly for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:131 | |
And "student" should have 2 answers for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:117 | |
Scenario: Comprehensive report tests for two investigations and two students # features/researcher_reports.feature:92 | |
Given PENDING yaml dumping on hudson and local machines differ. # features/step_definitions/global_steps.rb:164 | |
TODO (Cucumber::Pending) | |
./features/step_definitions/global_steps.rb:165:in `/^PENDING/' | |
features/researcher_reports.feature:93:in `Given PENDING yaml dumping on hudson and local machines differ.' | |
Given the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| student | My Class | first investigation | a | a | | |
| student | My Class | first investigation | b | a | | |
| student | My Class | first investigation | c | a | | |
| student | My Class | first investigation | d | a | | |
| dave | My Class | first investigation | b | a | | |
| dave | My Class | first investigation | c | b | | |
| dave | My Class | first investigation | d | b | | |
| student | My Class | second investigation | b_a | a | | |
| student | My Class | second investigation | b_b | a | | |
| student | My Class | second investigation | b_c | a | | |
| student | My Class | second investigation | b_d | a | | |
| student | My Class | second investigation | image_q | Y | | |
| dave | My Class | second investigation | b_a | a | | |
| dave | My Class | second investigation | b_b | a | | |
| dave | My Class | second investigation | b_c | b | | |
| dave | My Class | second investigation | b_d | b | | |
| dave | My Class | second investigation | image_q | Y | | |
| student | Biology | second investigation | b_a | a | | |
| student | Biology | second investigation | b_b | a | | |
| student | Biology | second investigation | b_c | a | | |
| student | Biology | second investigation | b_d | a | | |
| student | Biology | second investigation | image_q | Y | | |
| dave | Biology | second investigation | b_a | b | | |
| dave | Biology | second investigation | b_b | b | | |
Then "student" should have 4 answers for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:117 | |
And "student" should have answered 100% of the questions for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:124 | |
And "student" should have 100% of the questions correctly for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:131 | |
And "dave" should have 3 answers for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:117 | |
And "dave" should have answered 75% of the questions for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:124 | |
And "dave" should have 25% of the questions correctly for "first investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:131 | |
And "student" should have 5 answers for "second investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:117 | |
And "student" should have answered 100% of the questions for "second investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:124 | |
And "student" should have 100% of the questions correctly for "second investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:131 | |
And "dave" should have 5 answers for "second investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:117 | |
And "dave" should have answered 100% of the questions for "second investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:124 | |
And "dave" should have 50% of the questions correctly for "second investigation" in "My Class" # features/step_definitions/researcher_report_steps.rb:131 | |
And "student" should have 5 answers for "second investigation" in "Biology" # features/step_definitions/researcher_report_steps.rb:117 | |
And "student" should have answered 100% of the questions for "second investigation" in "Biology" # features/step_definitions/researcher_report_steps.rb:124 | |
And "student" should have 100% of the questions correctly for "second investigation" in "Biology" # features/step_definitions/researcher_report_steps.rb:131 | |
And "dave" should have 2 answers for "second investigation" in "Biology" # features/step_definitions/researcher_report_steps.rb:117 | |
And "dave" should have answered 40% of the questions for "second investigation" in "Biology" # features/step_definitions/researcher_report_steps.rb:124 | |
And "dave" should have 0% of the questions correctly for "second investigation" in "Biology" # features/step_definitions/researcher_report_steps.rb:131 | |
And a recording of a report for "first investigation" # features/step_definitions/researcher_report_steps.rb:166 | |
Then the report generated for "first investigation" should match recorded data # features/step_definitions/researcher_report_steps.rb:175 | |
And the report generated for "second investigation" should have (3) links to blobs # features/step_definitions/researcher_report_steps.rb:184 | |
And the usage report for "first investigation" should have (3) answers for "dave" # features/step_definitions/researcher_report_steps.rb:192 | |
# Failing, because question #e wasn't part of the investigation. (!) woah. | |
Scenario: a students answers appear in the correct order in the spreadsheet # features/researcher_reports.feature:159 | |
Scenario: Interacting with the researcher report UI # features/researcher_reports.feature:175 | |
Given the following researchers exist: # features/step_definitions/researcher_report_steps.rb:219 | |
| login | password | email | | |
| researcher | researcher | [email protected] | | |
And the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| student | My Class | first investigation | a | b | | |
| student | My Class | first investigation | a | a | | |
| student | My Class | first investigation | c | b | | |
And a mocked spreadsheet library # features/step_definitions/researcher_report_steps.rb:233 | |
And I am logged in with the username researcher # features/step_definitions/global_steps.rb:74 | |
And I am on the researcher reports page # features/step_definitions/web_steps.rb:66 | |
Then I should see "You have selected:" # features/step_definitions/web_steps.rb:149 | |
When I press "Apply Filters" # features/step_definitions/web_steps.rb:78 | |
Then I should see "You have selected:" # features/step_definitions/web_steps.rb:149 | |
When I press "Usage Report" # features/step_definitions/web_steps.rb:78 | |
Then I should receive an Excel spreadsheet # features/step_definitions/researcher_report_steps.rb:213 | |
When I am on the researcher reports page # features/step_definitions/web_steps.rb:66 | |
And I press "Details Report" # features/step_definitions/web_steps.rb:78 | |
Then I should receive an Excel spreadsheet # features/step_definitions/researcher_report_steps.rb:213 | |
Feature: Resource Page index pages can be printed | |
So I can take resource page data with me | |
As a teacher | |
I want to print the resource page index page | |
Background: # features/resource_page_index_pages_can_be_printed.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
Scenario: Teacher prints the listing of all resource pages # features/resource_page_index_pages_can_be_printed.feature:11 | |
When I am on the resource pages page # features/step_definitions/web_steps.rb:66 | |
Then I should see "NewestResource" # features/step_definitions/web_steps.rb:149 | |
And I should see "MediumResource" # features/step_definitions/web_steps.rb:149 | |
And I should see "OldestResource" # features/step_definitions/web_steps.rb:149 | |
And I should see "printable view" # features/step_definitions/web_steps.rb:149 | |
And "printable-view" should have href like "printable_index" # features/step_definitions/resource_page_steps.rb:69 | |
And the link to "printable-view" should have a target "_blank" # features/step_definitions/resource_page_steps.rb:74 | |
When I am on the resource pages printable index page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Resource Pages" # features/step_definitions/web_steps.rb:149 | |
And I should see "Usage Count" # features/step_definitions/web_steps.rb:149 | |
And I should see "NewestResource" # features/step_definitions/web_steps.rb:149 | |
And I should see "MediumResource" # features/step_definitions/web_steps.rb:149 | |
And I should see "OldestResource" # features/step_definitions/web_steps.rb:149 | |
Scenario: Teacher prints the listing of a subset of resource page # features/resource_page_index_pages_can_be_printed.feature:26 | |
When I try to go to the resource pages like "New" page # features/step_definitions/web_steps.rb:74 | |
Then I should see "NewestResource" # features/step_definitions/web_steps.rb:149 | |
And I should not see "MediumResource" # features/step_definitions/web_steps.rb:167 | |
And I should not see "OldestResource" # features/step_definitions/web_steps.rb:167 | |
And I should see "printable view" # features/step_definitions/web_steps.rb:149 | |
And "printable-view" should have href like "printable_index" with params "name=New" # features/step_definitions/resource_page_steps.rb:79 | |
And the link to "printable-view" should have a target "_blank" # features/step_definitions/resource_page_steps.rb:74 | |
When I am on the resource pages printable index page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Resource Pages" # features/step_definitions/web_steps.rb:149 | |
And I should see "Usage Count" # features/step_definitions/web_steps.rb:149 | |
And I should see "NewestResource" # features/step_definitions/web_steps.rb:149 | |
And I should not see "MediumResource" # features/step_definitions/web_steps.rb:167 | |
And I should not see "OldestResource" # features/step_definitions/web_steps.rb:167 | |
Feature: Resource Pages can be sorted | |
So I can find a resource page more efficiently | |
As a teacher | |
I want to sort the resource pages list | |
Background: # features/resource_pages_can_be_sorted.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
@javascript | |
Scenario: The resource pages list can be sorted by name # features/resource_pages_can_be_sorted.feature:12 | |
When I sort resource pages by "name ASC" # features/step_definitions/resource_page_steps.rb:19 | |
Then "Medium" should appear before "Newest" # features/step_definitions/global_steps.rb:109 | |
And "Newest" should appear before "Oldest" # features/step_definitions/global_steps.rb:109 | |
@javascript | |
Scenario: The resource pages list can be sorted by date created # features/resource_pages_can_be_sorted.feature:18 | |
When I sort resource pages by "created_at DESC" # features/step_definitions/resource_page_steps.rb:19 | |
Then "Newest" should appear before "Medium" # features/step_definitions/global_steps.rb:109 | |
And "Medium" should appear before "Oldest" # features/step_definitions/global_steps.rb:109 | |
@javascript | |
Scenario: The resource pages list can be sorted by offerings count # features/resource_pages_can_be_sorted.feature:24 | |
When I sort resource pages by "offerings_count DESC" # features/step_definitions/resource_page_steps.rb:19 | |
Then "Oldest" should appear before "Medium" # features/step_definitions/global_steps.rb:109 | |
And "Medium" should appear before "Newest" # features/step_definitions/global_steps.rb:109 | |
Feature: Resource Pages show the offerings count | |
So I can see how many times a resource page has been assigned | |
As a teacher | |
I want to see the offerings count | |
Background: # features/resource_pages_show_offerings_count.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
@javascript | |
Scenario: The resource pages list can show the offerings count # features/resource_pages_show_offerings_count.feature:12 | |
When I show offerings count on the resource pages page # features/step_definitions/resource_page_steps.rb:23 | |
Then I should see "assigned 6 times" # features/step_definitions/web_steps.rb:149 | |
And I should see "assigned 11 times" # features/step_definitions/web_steps.rb:149 | |
And I should see "assigned 21 times" # features/step_definitions/web_steps.rb:149 | |
Feature: Rites Teachers see their classes and students | |
Rinet teachers that have been imported into the RITES portal should be able to view | |
Their classes, and their class students. However these teachers should not be able to edit | |
their imported classes. (because it comes from SIS) | |
As a Rinet Teacher with imported classes | |
I want to see my classes and students | |
So that I can assign investigations to them | |
Background: # features/rinet_teacher_views_classes.feature:11 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
Feature: Student can not see deactivated offerings | |
In order to only work on active offerings | |
As a student | |
I do not want to see deactivated offerings | |
Background: # features/student_can_not_see_deactivated_offerings.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And the student "monty" belongs to class "class_with_no_students" # features/step_definitions/student_steps.rb:28 | |
And the resource page "NewestResource" is assigned to the class "class_with_no_students" # features/step_definitions/assignment_steps.rb:20 | |
Scenario: Student should see activated offerings # features/student_can_not_see_deactivated_offerings.feature:12 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
And I login with username: monty # features/step_definitions/global_steps.rb:78 | |
Then I should see "Plant reproduction" in the content # features/step_definitions/web_steps.rb:42 | |
And I should see "NewestResource" in the content # features/step_definitions/web_steps.rb:42 | |
Scenario: Student should not see deactivated offerings # features/student_can_not_see_deactivated_offerings.feature:18 | |
When I am on the class page for "class_with_no_students" # features/step_definitions/web_steps.rb:66 | |
And I follow "Deactivate" on the investigation "Plant reproduction" from the class "class_with_no_students" # features/step_definitions/investigations_steps.rb:177 | |
And I follow "Deactivate" on the resource page "NewestResource" from the class "class_with_no_students" # features/step_definitions/investigations_steps.rb:177 | |
And I log out # features/step_definitions/global_steps.rb:88 | |
And I login with username: monty # features/step_definitions/global_steps.rb:78 | |
Then I should be on the homepage # features/step_definitions/web_steps.rb:231 | |
And I should not see "run Plant reproduction" in the content # features/step_definitions/web_steps.rb:42 | |
And I should not see "View NewestResource" in the content # features/step_definitions/web_steps.rb:42 | |
And I should see "No offerings available." in the content # features/step_definitions/web_steps.rb:42 | |
When I am on the class page for "class_with_no_students" # features/step_definitions/web_steps.rb:66 | |
And I should not see "run Plant reproduction" in the content # features/step_definitions/web_steps.rb:42 | |
And I should see "No offerings available." in the content # features/step_definitions/web_steps.rb:42 | |
And I should not see "View NewestResource" in the content # features/step_definitions/web_steps.rb:42 | |
Feature: Student joins another class | |
In order to be part of a class | |
As a student | |
I want to join the class after I have already registered | |
Background: # features/student_joins_another_class.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: Student joins another class # features/student_joins_another_class.feature:12 | |
And the class "My Class" has the class word "word" # features/step_definitions/portal_clazz_steps.rb:1 | |
And the student "student" belongs to class "Class_with_no_students" # features/step_definitions/student_steps.rb:28 | |
And I am logged in with the username student # features/step_definitions/global_steps.rb:74 | |
And I am on the home page # features/step_definitions/web_steps.rb:66 | |
And I fill in "clazz_class_word" with "word" # features/step_definitions/web_steps.rb:92 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
And I wait 1 second # features/step_definitions/global_steps.rb:135 | |
Then I should see "John Nash" # features/step_definitions/web_steps.rb:149 | |
When I press "Join" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Successfully registered for class." # features/step_definitions/web_steps.rb:149 | |
And the student "student" should belong to the class "My Class" # features/step_definitions/student_steps.rb:59 | |
@javascript | |
Scenario: Student joins another class with invalid information # features/student_joins_another_class.feature:26 | |
Given the option to allow default classes is enabled # features/step_definitions/default_project_and_jnlps_steps.rb:60 | |
And the class "My Class" has the class word "word" # features/step_definitions/portal_clazz_steps.rb:1 | |
And the student "student" belongs to class "Class_with_no_students" # features/step_definitions/student_steps.rb:28 | |
And I am logged in with the username student # features/step_definitions/global_steps.rb:74 | |
And I am on the home page # features/step_definitions/web_steps.rb:66 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Please enter a valid class word and try again." # features/step_definitions/web_steps.rb:149 | |
When I fill in "clazz_class_word" with "word" # features/step_definitions/web_steps.rb:92 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
And I wait 1 second # features/step_definitions/global_steps.rb:135 | |
Then I should see "John Nash" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Please enter a valid class word and try again." # features/step_definitions/web_steps.rb:167 | |
When I press "Join" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Successfully registered for class." # features/step_definitions/web_steps.rb:149 | |
And the student "student" should belong to the class "My Class" # features/step_definitions/student_steps.rb:59 | |
@javascript | |
Scenario: With the default class enabled, student joins another class # features/student_joins_another_class.feature:44 | |
Given the option to allow default classes is enabled # features/step_definitions/default_project_and_jnlps_steps.rb:60 | |
And the class "My Class" has the class word "word" # features/step_definitions/portal_clazz_steps.rb:1 | |
And the student "student" belongs to class "Class_with_no_students" # features/step_definitions/student_steps.rb:28 | |
And I am logged in with the username student # features/step_definitions/global_steps.rb:74 | |
And I am on the home page # features/step_definitions/web_steps.rb:66 | |
And I fill in "clazz_class_word" with "word" # features/step_definitions/web_steps.rb:92 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
And I wait 1 second # features/step_definitions/global_steps.rb:135 | |
Then I should see "By joining this class, the teacher John Nash will be able to see all of your current and future work. If do not want to share your work, but do want to join the class please create a second account and use it to join the class" # features/step_definitions/web_steps.rb:149 | |
And I should see "Click 'Join' to continue registering for this class." # features/step_definitions/web_steps.rb:149 | |
When I press "Join" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Successfully registered for class." # features/step_definitions/web_steps.rb:149 | |
And the student "student" should belong to the class "My Class" # features/step_definitions/student_steps.rb:59 | |
@javascript | |
Scenario: With the default class enabled, student joins another class with invalid information # features/student_joins_another_class.feature:60 | |
Given the option to allow default classes is enabled # features/step_definitions/default_project_and_jnlps_steps.rb:60 | |
And the class "My Class" has the class word "word" # features/step_definitions/portal_clazz_steps.rb:1 | |
And the student "student" belongs to class "Class_with_no_students" # features/step_definitions/student_steps.rb:28 | |
And I am logged in with the username student # features/step_definitions/global_steps.rb:74 | |
And I am on the home page # features/step_definitions/web_steps.rb:66 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Please enter a valid class word and try again." # features/step_definitions/web_steps.rb:149 | |
When I fill in "clazz_class_word" with "word" # features/step_definitions/web_steps.rb:92 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
And I wait 1 second # features/step_definitions/global_steps.rb:135 | |
Then I should see "By joining this class, the teacher John Nash will be able to see all of your current and future work. If do not want to share your work, but do want to join the class please create a second account and use it to join the class" # features/step_definitions/web_steps.rb:149 | |
And I should see "Click 'Join' to continue registering for this class." # features/step_definitions/web_steps.rb:149 | |
And I should not see "Please enter a valid class word and try again." # features/step_definitions/web_steps.rb:167 | |
When I press "Join" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Successfully registered for class." # features/step_definitions/web_steps.rb:149 | |
And the student "student" should belong to the class "My Class" # features/step_definitions/student_steps.rb:59 | |
Feature: Student registers to use the portal | |
As a potential student | |
I want to register | |
In order to access my classes | |
Background: # features/student_registers.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
Scenario: Anonymous user signs up as student # features/student_registers.feature:11 | |
Given I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
And the option to allow default classes is disabled # features/step_definitions/default_project_and_jnlps_steps.rb:64 | |
And the following classes exist: # features/step_definitions/investigations_steps.rb:99 | |
| name | teacher | | |
| Test Class | teacher | | |
And the class "Test Class" has the class word "word" # features/step_definitions/portal_clazz_steps.rb:1 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
And I press "Sign up as a student" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Student Signup" # features/step_definitions/web_steps.rb:149 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Student | | |
| user_password | password | | |
| user_password_confirmation | password | | |
| clazz_class_word | word | | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Success!" # features/step_definitions/web_steps.rb:149 | |
And I should see "Your username is: estudent" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Sorry, there was an error creating your account" # features/step_definitions/web_steps.rb:167 | |
When I login with username: estudent password: password # features/step_definitions/global_steps.rb:83 | |
Then I should see "Signed in successfully." # features/step_definitions/web_steps.rb:149 | |
Scenario: Anonymous user signs up as student with form errors # features/student_registers.feature:36 | |
And the following classes exist: # features/step_definitions/investigations_steps.rb:99 | |
| name | teacher | | |
| Test Class | teacher | | |
And the class "Test Class" has the class word "word" # features/step_definitions/portal_clazz_steps.rb:1 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
And I press "Sign up as a student" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Student Signup" # features/step_definitions/web_steps.rb:149 | |
When I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "6 errors prohibited this user from being saved" # features/step_definitions/web_steps.rb:149 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Student | | |
| user_password | password | | |
| user_password_confirmation | password | | |
| clazz_class_word | word | | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Success!" # features/step_definitions/web_steps.rb:149 | |
Scenario: Class words are not case sensitive # features/student_registers.feature:57 | |
And the following classes exist: # features/step_definitions/investigations_steps.rb:99 | |
| name | teacher | | |
| Test Class | teacher | | |
And the class "Test Class" has the class word "word" # features/step_definitions/portal_clazz_steps.rb:1 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
And I press "Sign up as a student" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Student Signup" # features/step_definitions/web_steps.rb:149 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Student | | |
| user_password | password | | |
| user_password_confirmation | password | | |
| clazz_class_word | Word | | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Success!" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Sorry, there was an error creating your account" # features/step_definitions/web_steps.rb:167 | |
When I login with username: estudent password: password # features/step_definitions/global_steps.rb:83 | |
Then I should see "Signed in successfully." # features/step_definitions/web_steps.rb:149 | |
Scenario: Student registered when default classes are enabled # features/student_registers.feature:79 | |
Given the option to allow default classes is enabled # features/step_definitions/default_project_and_jnlps_steps.rb:60 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
And I press "Sign up as a student" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Student Signup" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Class Word" # features/step_definitions/web_steps.rb:167 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Student | | |
| user_password | password | | |
| user_password_confirmation | password | | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Your username is: estudent" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Sorry, there was an error creating your account" # features/step_definitions/web_steps.rb:167 | |
When I login with username: estudent password: password # features/step_definitions/global_steps.rb:83 | |
And I should see "Signed in successfully." # features/step_definitions/web_steps.rb:149 | |
Scenario: Student under 18 registered when student consent is enabled # features/student_registers.feature:97 | |
Given the default project has student consent enabled # features/step_definitions/default_project_and_jnlps_steps.rb:72 | |
And the following classes exist: # features/step_definitions/investigations_steps.rb:99 | |
| name | teacher | | |
| Test Class | teacher | | |
And the class "Test Class" has the class word "word" # features/step_definitions/portal_clazz_steps.rb:1 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
And I press "Sign up as a student" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Student Signup" # features/step_definitions/web_steps.rb:149 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Student | | |
| user_password | password | | |
| user_password_confirmation | password | | |
| clazz_class_word | Word | | |
And I choose "user_of_consenting_age_false" # features/step_definitions/web_steps.rb:129 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Success!" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Sorry, there was an error creating your account" # features/step_definitions/web_steps.rb:167 | |
When I login with username: estudent password: password # features/step_definitions/global_steps.rb:83 | |
Then I should see "Signed in successfully." # features/step_definitions/web_steps.rb:149 | |
Scenario: Student over 18 registers and gives consent # features/student_registers.feature:120 | |
Given the default project has student consent enabled # features/step_definitions/default_project_and_jnlps_steps.rb:72 | |
And the following classes exist: # features/step_definitions/investigations_steps.rb:99 | |
| name | teacher | | |
| Test Class | teacher | | |
And the class "Test Class" has the class word "word" # features/step_definitions/portal_clazz_steps.rb:1 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
And I press "Sign up as a student" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Student Signup" # features/step_definitions/web_steps.rb:149 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Student | | |
| user_password | password | | |
| user_password_confirmation | password | | |
| clazz_class_word | Word | | |
And I choose "user_of_consenting_age_true" # features/step_definitions/web_steps.rb:129 | |
And I choose "user_have_consent_true" # features/step_definitions/web_steps.rb:129 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Success!" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Sorry, there was an error creating your account" # features/step_definitions/web_steps.rb:167 | |
When I login with username: estudent password: password # features/step_definitions/global_steps.rb:83 | |
Then I should see "Signed in successfully." # features/step_definitions/web_steps.rb:149 | |
Scenario: Student over 18 registered and doesn't give consent # features/student_registers.feature:144 | |
Given the default project has student consent enabled # features/step_definitions/default_project_and_jnlps_steps.rb:72 | |
And the following classes exist: # features/step_definitions/investigations_steps.rb:99 | |
| name | teacher | | |
| Test Class | teacher | | |
And the class "Test Class" has the class word "word" # features/step_definitions/portal_clazz_steps.rb:1 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
And I press "Sign up as a student" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Student Signup" # features/step_definitions/web_steps.rb:149 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Student | | |
| user_password | password | | |
| user_password_confirmation | password | | |
| clazz_class_word | Word | | |
And I choose "user_of_consenting_age_true" # features/step_definitions/web_steps.rb:129 | |
And I choose "user_have_consent_false" # features/step_definitions/web_steps.rb:129 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Success!" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Sorry, there was an error creating your account" # features/step_definitions/web_steps.rb:167 | |
When I login with username: estudent password: password # features/step_definitions/global_steps.rb:83 | |
Then I should see "Signed in successfully." # features/step_definitions/web_steps.rb:149 | |
Feature: Student must give consent for research study | |
when a student registered by a teacher logs in | |
so that the project safely can do research on the student data | |
the student shouldn't be able to do anything until they have consented or not | |
Background: portal configured with student consent # features/student_requires_consent.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the default project has student consent enabled # features/step_definitions/default_project_and_jnlps_steps.rb:72 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: Teacher signs up a student, student them must give consent on logging in # features/student_requires_consent.feature:13 | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I am on "Student Roster" page for "My Class" # features/step_definitions/web_steps.rb:66 | |
And I follow "Register and add new student" # features/step_definitions/web_steps.rb:88 | |
And I should see "Register and Add New Student" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Your age" # features/step_definitions/web_steps.rb:167 | |
Then I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Student | | |
| user_password | password | | |
| user_password_confirmation | password | | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
And I log out # features/step_definitions/global_steps.rb:88 | |
And I login with username: estudent password: password # features/step_definitions/global_steps.rb:83 | |
Then I should see "Your age" # features/step_definitions/web_steps.rb:149 | |
And I choose "user_of_consenting_age_true" # features/step_definitions/web_steps.rb:129 | |
And I choose "user_have_consent_true" # features/step_definitions/web_steps.rb:129 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should not see "Your age" # features/step_definitions/web_steps.rb:167 | |
And I log out # features/step_definitions/global_steps.rb:88 | |
And I login with username: estudent password: password # features/step_definitions/global_steps.rb:83 | |
Then I should not see "Your age" # features/step_definitions/web_steps.rb:167 | |
Feature: Student requires a password reset | |
So that I won't forget my password when my account was created for me | |
As a student | |
I am forced to change my password if my account was created for me. | |
Background: # features/student_requires_password_reset.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
Given the following students exist: # features/step_definitions/student_steps.rb:1 | |
| login | password | require_password_reset | | |
| student_password | student_password | true | | |
Scenario: Student forced to change password # features/student_requires_password_reset.feature:14 | |
When I am logged in with the username student_password # features/step_definitions/global_steps.rb:74 | |
And I try to go to my home page # features/step_definitions/web_steps.rb:74 | |
Then I should be on the password reset page # features/step_definitions/web_steps.rb:231 | |
Then I should see "You must set a new password." # features/step_definitions/web_steps.rb:149 | |
Scenario: Student tries to navigate to their preferences # features/student_requires_password_reset.feature:21 | |
When I am logged in with the username student_password # features/step_definitions/global_steps.rb:74 | |
When I try to go to my preferences # features/step_definitions/web_steps.rb:74 | |
Then I should be on the password reset page # features/step_definitions/web_steps.rb:231 | |
And I should see "You must set a new password." # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Student updates password with errors # features/student_requires_password_reset.feature:28 | |
When I am logged in with the username student_password # features/step_definitions/global_steps.rb:74 | |
And I try to go to my home page # features/step_definitions/web_steps.rb:74 | |
Then I should see "You must set a new password." # features/step_definitions/web_steps.rb:149 | |
When I fill in "user[password]" with "c" # features/step_definitions/web_steps.rb:92 | |
When I fill in "user[password_confirmation]" with "pizzaxyzzy" # features/step_definitions/web_steps.rb:92 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Your password could not be changed." # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Student updates password # features/student_requires_password_reset.feature:38 | |
When I am logged in with the username student_password # features/step_definitions/global_steps.rb:74 | |
And I try to go to my home page # features/step_definitions/web_steps.rb:74 | |
Then I should see "You must set a new password." # features/step_definitions/web_steps.rb:149 | |
When I fill in "user[password]" with "xyzzypizza" # features/step_definitions/web_steps.rb:92 | |
When I fill in "user[password_confirmation]" with "xyzzypizza" # features/step_definitions/web_steps.rb:92 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should be on the login page # features/step_definitions/web_steps.rb:231 | |
And I should see "Password for student_password was successfully updated." # features/step_definitions/web_steps.rb:149 | |
Feature: Student must specify security questions before using the portal | |
when I haven't set my security questions | |
so that I may later reset my password | |
I shouldn't be able to do anything until I set my | |
security questions | |
Background: portal configured with s-questions, user doesn't have them # features/student_requires_security_questions.feature:8 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And the default project has security questions enabled # features/step_definitions/default_project_and_jnlps_steps.rb:56 | |
And the student "student" has no security questions set # features/step_definitions/student_steps.rb:52 | |
And I am logged in with the username student # features/step_definitions/global_steps.rb:74 | |
Scenario: Student forced to enter security questions # features/student_requires_security_questions.feature:15 | |
When I try to go to my home page # features/step_definitions/web_steps.rb:74 | |
Then I should be on the edit security questions page for the user "student" # features/step_definitions/web_steps.rb:231 | |
Scenario: Student tries to navigate to their preferences # features/student_requires_security_questions.feature:19 | |
When I try to go to my preferences # features/step_definitions/web_steps.rb:74 | |
Then I should be on the edit security questions page for the user "student" # features/step_definitions/web_steps.rb:231 | |
Scenario: Student can navigate to their home page after their security qeustions are set # features/student_requires_security_questions.feature:23 | |
When the student "student" has security questions set # features/step_definitions/student_steps.rb:36 | |
And I go to my home page # features/step_definitions/web_steps.rb:70 | |
Then I should be on my home page # features/step_definitions/web_steps.rb:231 | |
Scenario: Student can navigate to their preferences # features/student_requires_security_questions.feature:28 | |
When the student "student" has security questions set # features/step_definitions/student_steps.rb:36 | |
And I go to my preferences # features/step_definitions/web_steps.rb:70 | |
Then I should be on my preferences # features/step_definitions/web_steps.rb:231 | |
Feature: Student resets passwordAnd | |
In order to log in after I forgot my old password | |
As a student | |
I want to reset my password | |
Background: # features/student_resets_password.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: Passwords can not be blank # features/student_resets_password.feature:12 | |
When the student "student" has security questions set # features/step_definitions/student_steps.rb:36 | |
And I am on the forgot password page # features/step_definitions/web_steps.rb:66 | |
When I fill in "login" with "student" within content box in change password page # features/step_definitions/web_steps.rb:35 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Security Questions" # features/step_definitions/web_steps.rb:149 | |
When I fill in "security_questions[question0][answer]" with "red" # features/step_definitions/web_steps.rb:92 | |
When I fill in "security_questions[question1][answer]" with "pizza" # features/step_definitions/web_steps.rb:92 | |
When I fill in "security_questions[question2][answer]" with "chocolate" # features/step_definitions/web_steps.rb:92 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Please enter a new password and confirm it." # features/step_definitions/web_steps.rb:149 | |
When I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Your password could not be changed." # features/step_definitions/web_steps.rb:149 | |
And I should see "Password can't be blank" # features/step_definitions/web_steps.rb:149 | |
Feature: Student runs html activity | |
In order to use an html activity | |
As a student | |
I want to "run" the activity | |
Background: # features/student_runs_html_activity.feature:6 | |
Given the most basic default project # features/step_definitions/default_project_and_jnlps_steps.rb:1 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And a simple activity with a multiple choice exists # features/step_definitions/activity_steps.rb:51 | |
And the activity "simple activity" is assigned to the class "My Class" # features/step_definitions/assignment_steps.rb:20 | |
@lightweight | |
Scenario: Student runs html # features/student_runs_html_activity.feature:13 | |
And I login with username: student # features/step_definitions/global_steps.rb:78 | |
And run the activity # features/step_definitions/student_steps.rb:66 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
@javascript @lightweight @disable_adhoc_workgroups | |
Scenario: Student runs html and teacher sees recent activity # features/student_runs_html_activity.feature:19 | |
And I login with username: student # features/step_definitions/global_steps.rb:78 | |
And run the activity # features/step_definitions/student_steps.rb:66 | |
And I choose "a" # features/step_definitions/web_steps.rb:129 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
And I login with username: teacher # features/step_definitions/global_steps.rb:78 | |
And I follow "Recent Activity" # features/step_definitions/web_steps.rb:88 | |
Feature: Student runs a jnlps | |
In order to use a super cool Java activity | |
As a student | |
I want to run a jnlp | |
Background: # features/student_runs_jnlp.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I login with username: student # features/step_definitions/global_steps.rb:78 | |
Scenario: Student runs jnlp # features/student_runs_jnlp.feature:11 | |
When I run the investigation # features/step_definitions/student_steps.rb:66 | |
Then a jnlp file is downloaded # features/step_definitions/downloaded_file_steps.rb:11 | |
And the jnlp file for "Aerodynamics" has a configuration for the student and offering # features/step_definitions/downloaded_file_steps.rb:46 | |
Feature: Student should see latest class information | |
In order to only work on active offerings | |
As a student | |
I should always see latest class information | |
Background: # features/student_should_see_latest_class_information.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I am on the class edit page for "Mathematics" # features/step_definitions/web_steps.rb:66 | |
And I fill in Class Name with "Basic Electronics" # features/step_definitions/teacher_saves_edited_class_steps.rb:2 | |
And I select Term "Fall" from the drop down # features/step_definitions/teacher_saves_edited_class_steps.rb:14 | |
And I fill Description with "This is a biology class" # features/step_definitions/teacher_saves_edited_class_steps.rb:6 | |
And I fill Class Word with "betrx" # features/step_definitions/teacher_saves_edited_class_steps.rb:10 | |
And I uncheck investigation with label "Lumped circuit abstraction" # features/step_definitions/teacher_saves_edited_class_steps.rb:18 | |
And I press "Save" # features/step_definitions/web_steps.rb:78 | |
Then I should not see "Save" # features/step_definitions/web_steps.rb:167 | |
@javascript | |
Scenario: Student should see the updated class name # features/student_should_see_latest_class_information.feature:21 | |
When I login with username: taylor # features/step_definitions/global_steps.rb:78 | |
Then I should see "Basic Electronics" # features/step_definitions/web_steps.rb:149 | |
Scenario: Student should see all the updated information of a class # features/student_should_see_latest_class_information.feature:26 | |
When I login with username: taylor # features/step_definitions/global_steps.rb:78 | |
And I follow "Basic Electronics" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Semester: Fall" # features/step_definitions/web_steps.rb:149 | |
And I should see "Class Word: betrx" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Lumped circuit abstraction" # features/step_definitions/web_steps.rb:167 | |
And I should see "Non Linear Devices" # features/step_definitions/web_steps.rb:149 | |
And I should see "Static discipline" # features/step_definitions/web_steps.rb:149 | |
Feature: Student views report | |
In order to know how I did on material | |
As an student | |
I need to access the student report | |
Background: # features/student_views_report.feature:7 | |
Given the most basic default project # features/step_definitions/default_project_and_jnlps_steps.rb:1 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And a simple activity with a multiple choice exists # features/step_definitions/activity_steps.rb:51 | |
And the activity "simple activity" is assigned to the class "Class_with_no_assignment" # features/step_definitions/assignment_steps.rb:20 | |
@lightweight | |
Scenario: Student sees report link # features/student_views_report.feature:14 | |
When I login with username: davy # features/step_definitions/global_steps.rb:78 | |
Then I should not see "Generate a report of my work" # features/step_definitions/web_steps.rb:167 | |
And I should not see "Last run" # features/step_definitions/web_steps.rb:167 | |
When run the activity # features/step_definitions/student_steps.rb:66 | |
And choose "Choice 1" # features/step_definitions/web_steps.rb:129 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Last run" # features/step_definitions/web_steps.rb:149 | |
When I should see "Generate a report of my work" # features/step_definitions/web_steps.rb:149 | |
@lightweight | |
Scenario: Student does not see report link if student report is disabled # features/student_views_report.feature:25 | |
When the student report is disabled for the activity "simple activity" # features/step_definitions/student_steps.rb:86 | |
When I login with username: davy # features/step_definitions/global_steps.rb:78 | |
Then I should not see "Generate a report of my work" # features/step_definitions/web_steps.rb:167 | |
And I should not see "Last run" # features/step_definitions/web_steps.rb:167 | |
And run the activity # features/step_definitions/student_steps.rb:66 | |
And choose "Choice 1" # features/step_definitions/web_steps.rb:129 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Last run" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Generate a report of my work" # features/step_definitions/web_steps.rb:167 | |
@javascript | |
Feature: Student views resource page | |
In order see the resource page assigned to me | |
As a student | |
I want to open it | |
Background: # features/student_views_resource_page.feature:8 | |
And I assign the resource page "NewestResource" to the class "My Class" # features/step_definitions/assignment_steps.rb:25 | |
Scenario: Student opens resource page # features/student_views_resource_page.feature:11 | |
And I am logged in with the username student # features/step_definitions/global_steps.rb:74 | |
And I am on the class page for "My Class" # features/step_definitions/web_steps.rb:66 | |
And run the resource page # features/step_definitions/student_steps.rb:66 | |
Then I should see "NewestResource" # features/step_definitions/web_steps.rb:149 | |
Feature: Teacher adds a new student | |
As a teacher | |
I should be able to add a new student | |
In order to assign students to the class | |
Background: # features/teacher_adds_new_student.feature:8 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And the classes "Mathematics,Physics" are in a school named "Harvard" # features/step_definitions/portal_clazz_steps.rb:33 | |
@javascript | |
Scenario: Teacher can add a registered user # features/teacher_adds_new_student.feature:15 | |
When the student "student" belongs to class "Physics" # features/step_definitions/student_steps.rb:28 | |
When I login with username: teacher # features/step_definitions/global_steps.rb:78 | |
And I am on "Student Roster" page for "Mathematics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Search for registered student." # features/step_definitions/web_steps.rb:88 | |
And I should see "Robert, Alfred" # features/step_definitions/web_steps.rb:149 | |
And I select "Robert, Alfred ( student )" from the html dropdown "student_id_selector" # features/step_definitions/web_steps.rb:268 | |
And I should see "Robert, Alfred" # features/step_definitions/web_steps.rb:149 | |
And I press "Add" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Robert, Alfred" within the student list on the student roster page # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher can add an unregistered user # features/teacher_adds_new_student.feature:28 | |
When the student "student" belongs to class "Mathematics" # features/step_definitions/student_steps.rb:28 | |
And the student "student" belongs to class "Physics" # features/step_definitions/student_steps.rb:28 | |
And I login with username: teacher # features/step_definitions/global_steps.rb:78 | |
And I am on "Student Roster" page for "Mathematics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Register and add new student" # features/step_definitions/web_steps.rb:88 | |
And I should see "Register and Add New Student" # features/step_definitions/web_steps.rb:149 | |
And I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | John | | |
| user_last_name | Albert | | |
| user_password | albert | | |
| user_password_confirmation | albert | | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
And I should see "You have successfully registered John Albert with the username jalbert." within the popup # features/step_definitions/web_steps.rb:35 | |
And I press "Close" within the popup # features/step_definitions/web_steps.rb:35 | |
Then I should see "Albert, John" within the student list on the student roster page # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher adds another student from the pop up # features/teacher_adds_new_student.feature:47 | |
When the student "student" belongs to class "Mathematics" # features/step_definitions/student_steps.rb:28 | |
And the student "student" belongs to class "Physics" # features/step_definitions/student_steps.rb:28 | |
And I login with username: teacher # features/step_definitions/global_steps.rb:78 | |
And I am on "Student Roster" page for "Mathematics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Register and add new student" # features/step_definitions/web_steps.rb:88 | |
And I should see "Register and Add New Student" # features/step_definitions/web_steps.rb:149 | |
And I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | John | | |
| user_last_name | Albert | | |
| user_password | albert | | |
| user_password_confirmation | albert | | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
And I should see "You have successfully registered John Albert with the username jalbert." within the popup # features/step_definitions/web_steps.rb:35 | |
And I press "Add Another" within the popup # features/step_definitions/web_steps.rb:35 | |
Then I should see "First Name:" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: With the default class enabled, teachers cannot directly add existing students # features/teacher_adds_new_student.feature:65 | |
Given the option to allow default classes is enabled # features/step_definitions/default_project_and_jnlps_steps.rb:60 | |
When the student "student" belongs to class "Physics" # features/step_definitions/student_steps.rb:28 | |
When I login with username: teacher # features/step_definitions/global_steps.rb:78 | |
And I am on "Student Roster" page for "Mathematics" # features/step_definitions/web_steps.rb:66 | |
Then I should see "If a student already has an account, ask the student to enter the Class Word above" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Search for registered student" # features/step_definitions/web_steps.rb:167 | |
Feature: Teacher creates new portal class | |
In order to teach students a lesson | |
As a teacher | |
I want to create a portal class | |
Background: # features/teacher_creates_new_portal_class.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And grade levels for classes is enabled # features/step_definitions/admin_steps.rb:1 | |
Scenario: Class words are stored as lowercase # features/teacher_creates_new_portal_class.feature:13 | |
Given I am on the clazz create page # features/step_definitions/web_steps.rb:66 | |
When I fill in "portal_clazz[name]" with "My New Class" # features/step_definitions/web_steps.rb:92 | |
And I fill in "portal_clazz[class_word]" with "WINSTON" # features/step_definitions/web_steps.rb:92 | |
And I check "9" # features/step_definitions/web_steps.rb:121 | |
And I press "Save" # features/step_definitions/web_steps.rb:78 | |
Then the portal class "My New Class" should have been created # features/step_definitions/portal_clazz_steps.rb:43 | |
And the class word for the portal class "My New Class" should be "winston" # features/step_definitions/portal_clazz_steps.rb:48 | |
Feature: A teacher creates a resource page | |
As a Teacher | |
I want to create a resource page | |
So that students can see it. | |
Background: # features/teacher_creates_resource_page.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
Scenario: The teacher creates a resource page # features/teacher_creates_resource_page.feature:10 | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
When I go to the resource pages page # features/step_definitions/web_steps.rb:70 | |
And I follow "create Resource Page" # features/step_definitions/web_steps.rb:88 | |
Then I should see "New Resource" # features/step_definitions/web_steps.rb:149 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| resource_page[name] | Test Page | | |
And I press "Create resource page" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Resource Page was successfully created." # features/step_definitions/web_steps.rb:149 | |
Scenario: The teacher can view public and draft resource pages, and only their private ones # features/teacher_creates_resource_page.feature:21 | |
Given the following teachers exist: # features/step_definitions/teacher_steps.rb:25 | |
| login | password | | |
| teacherA | teacher | | |
| teacherB | teacher | | |
And the following resource pages exist: # features/step_definitions/resource_page_steps.rb:1 | |
| name | publication_status | user | | |
| published page A | published | teacherA | | |
| published page B | published | teacherB | | |
| draft page A | draft | teacherA | | |
| draft page B | draft | teacherB | | |
| private page A | private | teacherA | | |
| private page B | private | teacherB | | |
And I am logged in with the username teacherA # features/step_definitions/global_steps.rb:74 | |
When I go to the resource pages page # features/step_definitions/web_steps.rb:70 | |
Then I should see "published page A" # features/step_definitions/web_steps.rb:149 | |
And I should see "published page B" # features/step_definitions/web_steps.rb:149 | |
And I should see "private page A" # features/step_definitions/web_steps.rb:149 | |
And I should not see "private page B" # features/step_definitions/web_steps.rb:167 | |
When I try to go to the resource pages with drafts page # features/step_definitions/web_steps.rb:74 | |
Then I should see "draft page A" # features/step_definitions/web_steps.rb:149 | |
And I should see "draft page B" # features/step_definitions/web_steps.rb:149 | |
Scenario: The teacher can see their resource pages on the homepage # features/teacher_creates_resource_page.feature:44 | |
Given the following teachers exist: # features/step_definitions/teacher_steps.rb:25 | |
| login | password | | |
| teacherA | teacher | | |
And the following resource pages exist: # features/step_definitions/resource_page_steps.rb:1 | |
| name | publication_status | user | | |
| published page A | published | teacherA | | |
| draft page A | draft | teacherA | | |
| private page A | private | teacherA | | |
And I am logged in with the username teacherA # features/step_definitions/global_steps.rb:74 | |
When I am on the homepage # features/step_definitions/web_steps.rb:66 | |
Then I should see "published page A" # features/step_definitions/web_steps.rb:149 | |
And I should see "private page A" # features/step_definitions/web_steps.rb:149 | |
Then I should see "draft page A" # features/step_definitions/web_steps.rb:149 | |
Scenario: The teacher can search for resource pages # features/teacher_creates_resource_page.feature:59 | |
Given the following teachers exist: # features/step_definitions/teacher_steps.rb:25 | |
| login | password | | |
| teacherA | teacher | | |
| teacherB | teacher | | |
And the following resource pages exist: # features/step_definitions/resource_page_steps.rb:1 | |
| name | publication_status | user | | |
| 1Testing Page | published | teacherA | | |
| 2Testing Page | draft | teacherA | | |
| Demo Page | published | teacherA | | |
| BTesting Page | draft | teacherB | | |
| BDemo Page | published | teacherB | | |
And I am logged in with the username teacherA # features/step_definitions/global_steps.rb:74 | |
When I search for a resource page named "Testing" # features/step_definitions/resource_page_steps.rb:27 | |
Then I should see "1Testing Page" # features/step_definitions/web_steps.rb:149 | |
And I should see "2Testing Page" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Demo Page" # features/step_definitions/web_steps.rb:167 | |
And I should not see "BDemo Page" # features/step_definitions/web_steps.rb:167 | |
And I should not see "BTesting Page" # features/step_definitions/web_steps.rb:167 | |
When I search for a resource page including drafts named "Testing" # features/step_definitions/resource_page_steps.rb:31 | |
Then I should see "1Testing Page" # features/step_definitions/web_steps.rb:149 | |
And I should see "2Testing Page" # features/step_definitions/web_steps.rb:149 | |
And I should see "BTesting Page" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Demo Page" # features/step_definitions/web_steps.rb:167 | |
And I should not see "BDemo Page" # features/step_definitions/web_steps.rb:167 | |
Feature: Teacher can deactivate investigations from a class | |
So my class can move on to other things | |
As a teacher | |
I want to unassign investigations from a class | |
Background: # features/teacher_deactivates_investigation.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And a student has performed work on the investigation "Aerodynamics" for the class "My Class" # features/step_definitions/investigations_steps.rb:193 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
Scenario: Teacher can see if student has performed work on an investigation # features/teacher_deactivates_investigation.feature:12 | |
When I am on the class page for "My Class" # features/step_definitions/web_steps.rb:66 | |
And I open the accordion for the offering for investigation "Aerodynamics" for the class "My Class" # features/step_definitions/investigations_steps.rb:204 | |
Then I should see "1 student response" # features/step_definitions/web_steps.rb:149 | |
When I follow "deactivate" on the investigation "Aerodynamics" from the class "My Class" # features/step_definitions/investigations_steps.rb:177 | |
And I am on the class page for "My Class" # features/step_definitions/web_steps.rb:66 | |
Then I should see "1 student response" # features/step_definitions/web_steps.rb:149 | |
When I follow "activate" on the investigation "Aerodynamics" from the class "My Class" # features/step_definitions/investigations_steps.rb:177 | |
And I am on the class page for "My Class" # features/step_definitions/web_steps.rb:66 | |
Then I should see "1 student response" # features/step_definitions/web_steps.rb:149 | |
@dialog @javascript | |
Scenario: Teacher drags active investigation with students off of class # features/teacher_deactivates_investigation.feature:27 | |
When I am on the class page for "My Class" # features/step_definitions/web_steps.rb:66 | |
And I drag the investigation "Aerodynamics" in the class "My Class" to "#offering_list" # features/step_definitions/investigations_steps.rb:217 | |
Then I need to confirm "Cannot delete offering with student data. Please deactivate instead." # features/step_definitions/global_steps.rb:176 | |
No alert is present (Selenium::WebDriver::Error::NoAlertPresentError) | |
./features/step_definitions/global_steps.rb:178:in `/^(?:|I )need to confirm "([^"]*)"$/' | |
features/teacher_deactivates_investigation.feature:30:in `Then I need to confirm "Cannot delete offering with student data. Please deactivate instead."' | |
And I should see "Aerodynamics" within "#clazz_offerings" # features/step_definitions/web_steps.rb:35 | |
And the investigation "Aerodynamics" in the class "My Class" should be active # features/step_definitions/investigations_steps.rb:236 | |
Feature: Teacher can edit their class information | |
So that the class information can be accurate | |
Background: # features/teacher_edits_class.feature:4 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: Teacher can follow link to edit their class info # features/teacher_edits_class.feature:9 | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I go to the class page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Class Setup" # features/step_definitions/web_steps.rb:88 | |
Then I should be on the class edit page for "My Class" # features/step_definitions/web_steps.rb:231 | |
Scenario: Anonymous user can not view class # features/teacher_edits_class.feature:15 | |
When I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
And I try to go to the class page for "My Class" # features/step_definitions/web_steps.rb:74 | |
Then I should be on "my home page" # features/step_definitions/web_steps.rb:231 | |
Scenario: Anonymous user cannot not edit class # features/teacher_edits_class.feature:20 | |
When I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
And I try to go to the class edit page for "My Class" # features/step_definitions/web_steps.rb:74 | |
Then I should be on "my home page" # features/step_definitions/web_steps.rb:231 | |
Feature: Teacher can search and filter instructional materials | |
As a teacher | |
I should be able to search and filter instructional materials | |
In order to find suitable study materials for the class | |
Background: # features/teacher_filters_instructional_materials.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And the investigation "Digestive System (published) (draft) Juice" belongs to domain "Biological Science" and has grade "10-11" # features/step_definitions/investigations_steps.rb:397 | |
And the investigation "A Weather Underground" with activity "A heat spontaneously" belongs to probe "Temperature" # features/step_definitions/investigations_steps.rb:427 | |
And The materials have been indexed # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:1 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
@javascript | |
Scenario: Teacher should be able to filter the search results on the basis of domains # features/teacher_filters_instructional_materials.feature:18 | |
When I check "Biological Science" # features/step_definitions/web_steps.rb:121 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should see "Digestive System" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should be able to filter the search results on the basis of grades # features/teacher_filters_instructional_materials.feature:25 | |
When I check "10-11" # features/step_definitions/web_steps.rb:121 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should see "Digestive System" # features/step_definitions/web_steps.rb:149 | |
And I should see "Bile Juice" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher views all investigations and activities for all grades # features/teacher_filters_instructional_materials.feature:33 | |
When I check "All Grades" # features/step_definitions/web_steps.rb:121 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should see "Digestive System" # features/step_definitions/web_steps.rb:149 | |
And I should see "Bile Juice" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should be able to filter the search results on the basis of probes # features/teacher_filters_instructional_materials.feature:41 | |
When I check "Temperature" # features/step_definitions/web_steps.rb:121 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And I should see "A Weather Underground" # features/step_definitions/web_steps.rb:149 | |
And I should see "A heat spontaneously" # features/step_definitions/web_steps.rb:149 | |
And I uncheck "Temperature" # features/step_definitions/web_steps.rb:125 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And I check "UVA Intensity" # features/step_definitions/web_steps.rb:121 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should not see "A Weather Underground" # features/step_definitions/web_steps.rb:167 | |
And I should not see "A heat spontaneously" # features/step_definitions/web_steps.rb:167 | |
And I check "Temperature" # features/step_definitions/web_steps.rb:121 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And I should see "A Weather Underground" # features/step_definitions/web_steps.rb:149 | |
And I should see "A heat spontaneously" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher views all investigations and activities with sensors # features/teacher_filters_instructional_materials.feature:59 | |
When I follow "all" # features/step_definitions/web_steps.rb:88 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should see "A Weather Underground" # features/step_definitions/web_steps.rb:149 | |
And I should see "A heat spontaneously" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher views investigations and activities without sensors # features/teacher_filters_instructional_materials.feature:67 | |
When I check "No Sensors Required" # features/step_definitions/web_steps.rb:121 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should not see "A Weather Underground" # features/step_definitions/web_steps.rb:167 | |
And I should not see "A heat spontaneously" # features/step_definitions/web_steps.rb:167 | |
When I uncheck "No Sensors Required" # features/step_definitions/web_steps.rb:125 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And I follow "none" # features/step_definitions/web_steps.rb:88 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And I should see "A Weather Underground" # features/step_definitions/web_steps.rb:149 | |
And I should see "A heat spontaneously" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: I log out and log back in again, and my sensor choice is remembered # features/teacher_filters_instructional_materials.feature:80 | |
When I login with username: teacher password: password # features/step_definitions/global_steps.rb:83 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
And I check "Temperature" # features/step_definitions/web_steps.rb:121 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And I should see "A Weather Underground" # features/step_definitions/web_steps.rb:149 | |
Then I log out # features/step_definitions/global_steps.rb:88 | |
And I login with username: teacher password: password # features/step_definitions/global_steps.rb:83 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
Then the "Temperature" checkbox should be checked # features/step_definitions/web_steps.rb:209 | |
expected: true value | |
got: nil (RSpec::Expectations::ExpectationNotMetError) | |
./features/step_definitions/web_steps.rb:213:in `block (2 levels) in <top (required)>' | |
./features/step_definitions/web_steps.rb:29:in `with_scope' | |
./features/step_definitions/web_steps.rb:210:in `/^the "([^"]*)" checkbox(?: within (.*))? should be checked$/' | |
features/teacher_filters_instructional_materials.feature:89:in `Then the "Temperature" checkbox should be checked' | |
Feature: Class state should be saved | |
Background: # features/teacher_left_pane_navigation_state_should_be_maintained.feature:3 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
@javascript | |
Scenario: Teacher should land on instructional materials page # features/teacher_left_pane_navigation_state_should_be_maintained.feature:10 | |
When I am on the home page # features/step_definitions/web_steps.rb:66 | |
When I follow "Physics" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
Then I should be on the Instructional Materials page for "Physics" # features/step_definitions/web_steps.rb:231 | |
@javascript | |
Scenario: Teacher's state in the left pane should be maintained when navigating across classes # features/teacher_left_pane_navigation_state_should_be_maintained.feature:17 | |
When I am on "Student Roster" page for "My Class" # features/step_definitions/web_steps.rb:66 | |
And I follow "Physics" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
Then I should be on "Student Roster" page for "Physics" # features/step_definitions/web_steps.rb:231 | |
@javascript | |
Scenario: Teacher's state in the left pane should be maintained after visiting some other part of the application # features/teacher_left_pane_navigation_state_should_be_maintained.feature:23 | |
When I am on "Student Roster" page for "My Class" # features/step_definitions/web_steps.rb:66 | |
And I go to the Manage Class Page # features/step_definitions/web_steps.rb:70 | |
And I follow "Physics" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
Then I should see "Class Name : Physics" # features/step_definitions/web_steps.rb:149 | |
And I should be on "Student Roster" page for "Physics" # features/step_definitions/web_steps.rb:231 | |
@javascript | |
Scenario: Teacher's state in the left pane should be maintained across sessions # features/teacher_left_pane_navigation_state_should_be_maintained.feature:31 | |
When I am on "Student Roster" page for "My Class" # features/step_definitions/web_steps.rb:66 | |
And I log out # features/step_definitions/global_steps.rb:88 | |
And I login with username: teacher password: password # features/step_definitions/global_steps.rb:83 | |
And I follow "Physics" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
Then I should see "Class Name : Physics" # features/step_definitions/web_steps.rb:149 | |
And I should be on "Student Roster" page for "Physics" # features/step_definitions/web_steps.rb:231 | |
Feature: Teacher manages a class | |
As a teacher | |
I want to manage my classes | |
In order to make classes more effective | |
Background: # features/teacher_manages_class.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I go to the Manage Class Page # features/step_definitions/web_steps.rb:70 | |
@javascript | |
Scenario: Teacher creates a copy of a class # features/teacher_manages_class.feature:15 | |
When I follow copy class link for the class "Mathematics" # features/step_definitions/teacher_manages_class_steps.rb:2 | |
And I fill in "Class Name:" with "Copy of Mathematics" # features/step_definitions/web_steps.rb:92 | |
And I fill in "Class Word:" with "etrx" # features/step_definitions/web_steps.rb:92 | |
And I fill in "Class Description" with "electronics class" # features/step_definitions/web_steps.rb:92 | |
And I press "Save" within the popup # features/step_definitions/web_steps.rb:35 | |
Then I should see "Copy of Mathematics" # features/step_definitions/web_steps.rb:149 | |
And "Copy of Mathematics" should be the last on the list with id "sortable" # features/step_definitions/teacher_manages_class_steps.rb:61 | |
And "Copy of Mathematics" should be the last class within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
And there should be no student in "Copy of Mathematics" # features/step_definitions/teacher_manages_class_steps.rb:90 | |
And I should see "Peterson Taylor" # features/step_definitions/web_steps.rb:149 | |
And I should see "John Nash" # features/step_definitions/web_steps.rb:149 | |
And I should see "Lumped circuit abstraction" # features/step_definitions/web_steps.rb:149 | |
And I should see "Static discipline" # features/step_definitions/web_steps.rb:149 | |
And I should see "Non Linear Devices" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should be on Manage their Class Page # features/teacher_manages_class.feature:33 | |
Then I should be on Manage Class Page # features/step_definitions/web_steps.rb:231 | |
@javascript | |
Scenario: Anonymous user can not manage a class # features/teacher_manages_class.feature:38 | |
Given I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
When I try to go to the Manage Class Page # features/step_definitions/web_steps.rb:74 | |
Then I should be on "my home page" # features/step_definitions/web_steps.rb:231 | |
@javascript | |
Scenario: Teacher can reorder the class list # features/teacher_manages_class.feature:45 | |
When I move "Mathematics" to the top of the list with id "sortable" # features/step_definitions/teacher_manages_class_steps.rb:10 | |
And the Manage class list state starts saving # features/step_definitions/teacher_manages_class_steps.rb:38 | |
And the modal for saving manage classes dissappears # features/step_definitions/teacher_manages_class_steps.rb:42 | |
Then "Mathematics" should be the first on the list with id "sortable" # features/step_definitions/teacher_manages_class_steps.rb:46 | |
And "Mathematics" should be the first class within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher deactivates classes # features/teacher_manages_class.feature:54 | |
When I uncheck "Biology" # features/step_definitions/web_steps.rb:125 | |
Then I should not see "Biology" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
When I uncheck "Geography" # features/step_definitions/web_steps.rb:125 | |
And I should not see "Geography" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Student logs in and visits a class page which the teacher has deactivated # features/teacher_manages_class.feature:62 | |
When I uncheck "My Class" # features/step_definitions/web_steps.rb:125 | |
And the Manage class list state starts saving # features/step_definitions/teacher_manages_class_steps.rb:38 | |
And the modal for saving manage classes dissappears # features/step_definitions/teacher_manages_class_steps.rb:42 | |
And I log out # features/step_definitions/global_steps.rb:88 | |
And I login with username: student # features/step_definitions/global_steps.rb:78 | |
Then I should see "My Class" # features/step_definitions/web_steps.rb:149 | |
And I should see "Class_with_no_assignment" # features/step_definitions/web_steps.rb:149 | |
And I should see "Class_with_no_attempts" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher logs in and visits a class page which some other teacher has deactivated # features/teacher_manages_class.feature:74 | |
Given the following teacher and class mapping exists: # features/step_definitions/teacher_steps.rb:46 | |
| class_name | teacher | | |
| Mathematics | teacher_with_no_class | | |
| Biology | teacher_with_no_class | | |
| Geography | teacher_with_no_class | | |
When I uncheck "Biology" # features/step_definitions/web_steps.rb:125 | |
And the Manage class list state starts saving # features/step_definitions/teacher_manages_class_steps.rb:38 | |
And the modal for saving manage classes dissappears # features/step_definitions/teacher_manages_class_steps.rb:42 | |
And I uncheck "Geography" # features/step_definitions/web_steps.rb:125 | |
And the Manage class list state starts saving # features/step_definitions/teacher_manages_class_steps.rb:38 | |
And the modal for saving manage classes dissappears # features/step_definitions/teacher_manages_class_steps.rb:42 | |
And I log out # features/step_definitions/global_steps.rb:88 | |
And I login with username: teacher_with_no_class # features/step_definitions/global_steps.rb:78 | |
Then I should see "Mathematics" # features/step_definitions/web_steps.rb:149 | |
And I should see "Biology" # features/step_definitions/web_steps.rb:149 | |
And I should see "Geography" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher creates a copy of a class to which another teacher belongs and the other teacher logs in. # features/teacher_manages_class.feature:94 | |
Given the following teacher and class mapping exists: # features/step_definitions/teacher_steps.rb:46 | |
| class_name | teacher | | |
| Mathematics | teacher_with_no_class | | |
| Chemistry | teacher_with_no_class | | |
| Mathematics | teacher_with_no_class | | |
When I follow copy class link for the class "Mathematics" # features/step_definitions/teacher_manages_class_steps.rb:2 | |
And I fill in "Class Name:" with "Copy of Mathematics" # features/step_definitions/web_steps.rb:92 | |
And I fill in "Class Word:" with "etrx" # features/step_definitions/web_steps.rb:92 | |
And I fill in "Class Description" with "electronics class" # features/step_definitions/web_steps.rb:92 | |
And I press "Save" within the popup # features/step_definitions/web_steps.rb:35 | |
And I log out # features/step_definitions/global_steps.rb:88 | |
And login with username: teacher_with_no_class # features/step_definitions/global_steps.rb:78 | |
And I am on Manage Class Page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Copy of Mathematics" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher fills in class name with a blank string while creating copy of a class # features/teacher_manages_class.feature:112 | |
When I follow copy class link for the class "Mathematics" # features/step_definitions/teacher_manages_class_steps.rb:2 | |
And I fill in "Class Name:" with "" # features/step_definitions/web_steps.rb:92 | |
And I fill in "Class Word:" with "etrx" # features/step_definitions/web_steps.rb:92 | |
And I fill in "Class Description" with "electronics class" # features/step_definitions/web_steps.rb:92 | |
And I press "Save" within the popup # features/step_definitions/web_steps.rb:35 | |
Then I should see "Name can't be blank" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher fills in class word with a blank string while creating copy of a class # features/teacher_manages_class.feature:122 | |
When I follow copy class link for the class "Mathematics" # features/step_definitions/teacher_manages_class_steps.rb:2 | |
And I fill in "Class Name:" with "Copy of Mathematics" # features/step_definitions/web_steps.rb:92 | |
And I fill in "Class Word:" with "" # features/step_definitions/web_steps.rb:92 | |
And I fill in "Class Description" with "electronics class" # features/step_definitions/web_steps.rb:92 | |
And I press "Save" within the popup # features/step_definitions/web_steps.rb:35 | |
Then I should see "Class word can't be blank" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher fills in class word which has already been taken # features/teacher_manages_class.feature:132 | |
When I follow copy class link for the class "Mathematics" # features/step_definitions/teacher_manages_class_steps.rb:2 | |
And I fill in "Class Name:" with "Copy of Mathematics" # features/step_definitions/web_steps.rb:92 | |
And I fill in "Class Word:" with "phy" # features/step_definitions/web_steps.rb:92 | |
And I fill in "Class Description" with "electronics class" # features/step_definitions/web_steps.rb:92 | |
And I press "Save" within the popup # features/step_definitions/web_steps.rb:35 | |
Then I should see "Class word has already been taken" # features/step_definitions/web_steps.rb:149 | |
Feature: Teacher manages instructional materials of a class | |
As a teacher | |
I want to manage my instructional materials of a class | |
In order to make my class more effective | |
Background: # features/teacher_manages_instructional_materials.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
@javascript | |
Scenario: Teacher can follow link to Instructional Materials on their Class Page # features/teacher_manages_instructional_materials.feature:14 | |
Then I should be on Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:231 | |
Scenario: Anonymous user can not view instructional materials of a class # features/teacher_manages_instructional_materials.feature:17 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
And I try to go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:74 | |
Then I should be on "my home page" # features/step_definitions/web_steps.rb:231 | |
Scenario: Teacher can click button to Manage Materials # features/teacher_manages_instructional_materials.feature:22 | |
When I follow "Manage Materials" # features/step_definitions/web_steps.rb:88 | |
Then I should be on the class edit page for "My Class" # features/step_definitions/web_steps.rb:231 | |
Scenario: Teacher can click button to Add new materials # features/teacher_manages_instructional_materials.feature:26 | |
When I follow "Assign Materials" # features/step_definitions/web_steps.rb:88 | |
Then I should be on the search instructional materials page # features/step_definitions/web_steps.rb:231 | |
Scenario: Teacher should see investigation tabs with the first tab selected # features/teacher_manages_instructional_materials.feature:30 | |
Then I should see "Radioactivity" within the tab block for Instructional Materials # features/step_definitions/web_steps.rb:35 | |
And I should see "Plant reproduction" within the tab block for Instructional Materials # features/step_definitions/web_steps.rb:35 | |
And I should see "Aerodynamics" within the tab block for Instructional Materials # features/step_definitions/web_steps.rb:35 | |
And I should see "Sequence: Radioactivity" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should see activity name in tab # features/teacher_manages_instructional_materials.feature:37 | |
Then I should see "Algebra" within the tab block for Instructional Materials # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher should be able to switch tabs # features/teacher_manages_instructional_materials.feature:41 | |
When I click the tab of Instructional Materials with text "Plant reproduction" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:11 | |
Then I should see "Sequence: Plant reproduction" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should be able to hide activities and their "Run Activity" buttons # features/teacher_manages_instructional_materials.feature:46 | |
When I follow "Hide Activities" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Show Activities" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should be able to run the report # features/teacher_manages_instructional_materials.feature:51 | |
When I click the tab of Instructional Materials with text "Radioactivity" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:11 | |
And I follow "Run Report" # features/step_definitions/web_steps.rb:88 | |
Then A report window opens of offering "Radioactivity" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:2 | |
Scenario: Teacher should be able to see all students assigned to the class # features/teacher_manages_instructional_materials.feature:56 | |
Then I should see "Doe, Dave" # features/step_definitions/web_steps.rb:149 | |
And I should see "Smith, Chuck" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should be able to see student attempt progress bars # features/teacher_manages_instructional_materials.feature:61 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| dave | My Class | Plant reproduction | b | a | | |
| dave | My Class | Plant reproduction | image_q | Y | | |
And I am on Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:66 | |
And I click the tab of Instructional Materials with text "Plant reproduction" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:11 | |
Then I should see progress bars for the students # features/step_definitions/teacher_manages_instructional_materials_steps.rb:33 | |
Scenario: Teacher should see a message if no materials are assigned to this class. # features/teacher_manages_instructional_materials.feature:70 | |
When I go to Instructional Materials page for "Chemistry" # features/step_definitions/web_steps.rb:70 | |
Then I should see "No materials assigned to this class." # features/step_definitions/web_steps.rb:149 | |
Scenario: Teacher should not get an error if no activities are present # features/teacher_manages_instructional_materials.feature:74 | |
When the following offerings exist # features/step_definitions/teacher_saves_edited_class_steps.rb:49 | |
| name | class | | |
| Lumped circuit abstraction | My Class | | |
And I go to Instructional Materials page for "Mathematics" # features/step_definitions/web_steps.rb:70 | |
Then I should see "Sequence: Lumped circuit abstraction" # features/step_definitions/web_steps.rb:149 | |
Scenario: Teacher should see a message if no students are present # features/teacher_manages_instructional_materials.feature:81 | |
When I go to Instructional Materials page for "Class_with_no_students" # features/step_definitions/web_steps.rb:70 | |
Then I should see "No students have registered for this class yet" # features/step_definitions/web_steps.rb:149 | |
Scenario: Teacher should be able to run investigation as teacher # features/teacher_manages_instructional_materials.feature:85 | |
When I follow "Run as Teacher" for the investigation "Aerodynamics" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:54 | |
Then I receive a file for download with a filename like "_investigation_" # features/step_definitions/web_steps.rb:289 | |
Scenario: Teacher should be able to run investigation as student # features/teacher_manages_instructional_materials.feature:89 | |
When I follow "Run as Student" for the investigation "Aerodynamics" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:54 | |
Then I receive a file for download with a filename like "_investigation_" # features/step_definitions/web_steps.rb:289 | |
Scenario: Teacher should be able to run the activity # features/teacher_manages_instructional_materials.feature:93 | |
When I follow "Run Activity" for the activity "Air activity" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:60 | |
Then I receive a file for download with a filename like "_activity_" # features/step_definitions/web_steps.rb:289 | |
@javascript | |
Scenario: Teacher should not see teacher only activity in the activity table # features/teacher_manages_instructional_materials.feature:98 | |
When I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I click the tab of Instructional Materials with text "Aerodynamics" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:11 | |
Then I should not see "Aeroplane" within the activity table # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher should see teacher only activity # features/teacher_manages_instructional_materials.feature:104 | |
When I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I click the tab of Instructional Materials with text "Aerodynamics" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:11 | |
Then I should see "Aeroplane (teacher only)" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should see a message if activity has not been attempted by any student # features/teacher_manages_instructional_materials.feature:110 | |
And I follow "Air activity" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Reporting is unavailable until at least one student has started this activity" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher should see a message if student has not attempted any activity # features/teacher_manages_instructional_materials.feature:115 | |
And I follow "Doe, Dave" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Reporting is unavailable until at least one activity is started by this student" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher should see a message if student has not attempted corresponding activity # features/teacher_manages_instructional_materials.feature:120 | |
And I click progress bar on the instructional materials page for the student "dave" and activity "Air activity" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:66 | |
Then I should see "Reporting is unavailable until the selected activity is started by this student" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher should see the score for a material with it enabled # features/teacher_manages_instructional_materials.feature:125 | |
Given the investigation "Plant reproduction" shows scores # features/step_definitions/investigations_steps.rb:127 | |
When I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I click the tab of Instructional Materials with text "Plant reproduction" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:11 | |
Then I should see "Score" # features/step_definitions/web_steps.rb:149 | |
Feature: Teacher manages a mix instructional materials of a class | |
As a teacher | |
I want to manage my instructional materials of a class | |
In order to make my class more effective | |
Background: # features/teacher_manages_mixed_materials.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And the mixed runnable types class exists # features/step_definitions/teacher_manages_class_steps.rb:95 | |
Validation failed: Url must be a valid url (ActiveRecord::RecordInvalid) | |
./lib/mock_data/mixed_runnable_type_class.rb:14:in `load_mixed_runnable_type_class' | |
./features/step_definitions/teacher_manages_class_steps.rb:97:in `/^the mixed runnable types class exists$/' | |
features/teacher_manages_mixed_materials.feature:10:in `And the mixed runnable types class exists' | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
Scenario: Teacher can view materials page for class with multiple runnable types # features/teacher_manages_mixed_materials.feature:13 | |
When I go to the Instructional Materials page for "Mixed Runnable Types" # features/step_definitions/web_steps.rb:70 | |
Then I should see "Sample" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher can run a report for each material # features/teacher_manages_mixed_materials.feature:18 | |
When I go to the Instructional Materials page for "Mixed Runnable Types" # features/step_definitions/web_steps.rb:70 | |
Then I can view a report for materials in the mixed runnable type class # features/step_definitions/teacher_manages_class_steps.rb:101 | |
Feature: Teacher navigates using left pane | |
As a teacher | |
I want to visit various pages using left pane | |
In order to make navigation more effective | |
Background: # features/teacher_navigates_classes_using_left_pane.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I login with username: teacher # features/step_definitions/global_steps.rb:78 | |
Scenario: Teachers can see their class name # features/teacher_navigates_classes_using_left_pane.feature:13 | |
Then I should see "My Class" # features/step_definitions/web_steps.rb:149 | |
Scenario: Teacher visits Student Roster page # features/teacher_navigates_classes_using_left_pane.feature:17 | |
When I follow "My Class" # features/step_definitions/web_steps.rb:88 | |
And I follow "Student Roster" # features/step_definitions/web_steps.rb:88 | |
Then I should be on "Student Roster" page for "My Class" # features/step_definitions/web_steps.rb:231 | |
Scenario: Teacher visits Class Setup page # features/teacher_navigates_classes_using_left_pane.feature:23 | |
When I follow "My Class" # features/step_definitions/web_steps.rb:88 | |
And I follow "Class Setup" # features/step_definitions/web_steps.rb:88 | |
Then I should be on the class edit page for "My Class" # features/step_definitions/web_steps.rb:231 | |
Scenario: Teacher visits Materials page # features/teacher_navigates_classes_using_left_pane.feature:29 | |
When I follow "My Class" # features/step_definitions/web_steps.rb:88 | |
And I follow "Materials" # features/step_definitions/web_steps.rb:88 | |
Then I should be on Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:231 | |
Scenario: Teacher visits Full Status page # features/teacher_navigates_classes_using_left_pane.feature:35 | |
When I follow "My Class" # features/step_definitions/web_steps.rb:88 | |
And I follow "Full Status" # features/step_definitions/web_steps.rb:88 | |
Then I should be on the full status page for "My Class" # features/step_definitions/web_steps.rb:231 | |
Feature: Teacher registers to use the portal | |
ITSI-SU requires that teachers self-register. | |
As a potential teacher | |
I want to create a teacher account | |
So that I can use the investigations portal as a teacher | |
Background: # features/teacher_registers.feature:9 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: Anonymous user signs up as teacher # features/teacher_registers.feature:14 | |
Given I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
And I press "Sign up as a teacher" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Teacher Signup Page" # features/step_definitions/web_steps.rb:149 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Teacher | | |
| user_email | [email protected] | | |
| user_login | login | | |
| user_password | password | | |
| user_password_confirmation | password | | |
And I select a school from the list of schools # features/step_definitions/teacher_steps.rb:1 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Thanks for signing up!" # features/step_definitions/web_steps.rb:149 | |
And "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51 | |
When I open the email # features/step_definitions/email_steps.rb:73 | |
Then I should see "Please activate your new account" in the email subject # features/step_definitions/email_steps.rb:89 | |
When I click the first link in the email # features/step_definitions/email_steps.rb:119 | |
Then I should see "Your account was successfully confirmed. You are now signed in." # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Anonymous user signs up as teacher with form errors # features/teacher_registers.feature:37 | |
Given I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
And I press "Sign up as a teacher" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Teacher Signup Page" # features/step_definitions/web_steps.rb:149 | |
When I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "10 errors prohibited this user from being saved" # features/step_definitions/web_steps.rb:149 | |
Then I press "OK" # features/step_definitions/web_steps.rb:78 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Teacher | | |
| user_email | [email protected] | | |
| user_login | login | | |
| user_password | password | | |
| user_password_confirmation | password | | |
And I select a school from the list of schools # features/step_definitions/teacher_steps.rb:1 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see " Thanks for signing up!" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Sorry, there was an error creating your account" # features/step_definitions/web_steps.rb:167 | |
Feature: Teacher removes a student | |
In order to keep correct students assigned to the class | |
As a teacher | |
I should be able to remove a student | |
Background: # features/teacher_removes_student.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: Teacher removes a student # features/teacher_removes_student.feature:13 | |
When the student "student" belongs to class "Class_with_no_students" # features/step_definitions/student_steps.rb:28 | |
And I login with username: teacher password: password # features/step_definitions/global_steps.rb:83 | |
And I am on "Student Roster" page for "Class_with_no_students" # features/step_definitions/web_steps.rb:66 | |
And I accept the upcoming javascript confirm box # features/step_definitions/web_steps.rb:137 | |
When I follow "Remove Student" # features/step_definitions/web_steps.rb:88 | |
Then I should see "No students registered for this class yet." # features/step_definitions/web_steps.rb:149 | |
Feature: Teacher reorders materials assigned to the class | |
In order to present materials in a logical order to students | |
the teacher | |
should be able reorder them | |
Background: # features/teacher_reorders_materials.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: Teacher reorders materials and students sees them in the correct order # features/teacher_reorders_materials.feature:11 | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I am on the class edit page for "Mathematics" # features/step_definitions/web_steps.rb:66 | |
And I move investigation named "Non Linear Devices" to the top of the list # features/step_definitions/teacher_saves_edited_class_steps.rb:22 | |
And I press "Save" # features/step_definitions/web_steps.rb:78 | |
When I login with username: taylor # features/step_definitions/global_steps.rb:78 | |
And I follow "Mathematics" # features/step_definitions/web_steps.rb:88 | |
And I should see "Lumped circuit abstraction" # features/step_definitions/web_steps.rb:149 | |
And I should see "Non Linear Devices" # features/step_definitions/web_steps.rb:149 | |
And I should see "Static discipline" # features/step_definitions/web_steps.rb:149 | |
Then "Non Linear Devices" should appear before "Static discipline" # features/step_definitions/global_steps.rb:109 | |
@javascript | |
Scenario: Teacher reorders materials with the default class feature enabled # features/teacher_reorders_materials.feature:24 | |
Given the default class is created # features/step_definitions/portal_clazz_steps.rb:8 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
When I am on the class page for "Mathematics" # features/step_definitions/web_steps.rb:66 | |
And the Investigation "Lumped circuit abstraction" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And the Investigation "Static discipline" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And the Investigation "Non Linear Devices" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And I am on the class edit page for "Mathematics" # features/step_definitions/web_steps.rb:66 | |
And I move investigation named "Non Linear Devices" to the top of the list # features/step_definitions/teacher_saves_edited_class_steps.rb:22 | |
And I press "Save" # features/step_definitions/web_steps.rb:78 | |
When I login with username: taylor # features/step_definitions/global_steps.rb:78 | |
And I follow "Mathematics" # features/step_definitions/web_steps.rb:88 | |
And I should see "Lumped circuit abstraction" # features/step_definitions/web_steps.rb:149 | |
And I should see "Non Linear Devices" # features/step_definitions/web_steps.rb:149 | |
And I should see "Static discipline" # features/step_definitions/web_steps.rb:149 | |
Then "Non Linear Devices" should appear before "Static discipline" # features/step_definitions/global_steps.rb:109 | |
And "Static discipline" should appear before "Lumped circuit abstraction" # features/step_definitions/global_steps.rb:109 | |
Feature: Teacher resets password | |
In order to log in after I forgot my old password | |
As a teacher | |
I want to reset my password | |
Background: # features/teacher_resets_password.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: Anonymous user signs up as teacher # features/teacher_resets_password.feature:12 | |
Given I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
When I go to the pick signup page # features/step_definitions/web_steps.rb:70 | |
And I press "Sign up as a teacher" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Teacher Signup Page" # features/step_definitions/web_steps.rb:149 | |
When I fill in the following: # features/step_definitions/web_steps.rb:111 | |
| user_first_name | Example | | |
| user_last_name | Teacher | | |
| user_email | [email protected] | | |
| user_login | login | | |
| user_password | password | | |
| user_password_confirmation | password | | |
And I select a school from the list of schools # features/step_definitions/teacher_steps.rb:1 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Thanks for signing up!" # features/step_definitions/web_steps.rb:149 | |
And "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51 | |
When I open the email # features/step_definitions/email_steps.rb:73 | |
Then I should see "Please activate your new account" in the email subject # features/step_definitions/email_steps.rb:89 | |
When I click the first link in the email # features/step_definitions/email_steps.rb:119 | |
Then I should see "Your account was successfully confirmed. You are now signed in." # features/step_definitions/web_steps.rb:149 | |
Given I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
And I follow "Forgot login?" # features/step_definitions/web_steps.rb:88 | |
When I fill in "login" with "login" within content box in change password page # features/step_definitions/web_steps.rb:35 | |
And I press "Submit" within content box in change password page # features/step_definitions/web_steps.rb:35 | |
Then I should see "A link to change your password has been sent to [email protected]." # features/step_definitions/web_steps.rb:149 | |
And "[email protected]" should receive an email # features/step_definitions/email_steps.rb:51 | |
And I open the email with subject "You have requested to change your password" # features/step_definitions/email_steps.rb:77 | |
When I click the first link in the email # features/step_definitions/email_steps.rb:119 | |
Then I should see "Please enter a new password and confirm it." # features/step_definitions/web_steps.rb:149 | |
And I fill in "password" with "password2" within content box in change password page # features/step_definitions/web_steps.rb:35 | |
And I fill in "confirm password" with "password2" within content box in change password page # features/step_definitions/web_steps.rb:35 | |
And I press "Submit" within content box in change password page # features/step_definitions/web_steps.rb:35 | |
Then I should see "Password for login was successfully updated." # features/step_definitions/web_steps.rb:149 | |
Feature: Teacher can reset a students password | |
So my student can log in | |
As a teacher | |
I want to reset their password | |
Background: # features/teacher_resets_student_password.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: Teacher can reset their students passwords # features/teacher_resets_student_password.feature:11 | |
Given the default class is created # features/step_definitions/portal_clazz_steps.rb:8 | |
And the student "student" is in the class "Class_with_no_students" # features/step_definitions/student_steps.rb:22 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I am on "Student Roster" page for "Class_with_no_students" # features/step_definitions/web_steps.rb:66 | |
Then I should see "Change Password" # features/step_definitions/web_steps.rb:149 | |
When I click "Change Password" # features/step_definitions/password_steps.rb:13 | |
Then I should see "You must set a new password" # features/step_definitions/web_steps.rb:149 | |
When I fill in "user_password" with "new_password" # features/step_definitions/web_steps.rb:92 | |
And I fill in "user_password_confirmation" with "new_password" # features/step_definitions/web_steps.rb:92 | |
And I press "Submit" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Class Name : Class_with_no_students" # features/step_definitions/web_steps.rb:149 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
And I login with username: student password: new_password # features/step_definitions/global_steps.rb:83 | |
Then I should see "Signed in successfully." # features/step_definitions/web_steps.rb:149 | |
Feature: Teacher runs student jnlps | |
In order to see the work of an individual student | |
As a teacher | |
I want to run a students jnlp | |
Background: # features/teacher_runs_student_jnlp.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And the student "student" belongs to class "Class_with_no_assignment" # features/step_definitions/student_steps.rb:28 | |
And the investigation "Aerodynamics" is assigned to the class "Class_with_no_assignment" # features/step_definitions/assignment_steps.rb:20 | |
And the student "student" has run the investigation "Aerodynamics" in the class "Class_with_no_assignment" # features/step_definitions/researcher_report_steps.rb:158 | |
And I login with username: teacher # features/step_definitions/global_steps.rb:78 | |
Scenario: Teacher runs student jnlp from Class Page # features/teacher_runs_student_jnlp.feature:14 | |
When I run the student's investigation for "Class_with_no_assignment" # features/step_definitions/teacher_steps.rb:61 | |
Then a jnlp file is downloaded # features/step_definitions/downloaded_file_steps.rb:11 | |
And the jnlp file for "Aerodynamics" has a read-only configuration for the student and offering # features/step_definitions/downloaded_file_steps.rb:58 | |
Feature: Teacher edits and saves class information | |
As a teacher | |
I want to edit my classes | |
In order to keep my classes updated | |
Background: # features/teacher_saves_edited_class.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And the classes "Mathematics" are in a school named "VJTI" # features/step_definitions/portal_clazz_steps.rb:33 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I am on "the class edit page for "Mathematics"" # features/step_definitions/web_steps.rb:66 | |
@javascript | |
Scenario: Teacher can see all the teachers which are in the class # features/teacher_saves_edited_class.feature:16 | |
Then I should see "Peterson Taylor" # features/step_definitions/web_steps.rb:149 | |
And I should see "John Nash" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher can see all the teachers which are not in the class # features/teacher_saves_edited_class.feature:22 | |
When I follow Add Another Teacher drop down # features/step_definitions/teacher_saves_edited_class_steps.rb:69 | |
Then I should see "Fernandez, A. (albert)" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher can add teacher from the class edit page # features/teacher_saves_edited_class.feature:28 | |
When I select "Fernandez, A. (albert)" from the html dropdown "teacher_id_selector" # features/step_definitions/web_steps.rb:268 | |
And I press "Add" # features/step_definitions/web_steps.rb:78 | |
Then I should see "Albert Fernandez" # features/step_definitions/web_steps.rb:149 | |
@dialog @javascript | |
Scenario: Teacher can remove teacher from the class edit page # features/teacher_saves_edited_class.feature:36 | |
When I follow remove image for the teacher name "John Nash" # features/step_definitions/teacher_saves_edited_class_steps.rb:63 | |
And accept the dialog # features/step_definitions/global_steps.rb:168 | |
Then I should not see "John Nash" # features/step_definitions/web_steps.rb:167 | |
expected #has_no_content?("John Nash") to return true, got false (RSpec::Expectations::ExpectationNotMetError) | |
./features/step_definitions/web_steps.rb:169:in `/^(?:|I )should not see "([^"]*)"$/' | |
features/teacher_saves_edited_class.feature:39:in `Then I should not see "John Nash"' | |
@javascript | |
Scenario: Teacher saves class setup information # features/teacher_saves_edited_class.feature:43 | |
When I fill in Class Name with "Basic Electronics" # features/step_definitions/teacher_saves_edited_class_steps.rb:2 | |
And I select Term "Fall" from the drop down # features/step_definitions/teacher_saves_edited_class_steps.rb:14 | |
And I fill Description with "This is a biology class" # features/step_definitions/teacher_saves_edited_class_steps.rb:6 | |
And I fill Class Word with "BETRX" # features/step_definitions/teacher_saves_edited_class_steps.rb:10 | |
And I uncheck investigation with label "Lumped circuit abstraction" # features/step_definitions/teacher_saves_edited_class_steps.rb:18 | |
And I move investigation named "Non Linear Devices" to the top of the list # features/step_definitions/teacher_saves_edited_class_steps.rb:22 | |
And I press "Save" # features/step_definitions/web_steps.rb:78 | |
Then I should be on Instructional Materials page for "Basic Electronics" # features/step_definitions/web_steps.rb:231 | |
And I should see "Class was successfully updated." # features/step_definitions/web_steps.rb:149 | |
Scenario: Teacher can see message if no materials are in the class # features/teacher_saves_edited_class.feature:55 | |
When the following teacher and class mapping exists: # features/step_definitions/teacher_steps.rb:46 | |
| class_name | teacher | | |
| Class_with_no_assignment | peterson | | |
And I am logged in with the username peterson # features/step_definitions/global_steps.rb:74 | |
And I am on "the class edit page for "Class_with_no_assignment"" # features/step_definitions/web_steps.rb:66 | |
Then I should see "No materials assigned to this class." # features/step_definitions/web_steps.rb:149 | |
Feature: Teacher can search instructional materials grouped by material type, sort and preview them. | |
As a teacher | |
I want to search instructional materials grouped by material type, sort and preview materials | |
In order to find suitable study materials for the class | |
Background: # features/teacher_searches_groups_and_previews_instructional_materials.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And "differential calculus" has been updated recently # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:5 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
And The materials have been indexed # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:1 | |
Given the default project has include external activities enabled # features/step_definitions/default_project_and_jnlps_steps.rb:68 | |
And the following external activities exist: # features/step_definitions/external_activity_steps.rb:1 | |
| name | user | url | | |
| Google Home | author | http://google.com | | |
And I login with username: teacher password: password # features/step_definitions/global_steps.rb:83 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
@javascript | |
Scenario: Teacher should be on materials preview page to assign materials # features/teacher_searches_groups_and_previews_instructional_materials.feature:21 | |
When I follow the "Assign to a Class" link for the investigation "differential calculus" # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:113 | |
Then I should be on the preview investigation page for the investigation "differential calculus" # features/step_definitions/web_steps.rb:231 | |
And I should see "differential calculus" # features/step_definitions/web_steps.rb:149 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
And I should see "Instructional Materials" # features/step_definitions/web_steps.rb:149 | |
And I follow the "Assign to a Class" link for the activity "differential calculus" # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:113 | |
Then I should be on the preview activity page for the activity "differential calculus" # features/step_definitions/web_steps.rb:231 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
And I should see "Instructional Materials" # features/step_definitions/web_steps.rb:149 | |
And I follow investigation link "differential calculus" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:121 | |
Then I should be on the preview investigation page for the investigation "differential calculus" # features/step_definitions/web_steps.rb:231 | |
And I should see "differential calculus" # features/step_definitions/web_steps.rb:149 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
And I should see "Instructional Materials" # features/step_definitions/web_steps.rb:149 | |
And I follow activity link "differential calculus" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:121 | |
Then I should be on the preview activity page for the activity "differential calculus" # features/step_definitions/web_steps.rb:231 | |
And I should see "differential calculus" # features/step_definitions/web_steps.rb:149 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
When I follow the "Show more details..." link for the investigation "differential calculus" # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:113 | |
Then I should be on the preview investigation page for the investigation "differential calculus" # features/step_definitions/web_steps.rb:231 | |
And I should see "differential calculus" # features/step_definitions/web_steps.rb:149 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
And I follow the "Show more details..." link for the activity "differential calculus" # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:113 | |
Then I should be on the preview activity page for the activity "differential calculus" # features/step_definitions/web_steps.rb:231 | |
And I should see "differential calculus" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should be on materials preview page to preview materials # features/teacher_searches_groups_and_previews_instructional_materials.feature:50 | |
When I follow the "Preview" link for the investigation "differential calculus" # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:113 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
Then I should see "As Teacher" # features/step_definitions/web_steps.rb:149 | |
And I should see "As Student" # features/step_definitions/web_steps.rb:149 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
And I should see "Instructional Materials" # features/step_definitions/web_steps.rb:149 | |
And I follow the "Preview" link for the activity "differential calculus" # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:113 | |
Then I should see "As Teacher" # features/step_definitions/web_steps.rb:149 | |
And I should see "As Student" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher can see classes in which materials are assigned on the search page # features/teacher_searches_groups_and_previews_instructional_materials.feature:62 | |
When the Investigation "differential calculus" is assigned to the class "Physics" # features/step_definitions/assignment_steps.rb:20 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
And I search for "differential calculus" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:41 | |
Then I should see "(Assigned to Physics)" # features/step_definitions/web_steps.rb:149 | |
expected there to be content "(Assigned to Physics)" in "Cross Project Portal\nWelcome John Nash\nMy Preferences | Logout\nHOME\nABOUT\nAUTHORING\nBROWSE INSTRUCTIONAL MATERIALS\nInstructional Materials\nSEARCH\n-\nHide Filters\nSort By\nOldest\nNewest\nAlphabetical\nPopularity\nScientific Domain\n244\nGrade\nAll Grades\n5-6\n7-8\n9-11\nExt\nMaterial Type\nSequence\nActivity\n\nMaterial Properties\nRuns In Browser\nRequires Download\n\nAuthorship\nOfficial\nAuthored by Community\nSensors\nNo Sensors Required\nSelect all | none\nCO2\nColorimeter\nConductivity\nCurrent (+/- 0.6A)\nCurrent (+/- 10A)\nEKG\nForce (50N)\nForce (5N)\nLight\nMagnetic Field\nOxygen Gas\npH\nPosition\nPressure\nRaw Data\nRaw Voltage\nRelative Humidity\nSalinity\nSound Level\nTemperature\nUVA Intensity\nUVB Intensity\nVoltage\n1 sequence, 1 activity matching search term \"differential calculus\" and selected criteria\nSequences\nDisplaying 1 sequence\nrequires download official\ndifferential calculus\nBy joe user\nPreview ▼\nAssign to a Class\ndifferential calculus is a great subject Show more details...\nUsed in 1 class.\n\nActivities\nDisplaying 1 activity\nrequires download official\ndifferential calculus from sequence \"differential calculus\"\nBy joe user\nPreview ▼\nAssign to a Class\ndifferential calculus is a great subject Show more details...\nUsed in 1 class.\n\n\nRecent Activity\nMy Class\nPhysics\nMathematics\nChemistry\nBiology\nGeography\nMechanics\nClass_with_no_assignment\nClass_with_no_students\nClass_with_no_attempts\nCreate a Class\nManage Classes\nCopyright © 2014 Concord Consortium. All rights reserved.\nQuestions/Feedback: Send us an email" (RSpec::Expectations::ExpectationNotMetError) | |
./features/step_definitions/web_steps.rb:151:in `/^(?:|I )should see "([^"]*)"$/' | |
features/teacher_searches_groups_and_previews_instructional_materials.feature:65:in `Then I should see "(Assigned to Physics)"' | |
And the Activity "Fluid Mechanics" is assigned to the class "Physics" # features/step_definitions/assignment_steps.rb:20 | |
And I search for "Fluid Mechanics" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:41 | |
Then I should see "(Assigned to Physics)" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher can see number classes to which investigations are assigned on the search page # features/teacher_searches_groups_and_previews_instructional_materials.feature:72 | |
When the Investigation "differential calculus" is assigned to the class "Physics" # features/step_definitions/assignment_steps.rb:20 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
And the Investigation "differential calculus" is assigned to the class "Geography" # features/step_definitions/assignment_steps.rb:20 | |
And the Investigation "differential calculus" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Used in 3 classes." # features/step_definitions/web_steps.rb:149 | |
And I am on the the preview investigation page for the investigation "differential calculus" # features/step_definitions/web_steps.rb:66 | |
Then I should see "Used in 3 classes." # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher can see number classes to which activities are assigned on the search page # features/teacher_searches_groups_and_previews_instructional_materials.feature:83 | |
When the Investigation "Geometry" is assigned to the class "Physics" # features/step_definitions/assignment_steps.rb:20 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
When the Activity "parallel lines" is assigned to the class "Physics" # features/step_definitions/assignment_steps.rb:20 | |
And the Activity "parallel lines" is assigned to the class "Geography" # features/step_definitions/assignment_steps.rb:20 | |
And the Activity "parallel lines" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
And I search for "parallel lines" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:41 | |
Then I should see "Used in 4 classes." # features/step_definitions/web_steps.rb:149 | |
And I am on the the preview activity page for the activity "parallel lines" # features/step_definitions/web_steps.rb:66 | |
Then I should see "Used in 4 classes." # features/step_definitions/web_steps.rb:149 | |
Scenario: Anonymous user can preview investigation # features/teacher_searches_groups_and_previews_instructional_materials.feature:95 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
And I go to the search instructional materials page # features/step_definitions/web_steps.rb:70 | |
Then I should preview investigation "Geometry" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:25 | |
Scenario: Anonymous user can preview activity # features/teacher_searches_groups_and_previews_instructional_materials.feature:101 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
And I go to the search instructional materials page # features/step_definitions/web_steps.rb:70 | |
Then I should preview activity "differential calculus" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:33 | |
@javascript | |
Scenario: Teacher can see search suggestions # features/teacher_searches_groups_and_previews_instructional_materials.feature:108 | |
When I enter search text "Radioactivity" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:48 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
Then I should see search suggestions for "Radioactivity" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:54 | |
@javascript | |
Scenario: Teacher can search instructional materials # features/teacher_searches_groups_and_previews_instructional_materials.feature:114 | |
When I search for "Venn Diagram" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:41 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
Then I should see search results for "Venn Diagram" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:59 | |
@javascript | |
Scenario: Teacher can sort search results for investigations on the basis of creation date # features/teacher_searches_groups_and_previews_instructional_materials.feature:131 | |
When I create investigations "differential calculus" before "integral calculus" by date # features/step_definitions/investigations_steps.rb:477 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
And I search for "calculus" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:41 | |
And I follow "Oldest" in Sort By on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:64 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then "integral calculus" should appear before "differential calculus" # features/step_definitions/global_steps.rb:109 | |
And I follow "Newest" in Sort By on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:64 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And "differential calculus" should appear before "integral calculus" # features/step_definitions/global_steps.rb:109 | |
@javascript | |
Scenario: Teacher can sort search results for activities on the basis of creation date # features/teacher_searches_groups_and_previews_instructional_materials.feature:143 | |
When I create activities "parallel lines" before "graphs and lines" by date # features/step_definitions/activity_steps.rb:39 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
And I search for "lines" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:41 | |
And I follow "Oldest" in Sort By on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:64 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then "graphs and lines" should appear before "parallel lines" # features/step_definitions/global_steps.rb:109 | |
And I follow "Newest" in Sort By on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:64 | |
And I should wait 4 seconds # features/step_definitions/global_steps.rb:160 | |
Then "parallel lines" should appear before "graphs and lines" # features/step_definitions/global_steps.rb:109 | |
@javascript | |
Scenario: Teacher can sort search investigations on the basis of popularity # features/teacher_searches_groups_and_previews_instructional_materials.feature:155 | |
When the Investigation "differential calculus" is assigned to the class "Physics" # features/step_definitions/assignment_steps.rb:20 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
And the Investigation "differential calculus" is assigned to the class "Geography" # features/step_definitions/assignment_steps.rb:20 | |
And the Investigation "differential calculus" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And the Investigation "integral calculus" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And the Investigation "integral calculus" is assigned to the class "Geography" # features/step_definitions/assignment_steps.rb:20 | |
And I follow "Popularity" in Sort By on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:64 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And I search for "calculus" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:41 | |
Then "differential calculus" should appear before "integral calculus" # features/step_definitions/global_steps.rb:109 | |
@javascript | |
Scenario: Teacher can sort search activities on the basis of popularity # features/teacher_searches_groups_and_previews_instructional_materials.feature:168 | |
When the Activity "intersecting lines" is assigned to the class "Physics" # features/step_definitions/assignment_steps.rb:20 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
And the Activity "intersecting lines" is assigned to the class "Geography" # features/step_definitions/assignment_steps.rb:20 | |
And the Activity "intersecting lines" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And the Activity "parallel lines" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And the Activity "parallel lines" is assigned to the class "Geography" # features/step_definitions/assignment_steps.rb:20 | |
And I follow "Popularity" in Sort By on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:64 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then "intersecting lines" should appear before "parallel lines" # features/step_definitions/global_steps.rb:109 | |
expected there to be content "intersecting lines" in "Cross Project Portal\nWelcome John Nash\nMy Preferences | Logout\nHOME\nABOUT\nAUTHORING\nBROWSE INSTRUCTIONAL MATERIALS\nInstructional Materials\nSEARCH\n-\nHide Filters\nSort By\nOldest\nNewest\nAlphabetical\nPopularity\nScientific Domain\n254\nGrade\nAll Grades\n5-6\n7-8\n9-11\nExt\nMaterial Type\nSequence\nActivity\n\nMaterial Properties\nRuns In Browser\nRequires Download\n\nAuthorship\nOfficial\nAuthored by Community\nSensors\nNo Sensors Required\nSelect all | none\nCO2\nColorimeter\nConductivity\nCurrent (+/- 0.6A)\nCurrent (+/- 10A)\nEKG\nForce (50N)\nForce (5N)\nLight\nMagnetic Field\nOxygen Gas\npH\nPosition\nPressure\nRaw Data\nRaw Voltage\nRelative Humidity\nSalinity\nSound Level\nTemperature\nUVA Intensity\nUVB Intensity\nVoltage\n10 sequences, 10 activities matching selected criteria\nSequences\nDisplaying sequences 1 - 10 of 26 in total\n← Previous 1 2 3 Next →\nrequires download official\nOldestInv\nBy John Nash\nPreview ▼\nAssign to a Class\nShow more details...\nNot used in any class.\nrequires download official\nMediumInv\nBy John Nash\nPreview ▼\nAssign to a Class\nShow more details...\nNot used in any class.\nrequires download official\ndraft g\nBy John Nash\nPreview ▼\nAssign to a Class\nShow more details...\nNot used in any class.\nrequires download official\nb Investigation\nBy John Nash\nPreview ▼\nAssign to a Class\nShow more details...\nNot used in any class.\nrequires download official\na Investigation\nBy John Nash\nPreview ▼\nAssign to a Class\nShow more details...\nNot used in any class.\nrequires download official\nc Investigation\nBy John Nash\nPreview ▼\nAssign to a Class\nShow more details...\nNot used in any class.\nrequires download official\nd Investigation\nBy John Nash\nPreview ▼\nAssign to a Class\nShow more details...\nNot used in any class.\nrequires download official\ne Investigation\nBy John Nash\nPreview ▼\nAssign to a Class\nShow more details...\nNot used in any class.\nrequires download official\nf Investigation\nBy John Nash\nPreview ▼\nAssign to a Class\nShow more details...\nNot used in any class.\nrequires download official\nNewestInv\nBy John Nash\nPreview ▼\nAssign to a Class\nShow more details...\nNot used in any class.\n\n← Previous 1 2 3 Next →\nActivities\nDisplaying activities 1 - 10 of 32 in total\n← Previous 1 2 3 4 Next →\nrequires download official\nfrom sequence \"WithLinksInv\"\nBy joe user\nPreview ▼\nAssign to a Class\nShow more details...\nNot used in any class.\nRequired sensor(s): Temperature\nrequires download official\nAlgebra\nBy John Nash\nPreview ▼\nAssign to a Class\nAlgebra Show more details...\nUsed in 2 classes.\nrequires download official\nRadioactivity from sequence \"Radioactivity\"\nBy joe user\nPreview ▼\nAssign to a Class\nNuclear Energy is a great subject Show more details...\nUsed in 1 class.\nrequires download official\nLumped circuit abstraction from sequence \"Lumped circuit abstraction\"\nBy joe user\nPreview ▼\nAssign to a Class\nLCA is a great subject Show more details...\nUsed in 1 class.\nrequires download official\nStatic discipline from sequence \"Static discipline\"\nBy joe user\nPreview ▼\nAssign to a Class\nSD is a great subject Show more details...\nUsed in 1 class.\nrequires download official\nNon Linear Devices from sequence \"Non Linear Devices\"\nBy joe user\nPreview ▼\nAssign to a Class\nNLD is a great subject Show more details...\nUsed in 1 class.\nrequires download official\nRadioactive decay from sequence \"Radioactivity\"\nBy joe user\nPreview ▼\nAssign to a Class\nNuclear Energy is a great material Show more details...\nUsed in 1 class.\nrequires download official\nGamma Rays from sequence \"Radioactivity\"\nBy joe user\nPreview ▼\nAssign to a Class\nGamma Rays is a great material Show more details...\nUsed in 1 class.\nrequires download official\nSet Theory from sequence \"Set Theory\"\nBy joe user\nPreview ▼\nAssign to a Class\nSet Theory is a great subject Show more details...\nNot used in any class.\nrequires download official\nMechanics from sequence \"Mechanics\"\nBy joe user\nPreview ▼\nAssign to a Class\nMechanics is a great subject Show more details...\nNot used in any class.\n\n← Previous 1 2 3 4 Next →\n\nRecent Activity\nMy Class\nPhysics\nMathematics\nChemistry\nBiology\nGeography\nMechanics\nClass_with_no_assignment\nClass_with_no_students\nClass_with_no_attempts\nCreate a Class\nManage Classes\nCopyright © 2014 Concord Consortium. All rights reserved.\nQuestions/Feedback: Send us an email" (RSpec::Expectations::ExpectationNotMetError) | |
./features/step_definitions/global_steps.rb:112:in `/^"(.*)" should appear before "(.*)"$/' | |
features/teacher_searches_groups_and_previews_instructional_materials.feature:176:in `Then "intersecting lines" should appear before "parallel lines"' | |
@javascript | |
Scenario: Teacher should be able to see grouped search results on the basis of material type # features/teacher_searches_groups_and_previews_instructional_materials.feature:180 | |
When I enter search text "Geometry" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:48 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
And I uncheck "Sequence" # features/step_definitions/web_steps.rb:125 | |
And I check "Activity" # features/step_definitions/web_steps.rb:121 | |
And I press "GO" # features/step_definitions/web_steps.rb:78 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And I should see "Geometry" # features/step_definitions/web_steps.rb:149 | |
And I should see "Triangle is a great subject" # features/step_definitions/web_steps.rb:149 | |
And I should see "Triangle is a great material" # features/step_definitions/web_steps.rb:149 | |
Then I should not see "Radioactivity" # features/step_definitions/web_steps.rb:167 | |
When I enter search text "Radioactivity" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:48 | |
And I check "Sequence" # features/step_definitions/web_steps.rb:121 | |
And I uncheck "Activity" # features/step_definitions/web_steps.rb:125 | |
And I press "GO" # features/step_definitions/web_steps.rb:78 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should see "Radioactivity" # features/step_definitions/web_steps.rb:149 | |
And I should see "Nuclear Energy is a great subject" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Nuclear Energy is a great material" # features/step_definitions/web_steps.rb:167 | |
And I should not see "Geometry" # features/step_definitions/web_steps.rb:167 | |
@javascript | |
Scenario: Search results should be paginated # features/teacher_searches_groups_and_previews_instructional_materials.feature:202 | |
When I search for "is a great" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:41 | |
updating Investigation differential calculus | |
updating Activity differential calculus | |
Then the search results should be paginated on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:70 | |
Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotVisibleError) | |
[remote server] file:///var/folders/lf/dqbwdpxx49d6k60bwxln926c0000gn/T/webdriver-profile20140227-49926-dxl3e3/extensions/[email protected]/components/command_processor.js:8225:in `fxdriver.preconditions.visible' | |
[remote server] file:///var/folders/lf/dqbwdpxx49d6k60bwxln926c0000gn/T/webdriver-profile20140227-49926-dxl3e3/extensions/[email protected]/components/command_processor.js:10861:in `DelayedCommand.prototype.checkPreconditions_' | |
[remote server] file:///var/folders/lf/dqbwdpxx49d6k60bwxln926c0000gn/T/webdriver-profile20140227-49926-dxl3e3/extensions/[email protected]/components/command_processor.js:10878:in `DelayedCommand.prototype.executeInternal_/h' | |
[remote server] file:///var/folders/lf/dqbwdpxx49d6k60bwxln926c0000gn/T/webdriver-profile20140227-49926-dxl3e3/extensions/[email protected]/components/command_processor.js:10883:in `DelayedCommand.prototype.executeInternal_' | |
[remote server] file:///var/folders/lf/dqbwdpxx49d6k60bwxln926c0000gn/T/webdriver-profile20140227-49926-dxl3e3/extensions/[email protected]/components/command_processor.js:10825:in `DelayedCommand.prototype.execute/<' | |
(eval):2:in `click_link' | |
./features/step_definitions/web_steps.rb:89:in `/^(?:|I )follow "([^"]*)"$/' | |
features/teacher_searches_groups_and_previews_instructional_materials.feature:204:in `Then the search results should be paginated on the search instructional materials page' | |
Feature: Teacher can see full status | |
As a teacher | |
I should see the full status of students | |
In order to make my class more effective | |
Background: # features/teacher_views_full_status.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
Mysql2::Error: This connection is in use by: #<Thread:0x007fadfffa2d78 sleep>: SELECT `maven_jnlp_maven_jnlp_servers`.* FROM `maven_jnlp_maven_jnlp_servers` WHERE `maven_jnlp_maven_jnlp_servers`.`host` = 'http://jnlp.concord.org' AND `maven_jnlp_maven_jnlp_servers`.`path` = '/dev3/org/concord/maven-jnlp/' LIMIT 1 (ActiveRecord::StatementInvalid) | |
./factories/maven_jnlp.rb:9:in `block in <top (required)>' | |
./spec/support/controller_helper.rb:51:in `generate_default_project_and_jnlps_with_factories' | |
./features/step_definitions/default_project_and_jnlps_steps.rb:20:in `/^The default project and jnlp resources exist using factories$/' | |
features/teacher_views_full_status.feature:8:in `Given The default project and jnlp resources exist using factories' | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I login with username: teacher password: password # features/step_definitions/global_steps.rb:83 | |
And I am on the full status page for "My Class" # features/step_definitions/web_steps.rb:66 | |
Scenario: Teacher can see all the offerings of the class # features/teacher_views_full_status.feature:14 | |
Then I should see "Atomic Energy" # features/step_definitions/web_steps.rb:149 | |
And I should see "Plant reproduction" # features/step_definitions/web_steps.rb:149 | |
And I should see "Algebra" # features/step_definitions/web_steps.rb:149 | |
Scenario: Teacher can see all the students assigned to the class # features/teacher_views_full_status.feature:20 | |
Then I should see "Doe, Dave" # features/step_definitions/web_steps.rb:149 | |
And I should see "Smith, Chuck" # features/step_definitions/web_steps.rb:149 | |
Scenario: Teacher can see all the activities when an offering is expanded except teacher only activity # features/teacher_views_full_status.feature:25 | |
When I expand the column "Atomic Energy" on the Full Status page # features/step_definitions/teacher_views_full_status_steps.rb:1 | |
And I should wait 5 seconds # features/step_definitions/global_steps.rb:160 | |
Then the column for "Atomic Energy" on the Full Status page should be expanded # features/step_definitions/teacher_views_full_status_steps.rb:6 | |
And I should see "Radio activity" # features/step_definitions/web_steps.rb:149 | |
And I should see "Nuclear Energy" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Aeroplane" # features/step_definitions/web_steps.rb:167 | |
@javascript | |
Scenario: Offering collapsed state is maintained across different parts of the application # features/teacher_views_full_status.feature:35 | |
When I expand the column "Atomic Energy" on the Full Status page # features/step_definitions/teacher_views_full_status_steps.rb:1 | |
And I should wait 5 seconds # features/step_definitions/global_steps.rb:160 | |
And the column for "Atomic Energy" on the Full Status page should be expanded # features/step_definitions/teacher_views_full_status_steps.rb:6 | |
And I should see "Radio activity" # features/step_definitions/web_steps.rb:149 | |
And I should see "Nuclear Energy" # features/step_definitions/web_steps.rb:149 | |
And I go to the class edit page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I am on the full status page for "My Class" # features/step_definitions/web_steps.rb:66 | |
Then the column for "Atomic Energy" on the Full Status page should be expanded # features/step_definitions/teacher_views_full_status_steps.rb:6 | |
@javascript | |
Scenario: Offering collapsed state is maintained across sessions # features/teacher_views_full_status.feature:47 | |
When I expand the column "Atomic Energy" on the Full Status page # features/step_definitions/teacher_views_full_status_steps.rb:1 | |
And I should wait 5 seconds # features/step_definitions/global_steps.rb:160 | |
And the column for "Atomic Energy" on the Full Status page should be expanded # features/step_definitions/teacher_views_full_status_steps.rb:6 | |
And I should see "Radio activity" # features/step_definitions/web_steps.rb:149 | |
And I should see "Nuclear Energy" # features/step_definitions/web_steps.rb:149 | |
And I log out # features/step_definitions/global_steps.rb:88 | |
And I login with username: teacher password: password # features/step_definitions/global_steps.rb:83 | |
And I am on the full status page for "My Class" # features/step_definitions/web_steps.rb:66 | |
Then the column for "Atomic Energy" on the Full Status page should be expanded # features/step_definitions/teacher_views_full_status_steps.rb:6 | |
Scenario: Anonymous user cannot see the full status page # features/teacher_views_full_status.feature:59 | |
When I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
And I try to go to the full status page for "My Class" # features/step_definitions/web_steps.rb:74 | |
Then I should be on "my home page" # features/step_definitions/web_steps.rb:231 | |
Scenario: Teacher can see a message if no materials are in the class # features/teacher_views_full_status.feature:65 | |
When the following teacher and class mapping exists: # features/step_definitions/teacher_steps.rb:46 | |
| class_name | teacher | | |
| Class_with_no_assignment | peterson | | |
And I am logged in with the username peterson # features/step_definitions/global_steps.rb:74 | |
And I am on the full status page for "Class_with_no_assignment" # features/step_definitions/web_steps.rb:66 | |
Then I should see "No materials assigned to this class." # features/step_definitions/web_steps.rb:149 | |
Feature: Teacher can search and assign instructional materials to a class | |
As a teacher | |
I should be able to preview and assign materials to a class | |
In order to provide study materials to the students from the class | |
Background: # features/teacher_views_materials_preview_page.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I login with username: teacher password: password # features/step_definitions/global_steps.rb:83 | |
@javascript | |
Scenario: Teacher should be able to preview materials activity as teacher and as a student # features/teacher_views_materials_preview_page.feature:14 | |
When I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I click link "Preview" for investigation "Mechanics" on the materials preview page # features/step_definitions/teacher_views_materials_preview_page.rb:1 | |
Then I should see "As Teacher" # features/step_definitions/web_steps.rb:149 | |
Then I should see "As Student" # features/step_definitions/web_steps.rb:149 | |
And I click link "Preview" for activity "Fluid Mechanics" on the materials preview page # features/step_definitions/teacher_views_materials_preview_page.rb:1 | |
Then I should see "As Teacher" # features/step_definitions/web_steps.rb:149 | |
Then I should see "As Student" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Anonymous user should see message for teacher only activity # features/teacher_views_materials_preview_page.feature:25 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
And I am on the the preview activity page for the activity "Aeroplane" # features/step_definitions/web_steps.rb:66 | |
Then I should see "Please log in as a teacher to see this content." # features/step_definitions/web_steps.rb:149 | |
Scenario: Anonymous user should be able to preview investigation # features/teacher_views_materials_preview_page.feature:31 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
And I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I click link "Preview" for investigation "Mechanics" on the materials preview page # features/step_definitions/teacher_views_materials_preview_page.rb:1 | |
Then I receive a file for download with a filename like "_investigation_" # features/step_definitions/web_steps.rb:289 | |
Scenario: Anonymous user should be able to preview activity # features/teacher_views_materials_preview_page.feature:38 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
And I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I click link "Preview" for activity "Fluid Mechanics" on the materials preview page # features/step_definitions/teacher_views_materials_preview_page.rb:1 | |
Then I receive a file for download with a filename like "_activity_" # features/step_definitions/web_steps.rb:289 | |
@javascript | |
Scenario: Anonymous user can not assign instructional materials to the class # features/teacher_views_materials_preview_page.feature:46 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
And I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Assign Investigation" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Please log-in" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I should see "as a teacher to assign this material." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I follow "register" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
Then I should be on the pick signup page # features/step_definitions/web_steps.rb:231 | |
And I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I uncheck "Fluid Mechanics" from the investigation preview page # features/step_definitions/teacher_views_materials_preview_page.rb:14 | |
And I follow "Assign Individual Activities" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Please log-in" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I should see "as a teacher to assign this material." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I follow "register" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
Then I should be on the pick signup page # features/step_definitions/web_steps.rb:231 | |
Scenario: Teacher should be able to see different properties of materials # features/teacher_views_materials_preview_page.feature:63 | |
And the investigation "Digestive System (published) (draft) Juice" belongs to domain "Biological Science" and has grade "10-11" # features/step_definitions/investigations_steps.rb:397 | |
And the investigation "A Weather Underground" with activity "A heat spontaneously" belongs to probe "Temperature" # features/step_definitions/investigations_steps.rb:427 | |
And I am on the the preview investigation page for the investigation "Digestive System" # features/step_definitions/web_steps.rb:66 | |
Then I should see "Biological Science" # features/step_definitions/web_steps.rb:149 | |
And I should see "10-11" # features/step_definitions/web_steps.rb:149 | |
And I am on the the preview investigation page for the investigation "A Weather Underground" # features/step_definitions/web_steps.rb:66 | |
And I should see "Temperature" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should be able to share investigation # features/teacher_views_materials_preview_page.feature:74 | |
When I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I should see "Mechanics is a great subject" # features/step_definitions/web_steps.rb:149 | |
And I click link "Share" for investigation "Mechanics" on the materials preview page # features/step_definitions/teacher_views_materials_preview_page.rb:1 | |
Then I should be able to share investigation "Mechanics" # features/step_definitions/teacher_views_materials_preview_page.rb:35 | |
@javascript | |
Scenario: Teacher should be able to share activity # features/teacher_views_materials_preview_page.feature:82 | |
When I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I click link "Share" for activity "Fluid Mechanics" on the materials preview page # features/step_definitions/teacher_views_materials_preview_page.rb:1 | |
Then I should be able to share activity "Fluid Mechanics" # features/step_definitions/teacher_views_materials_preview_page.rb:35 | |
@javascript | |
Scenario: Teacher should be able return on search page # features/teacher_views_materials_preview_page.feature:89 | |
When I am on the search instructional materials page # features/step_definitions/web_steps.rb:66 | |
And I search for "Mechanics" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:41 | |
And I follow investigation link "Mechanics" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:121 | |
And the check box for the activity "Mechanics" should be checked # features/step_definitions/teacher_views_materials_preview_page.rb:20 | |
And the check box for the activity "Fluid Mechanics" should be checked # features/step_definitions/teacher_views_materials_preview_page.rb:20 | |
And I follow "← return to search" # features/step_definitions/web_steps.rb:88 | |
Then I should be on the search instructional materials page # features/step_definitions/web_steps.rb:231 | |
And I follow activity link "Fluid Mechanics" on the search instructional materials page # features/step_definitions/teacher_searches_groups_and_previews_instructional_materials_steps.rb:121 | |
And the check box for the activity "Fluid Mechanics" should be checked # features/step_definitions/teacher_views_materials_preview_page.rb:20 | |
And the check box for the activity "Mechanics" should not be checked # features/step_definitions/teacher_views_materials_preview_page.rb:20 | |
And I follow "← return to search" # features/step_definitions/web_steps.rb:88 | |
Then I should be on the search instructional materials page # features/step_definitions/web_steps.rb:231 | |
@javascript | |
Scenario: Teacher can assign investigations to a class # features/teacher_views_materials_preview_page.feature:105 | |
When I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Assign Investigation" # features/step_definitions/web_steps.rb:88 | |
And I check "Mathematics" # features/step_definitions/web_steps.rb:121 | |
And I follow "Save" # features/step_definitions/web_steps.rb:88 | |
And I should see "Investigation is assigned to the selected class(es) successfully." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I go to Instructional Materials page for "Mathematics" # features/step_definitions/web_steps.rb:70 | |
Then I should see "Mechanics" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher can assign activities to a class from the preview investigation page # features/teacher_views_materials_preview_page.feature:116 | |
When I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I uncheck "Mechanics" from the investigation preview page # features/step_definitions/teacher_views_materials_preview_page.rb:14 | |
And I uncheck "Quantum Mechanics" from the investigation preview page # features/step_definitions/teacher_views_materials_preview_page.rb:14 | |
And I uncheck "Circular Motion" from the investigation preview page # features/step_definitions/teacher_views_materials_preview_page.rb:14 | |
And I follow "Assign Individual Activities" # features/step_definitions/web_steps.rb:88 | |
And "Mechanics" should appear before "Fluid Mechanics" # features/step_definitions/global_steps.rb:109 | |
When I check "Physics" # features/step_definitions/web_steps.rb:121 | |
And I follow "Save" # features/step_definitions/web_steps.rb:88 | |
And I should see "Activity is assigned to the selected class(es) successfully." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I go to Instructional Materials page for "Physics" # features/step_definitions/web_steps.rb:70 | |
Then I should see "Fluid Mechanics" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should see message if assignment of activities is done without checking the activity # features/teacher_views_materials_preview_page.feature:131 | |
When I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I uncheck "Mechanics" from the investigation preview page # features/step_definitions/teacher_views_materials_preview_page.rb:14 | |
And I uncheck "Fluid Mechanics" from the investigation preview page # features/step_definitions/teacher_views_materials_preview_page.rb:14 | |
And I uncheck "Quantum Mechanics" from the investigation preview page # features/step_definitions/teacher_views_materials_preview_page.rb:14 | |
And I uncheck "Circular Motion" from the investigation preview page # features/step_definitions/teacher_views_materials_preview_page.rb:14 | |
And I follow "Assign Individual Activities" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Please select atleast one activity to assign to a class" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher should see message the class name in which activities are assigned # features/teacher_views_materials_preview_page.feature:142 | |
When the Activity "Fluid Mechanics" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I uncheck "Mechanics" from the investigation preview page # features/step_definitions/teacher_views_materials_preview_page.rb:14 | |
And I follow "Assign Individual Activities" # features/step_definitions/web_steps.rb:88 | |
And "Mechanics" should appear before "Fluid Mechanics" # features/step_definitions/global_steps.rb:109 | |
When I check "Physics" # features/step_definitions/web_steps.rb:121 | |
And I follow "Save" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Assigned successfully" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I should see "Physics" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I should see "Fluid Mechanics, Circular Motion, Quantum Mechanics" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I uncheck "Mechanics" from the investigation preview page # features/step_definitions/teacher_views_materials_preview_page.rb:14 | |
And I follow "Assign Individual Activities" # features/step_definitions/web_steps.rb:88 | |
And I check "Mathematics" # features/step_definitions/web_steps.rb:121 | |
And I follow "Save" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Please note that some of the activities were already assigned and were not re-assigned." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I follow "More Information" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
Then I should see "Mechanics" # features/step_definitions/web_steps.rb:149 | |
And I should see "Fluid Mechanics" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher can see a message in the popup of assign activity if activity is already as part of investigation # features/teacher_views_materials_preview_page.feature:165 | |
When the Investigation "Mechanics" is assigned to the class "Physics" # features/step_definitions/assignment_steps.rb:20 | |
And I am on the the preview activity page for the activity "Fluid Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Assign Individual Activities" # features/step_definitions/web_steps.rb:88 | |
Then I should see /(Already assigned as part of "Mechanics")/ within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher can see a message in the popup if investigation is assigned to any class # features/teacher_views_materials_preview_page.feature:173 | |
When the Investigation "Mechanics" is assigned to the class "Physics" # features/step_definitions/assignment_steps.rb:20 | |
And I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Assign Investigation" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Already assigned to the following class(es)" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I should see "Physics" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher can see a message in the popup if activity is assigned to any class # features/teacher_views_materials_preview_page.feature:182 | |
When the Activity "Fluid Mechanics" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And I am on the the preview activity page for the activity "Fluid Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Assign Individual Activities" # features/step_definitions/web_steps.rb:88 | |
Then I should see "Already assigned to the following class(es)" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I should see "Mathematics" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher should see a message if save button is clicked without selecting any class in assign popup # features/teacher_views_materials_preview_page.feature:191 | |
When I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Assign Investigation" # features/step_definitions/web_steps.rb:88 | |
And I follow "Save" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
Then I should see "Select atleast one class to assign this Investigation" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I uncheck "Mechanics" from the investigation preview page # features/step_definitions/teacher_views_materials_preview_page.rb:14 | |
And I follow "Assign Individual Activities" # features/step_definitions/web_steps.rb:88 | |
And I follow "Save" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
Then I should see "Select atleast one class to assign this Activity" within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher can see a message in the popup if the investigation is assigned to all the classes # features/teacher_views_materials_preview_page.feature:204 | |
When the following classes exist: # features/step_definitions/investigations_steps.rb:99 | |
| name | teacher | semester | | |
| New Class | teacher_with_no_class | Fall | | |
And I login with username: teacher_with_no_class password: password # features/step_definitions/global_steps.rb:83 | |
And I am on the the preview investigation page for the investigation "differential calculus" # features/step_definitions/web_steps.rb:66 | |
And I follow "Assign Investigation" # features/step_definitions/web_steps.rb:88 | |
And I check "clazz_id[]" # features/step_definitions/web_steps.rb:121 | |
And I follow "Save" # features/step_definitions/web_steps.rb:88 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And I am on the the preview investigation page for the investigation "differential calculus" # features/step_definitions/web_steps.rb:66 | |
And I follow "Assign Investigation" # features/step_definitions/web_steps.rb:88 | |
Then I should see "This material is assigned to all the classes." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher can see a message in the popup if the activity is assigned to all the classes # features/teacher_views_materials_preview_page.feature:220 | |
When the following classes exist: # features/step_definitions/investigations_steps.rb:99 | |
| name | teacher | semester | | |
| New Class | teacher_with_no_class | Fall | | |
And I login with username: teacher_with_no_class password: password # features/step_definitions/global_steps.rb:83 | |
And I am on the the preview activity page for the activity "Fluid Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Assign Individual Activities" # features/step_definitions/web_steps.rb:88 | |
And I check "clazz_id[]" # features/step_definitions/web_steps.rb:121 | |
And I follow "Save" # features/step_definitions/web_steps.rb:88 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And I am on the the preview activity page for the activity "Fluid Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Assign Individual Activities" # features/step_definitions/web_steps.rb:88 | |
Then I should see "This material is assigned to all the classes." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher can see a message if assign to a class popup is opened without creating any class # features/teacher_views_materials_preview_page.feature:236 | |
When the following classes exist: # features/step_definitions/investigations_steps.rb:99 | |
| name | teacher | semester | | |
| New Class | teacher_with_no_class | Fall | | |
And I login with username: teacher_with_no_class password: password # features/step_definitions/global_steps.rb:83 | |
And I go to the Manage Class Page # features/step_definitions/web_steps.rb:70 | |
And I uncheck "teacher_clazz[]" # features/step_definitions/web_steps.rb:125 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
And I am on the the preview investigation page for the investigation "Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Assign Investigation" # features/step_definitions/web_steps.rb:88 | |
Then I should see "You don't have any active classes. Once you have created your class(es) you will be able to assign materials to them." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
And I am on the the preview activity page for the activity "Fluid Mechanics" # features/step_definitions/web_steps.rb:66 | |
And I follow "Assign Individual Activities" # features/step_definitions/web_steps.rb:88 | |
Then I should see "You don't have any active classes. Once you have created your class(es) you will be able to assign materials to them." within the lightbox in focus # features/step_definitions/web_steps.rb:35 | |
Feature: Teacher can see recent activity | |
As a teacher | |
I should see recent activities of students in all the classes | |
In order to make my class more effective | |
Background: # features/teacher_views_recent_activity.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I login with username: teacher password: password # features/step_definitions/global_steps.rb:83 | |
Scenario: Teacher should see a message if no investigation is assigned to the class # features/teacher_views_recent_activity.feature:12 | |
When I login with username: albert password: password # features/step_definitions/global_steps.rb:83 | |
And I follow "Recent Activity" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
Then I should see "You need to assign investigations to your classes." # features/step_definitions/web_steps.rb:149 | |
And I should see "As your students get started, their progress will be displayed here." # features/step_definitions/web_steps.rb:149 | |
Scenario: Teacher should see a message if no activity is assigned to any investigation # features/teacher_views_recent_activity.feature:18 | |
When the following empty investigations exist: # features/step_definitions/investigations_steps.rb:1 | |
| name | user | offerings_count | publication_status | | |
| Digestion | albert | 5 | published | | |
And the following assignments exist: # features/step_definitions/assignment_steps.rb:11 | |
| type | name | class | | |
| investigation | Digestion | Biology | | |
And the student "monty" belongs to class "Biology" # features/step_definitions/student_steps.rb:28 | |
And I login with username: albert password: password # features/step_definitions/global_steps.rb:83 | |
Then I should see "As your students get started, their progress will be displayed here." # features/step_definitions/web_steps.rb:149 | |
Scenario: Teacher should see a message if no student is assigned to the class # features/teacher_views_recent_activity.feature:29 | |
When the following teacher and class mapping exists: # features/step_definitions/teacher_steps.rb:46 | |
| class_name | teacher | | |
| Class_with_no_students | robert | | |
And I login with username: robert password: password # features/step_definitions/global_steps.rb:83 | |
Then I should see "As your students get started, their progress will be displayed here." # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should see standalone activity # features/teacher_views_recent_activity.feature:37 | |
When the Activity "Algebra" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | activity | question_prompt | answer | | |
| taylor | Mathematics | Algebra | f | y | | |
And I follow "Recent Activity" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
Then I should see "Mathematics: Algebra" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should not see teacher only activity # features/teacher_views_recent_activity.feature:46 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| ross | Physics | Aerodynamics | d | y | | |
And I follow "Recent Activity" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
And I follow "Show detail" within the first recent activity on the recent activity page # features/step_definitions/web_steps.rb:35 | |
Then I should see "Air activity" # features/step_definitions/web_steps.rb:149 | |
And I should not see "Aeroplane" # features/step_definitions/web_steps.rb:167 | |
Scenario: Teacher views the class at the top where most recent activity occurred # features/teacher_views_recent_activity.feature:55 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| chuck | Physics | Aerodynamics | image_q | Y | | |
| chuck | Physics | Aerodynamics | c | Y | | |
And the Activity "Algebra" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | activity | question_prompt | answer | | |
| taylor | Mathematics | Algebra | f | y | | |
And I follow "Recent Activity" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
Then "Mathematics" should appear before "Physics" # features/step_definitions/global_steps.rb:109 | |
@javascript | |
Scenario: Teacher should view the progress bar for recent investigation # features/teacher_views_recent_activity.feature:68 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| ross | Physics | Aerodynamics | c | y | | |
| chuck | Physics | Aerodynamics | image_q | Y | | |
| chuck | Physics | Aerodynamics | c | Y | | |
And I follow "Recent Activity" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
Then I should see the progress of the student within the first recent activity on the recent activity page # features/step_definitions/web_steps.rb:35 | |
@javascript | |
Scenario: Teacher should view the students grouped by progress # features/teacher_views_recent_activity.feature:78 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| chuck | Mechanics | Aerodynamics | image_q | Y | | |
| chuck | Mechanics | Aerodynamics | c | Y | | |
| ross | Physics | Aerodynamics | c | y | | |
| chuck | Physics | Aerodynamics | image_q | Y | | |
| chuck | Physics | Aerodynamics | c | Y | | |
And I follow "Recent Activity" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
And I follow "Show detail" within the first recent activity on the recent activity page # features/step_definitions/web_steps.rb:35 | |
Then I should see "Taylor, Ross" in In-progress on the recent activity page # features/step_definitions/teacher_views_recent_activity_steps.rb:32 | |
And I should see "Completed Smith, Chuck" # features/step_definitions/web_steps.rb:149 | |
And I should see "Not Yet Started Done, Shon" # features/step_definitions/web_steps.rb:149 | |
Scenario: Teacher views class size # features/teacher_views_recent_activity.feature:92 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| ross | Physics | Aerodynamics | c | y | | |
| chuck | Physics | Aerodynamics | image_q | Y | | |
| chuck | Physics | Aerodynamics | c | Y | | |
And I follow "Recent Activity" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
Then I should see "Class Size = 4" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher views message if no student has completed # features/teacher_views_recent_activity.feature:102 | |
When the Activity "Algebra" is assigned to the class "Mathematics" # features/step_definitions/assignment_steps.rb:20 | |
And the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | activity | question_prompt | answer | | |
| taylor | Mathematics | Algebra | f | y | | |
And I follow "Recent Activity" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
And I follow "Show detail" within the first recent activity on the recent activity page # features/step_definitions/web_steps.rb:35 | |
Then I should see "Completed No student has completed this sequence yet." # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher views message if no student has started # features/teacher_views_recent_activity.feature:112 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| chuck | Mechanics | Aerodynamics | image_q | Y | | |
| chuck | Mechanics | Aerodynamics | c | Y | | |
And I follow "Recent Activity" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
And I follow "Show detail" within the first recent activity on the recent activity page # features/step_definitions/web_steps.rb:35 | |
Then I should see "Not Yet Started All students have started this sequence." # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher views message if no student is in progress # features/teacher_views_recent_activity.feature:122 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| chuck | Mechanics | Aerodynamics | image_q | Y | | |
| chuck | Mechanics | Aerodynamics | c | Y | | |
And I follow "Recent Activity" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
And I follow "Show detail" within the first recent activity on the recent activity page # features/step_definitions/web_steps.rb:35 | |
Then I should see "In Progress No students with incomplete progress." # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Teacher should be able to run the report # features/teacher_views_recent_activity.feature:132 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| ross | Physics | Aerodynamics | c | y | | |
| chuck | Physics | Aerodynamics | image_q | Y | | |
| chuck | Physics | Aerodynamics | c | Y | | |
And I follow "Recent Activity" within left panel for class navigation # features/step_definitions/web_steps.rb:35 | |
And I follow "Run Report" within the first recent activity on the recent activity page # features/step_definitions/web_steps.rb:35 | |
Then A report window opens of offering "Aerodynamics" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:2 | |
And I should see "Aerodynamics" # features/step_definitions/web_steps.rb:149 | |
Scenario: Anonymous user cannot see recent activity page # features/teacher_views_recent_activity.feature:143 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
And I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
And I try to go to Recent Activity Page # features/step_definitions/web_steps.rb:74 | |
Then I should be on "my home page" # features/step_definitions/web_steps.rb:231 | |
Feature: Teacher views report | |
In order to know how students have done on an offering | |
As a teacher | |
I want to see a report of their work | |
Background: # features/teacher_views_report.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
Scenario: A teacher views a report of an investigation # features/teacher_views_report.feature:11 | |
Given the following investigations with multiple choices exist: # features/step_definitions/investigations_steps.rb:61 | |
| investigation | activity | section | page | multiple_choices | image_questions | user | | |
| first investigation | act 3 | section 3 | page 3 | a | image_q | teacher | | |
And the following assignments exist: # features/step_definitions/assignment_steps.rb:11 | |
| type | name | class | | |
| investigation | first investigation | Class_with_no_assignment | | |
And the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| student | Class_with_no_assignment | first investigation | a | a | | |
| student | Class_with_no_assignment | first investigation | image_q | Y | | |
| dave | Class_with_no_assignment | first investigation | a | b | | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And go to the class page for "Class_with_no_assignment" # features/step_definitions/web_steps.rb:70 | |
And follow "Display a report" within ".action_menu_activity" # features/step_definitions/web_steps.rb:35 | |
Scenario: A teacher filters a question # features/teacher_views_report.feature:27 | |
Given the following investigations with multiple choices exist: # features/step_definitions/investigations_steps.rb:61 | |
| investigation | activity | section | page | multiple_choices | image_questions | user | | |
| first investigation | act 3 | section 3 | page 3 | a | image_q | teacher | | |
And the following assignments exist: # features/step_definitions/assignment_steps.rb:11 | |
| type | name | class | | |
| investigation | first investigation | Class_with_no_assignment | | |
And the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| student | Class_with_no_assignment | first investigation | a | a | | |
| student | Class_with_no_assignment | first investigation | image_q | Y | | |
| dave | Class_with_no_assignment | first investigation | a | b | | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And go to the class page for "Class_with_no_assignment" # features/step_definitions/web_steps.rb:70 | |
And follow "Display a report" within ".action_menu_activity" # features/step_definitions/web_steps.rb:35 | |
And I wait 2 seconds # features/step_definitions/global_steps.rb:135 | |
Then I should see "image_q" # features/step_definitions/web_steps.rb:149 | |
And I check "filter_Embeddable::MultipleChoice_" # features/step_definitions/web_steps.rb:121 | |
And I press "Show selected" # features/step_definitions/web_steps.rb:78 | |
Then I should not see "image_q" # features/step_definitions/web_steps.rb:167 | |
Scenario: A teacher shows all questions # features/teacher_views_report.feature:48 | |
Given the following investigations with multiple choices exist: # features/step_definitions/investigations_steps.rb:61 | |
| investigation | activity | section | page | multiple_choices | image_questions | user | | |
| first investigation | act 3 | section 3 | page 3 | a | image_q | teacher | | |
And the following assignments exist: # features/step_definitions/assignment_steps.rb:11 | |
| type | name | class | | |
| investigation | first investigation | Class_with_no_assignment | | |
And the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| student | Class_with_no_assignment | first investigation | a | a | | |
| student | Class_with_no_assignment | first investigation | image_q | Y | | |
| dave | Class_with_no_assignment | first investigation | a | b | | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And go to the class page for "Class_with_no_assignment" # features/step_definitions/web_steps.rb:70 | |
And follow "Display a report" within ".action_menu_activity" # features/step_definitions/web_steps.rb:35 | |
And I wait 2 seconds # features/step_definitions/global_steps.rb:135 | |
Then I should see "image_q" # features/step_definitions/web_steps.rb:149 | |
And I check "filter_Embeddable::MultipleChoice_" # features/step_definitions/web_steps.rb:121 | |
And I press "Show selected" # features/step_definitions/web_steps.rb:78 | |
Then I should not see "image_q" # features/step_definitions/web_steps.rb:167 | |
And I press "Show all" # features/step_definitions/web_steps.rb:78 | |
Then I should see "image_q" # features/step_definitions/web_steps.rb:149 | |
Scenario: A teacher views a report of an activity # features/teacher_views_report.feature:71 | |
Given the following activities with multiple choices exist: # features/step_definitions/activity_steps.rb:18 | |
| activity | section | page | multiple_choices | image_questions | user | | |
| first activity | section 3 | page 3 | a | image_q | teacher | | |
And the following assignments exist: # features/step_definitions/assignment_steps.rb:11 | |
| type | name | class | | |
| activity | first activity | Class_with_no_assignment | | |
And the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | activity | question_prompt | answer | | |
| student | Class_with_no_assignment | first activity | a | a | | |
| student | Class_with_no_assignment | first activity | image_q | Y | | |
| dave | Class_with_no_assignment | first activity | a | b | | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And go to the class page for "Class_with_no_assignment" # features/step_definitions/web_steps.rb:70 | |
And follow "Display a report" within ".action_menu_activity" # features/step_definitions/web_steps.rb:35 | |
Then I should see "image_q" # features/step_definitions/web_steps.rb:149 | |
And I check "filter_Embeddable::MultipleChoice_" # features/step_definitions/web_steps.rb:121 | |
And I press "Show selected" # features/step_definitions/web_steps.rb:78 | |
Then I should not see "image_q" # features/step_definitions/web_steps.rb:167 | |
And I press "Show all" # features/step_definitions/web_steps.rb:78 | |
Then I should see "image_q" # features/step_definitions/web_steps.rb:149 | |
Scenario: A teacher prints report of an activity # features/teacher_views_report.feature:93 | |
Given the following activities with multiple choices exist: # features/step_definitions/activity_steps.rb:18 | |
| activity | section | page | multiple_choices | image_questions | user | | |
| first activity | section 3 | page 3 | a | image_q | teacher | | |
And the following assignments exist: # features/step_definitions/assignment_steps.rb:11 | |
| type | name | class | | |
| activity | first activity | Class_with_no_assignment | | |
And the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | activity | question_prompt | answer | | |
| student | Class_with_no_assignment | first activity | a | a | | |
| student | Class_with_no_assignment | first activity | image_q | Y | | |
| dave | Class_with_no_assignment | first activity | a | b | | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And go to the class page for "Class_with_no_assignment" # features/step_definitions/web_steps.rb:70 | |
And follow "Display a report" within ".action_menu_activity" # features/step_definitions/web_steps.rb:35 | |
And follow "print all users" # features/step_definitions/web_steps.rb:88 | |
Then I should see "image_q" # features/step_definitions/web_steps.rb:149 | |
Scenario: A teacher views an individual report # features/teacher_views_report.feature:111 | |
Given the following activities with multiple choices exist: # features/step_definitions/activity_steps.rb:18 | |
| activity | section | page | multiple_choices | image_questions | user | | |
| first activity | section 3 | page 3 | a | image_q | teacher | | |
And the following assignments exist: # features/step_definitions/assignment_steps.rb:11 | |
| type | name | class | | |
| activity | first activity | Class_with_no_assignment | | |
And the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | activity | question_prompt | answer | | |
| student | Class_with_no_assignment | first activity | a | a | | |
| student | Class_with_no_assignment | first activity | image_q | Y | | |
| dave | Class_with_no_assignment | first activity | a | b | | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And go to the class page for "Class_with_no_assignment" # features/step_definitions/web_steps.rb:70 | |
And follow "Display a report for the learner" # features/step_definitions/web_steps.rb:88 | |
Then I should see "image_q" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: A teacher should see filtered question as checked when all question is displayed in report page # features/teacher_views_report.feature:129 | |
Given the following activities with multiple choices exist: # features/step_definitions/activity_steps.rb:18 | |
| activity | section | page | multiple_choices | image_questions | user | | |
| first activity | section 3 | page 3 | a | image_q | teacher | | |
And the following assignments exist: # features/step_definitions/assignment_steps.rb:11 | |
| type | name | class | | |
| activity | first activity | Class_with_no_assignment | | |
And the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | activity | question_prompt | answer | | |
| student | Class_with_no_assignment | first activity | a | a | | |
| student | Class_with_no_assignment | first activity | image_q | Y | | |
| dave | Class_with_no_assignment | first activity | a | b | | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I go to Instructional Materials page for "Class_with_no_assignment" # features/step_definitions/web_steps.rb:70 | |
And I follow "Run Report" # features/step_definitions/web_steps.rb:88 | |
And I apply filter for the question "a" in the report page # features/step_definitions/report_steps.rb:27 | |
Then I should see question "a" checked when all question is displayed in the report page # features/step_definitions/report_steps.rb:37 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: A teacher should see a message if show selected is clicked without selecting any question # features/teacher_views_report.feature:149 | |
Given the following activities with multiple choices exist: # features/step_definitions/activity_steps.rb:18 | |
| activity | section | page | multiple_choices | image_questions | user | | |
| first activity | section 3 | page 3 | a | image_q | teacher | | |
And the following assignments exist: # features/step_definitions/assignment_steps.rb:11 | |
| type | name | class | | |
| activity | first activity | Class_with_no_assignment | | |
And the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | activity | question_prompt | answer | | |
| student | Class_with_no_assignment | first activity | a | a | | |
| student | Class_with_no_assignment | first activity | image_q | Y | | |
| dave | Class_with_no_assignment | first activity | a | b | | |
When I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I go to Instructional Materials page for "Class_with_no_assignment" # features/step_definitions/web_steps.rb:70 | |
And I follow "Run Report" # features/step_definitions/web_steps.rb:88 | |
And I click "Show selected" button on report page # features/step_definitions/report_steps.rb:47 | |
Then I should see "No questions have been selected." message on the report page # features/step_definitions/report_steps.rb:55 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
Feature: Teacher views report from the instructional materials page of a class | |
As a teacher | |
I want to see report from the instructional materials of a class | |
In order to see the attempts of students. | |
Background: # features/teacher_views_report_from_the_instructional_materials_page.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
@javascript | |
Scenario: Teacher should see report for activity # features/teacher_views_report_from_the_instructional_materials_page.feature:15 | |
WARNING: missing 1 removed reportables in report for Aerodynamics | |
WARNING: missing 1 removed reportables in report for Aerodynamics | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| dave | My Class | Aerodynamics | c | y | | |
| chuck | My Class | Aerodynamics | a | Y | | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Air activity" # features/step_definitions/web_steps.rb:88 | |
WARNING: missing 1 removed reportables in report for Aerodynamics | |
Then A report window opens of offering "Aerodynamics" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:2 | |
Then Report page should have student name "Dave Doe" in answered section for the question "a" # features/step_definitions/report_steps.rb:1 | |
And Report page should have student name "Chuck Smith" in answered section for the question "a" # features/step_definitions/report_steps.rb:1 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: Teacher should see report for student # features/teacher_views_report_from_the_instructional_materials_page.feature:29 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| dave | My Class | Aerodynamics | c | y | | |
| chuck | My Class | Aerodynamics | image_q | Y | | |
| chuck | My Class | Aerodynamics | c | Y | | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Doe, Dave" # features/step_definitions/web_steps.rb:88 | |
Then Report page should have content "Dave Doe" # features/step_definitions/report_steps.rb:15 | |
And Report page should not have content "Chuck Smith" # features/step_definitions/report_steps.rb:15 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: Teacher should see report for student and corresponding activity # features/teacher_views_report_from_the_instructional_materials_page.feature:43 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| dave | My Class | Aerodynamics | c | y | | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I click progress bar on the instructional materials page for the student "dave" and activity "Air activity" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:66 | |
Then Report page should have content "Air activity" # features/step_definitions/report_steps.rb:15 | |
And Report page should have content "Dave Doe" # features/step_definitions/report_steps.rb:15 | |
And Report page should not have content "Atmosphere" # features/step_definitions/report_steps.rb:15 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: Report filtered state should be maintained if filter is applied at investigation level # features/teacher_views_report_from_the_instructional_materials_page.feature:56 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| dave | My Class | Aerodynamics | c | y | | |
| dave | My Class | Aerodynamics | image_q | Y | | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Run Report" # features/step_definitions/web_steps.rb:88 | |
And I apply filter for the question "a" in the report page # features/step_definitions/report_steps.rb:27 | |
Then Report page should not have content "imadge_q" # features/step_definitions/report_steps.rb:15 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
And I follow "Doe, Dave" # features/step_definitions/web_steps.rb:88 | |
Then Report page should not have content "image_q" # features/step_definitions/report_steps.rb:15 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
And I follow "Air activity" # features/step_definitions/web_steps.rb:88 | |
Then Report page should not have content "image_q" # features/step_definitions/report_steps.rb:15 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
And I click progress bar on the instructional materials page for the student "dave" and activity "Air activity" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:66 | |
Then Report page should not have content "image_q" # features/step_definitions/report_steps.rb:15 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: Report filtered state should be maintained if filter is applied at activity level,student level and student's activity level # features/teacher_views_report_from_the_instructional_materials_page.feature:78 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| dave | My Class | Aerodynamics | c | y | | |
| dave | My Class | Aerodynamics | image_q | Y | | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Doe, Dave" # features/step_definitions/web_steps.rb:88 | |
And I apply filter for the question "a" in the report page # features/step_definitions/report_steps.rb:27 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Run Report" # features/step_definitions/web_steps.rb:88 | |
Then Report page should not have content "imadge_q" # features/step_definitions/report_steps.rb:15 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Air activity" # features/step_definitions/web_steps.rb:88 | |
And I apply filter for the question "a" in the report page # features/step_definitions/report_steps.rb:27 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Run Report" # features/step_definitions/web_steps.rb:88 | |
Then Report page should not have content "imadge_q" # features/step_definitions/report_steps.rb:15 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I click progress bar on the instructional materials page for the student "dave" and activity "Air activity" # features/step_definitions/teacher_manages_instructional_materials_steps.rb:66 | |
And I apply filter for the question "a" in the report page # features/step_definitions/report_steps.rb:27 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Run Report" # features/step_definitions/web_steps.rb:88 | |
Then Report page should not have content "imadge_q" # features/step_definitions/report_steps.rb:15 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: Filtering the activity report should effect main report # features/teacher_views_report_from_the_instructional_materials_page.feature:110 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| dave | My Class | Aerodynamics | c | y | | |
| dave | My Class | Aerodynamics | image_q | Y | | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Air activity" # features/step_definitions/web_steps.rb:88 | |
And I apply filter for the question "a" in the report page # features/step_definitions/report_steps.rb:27 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Run Report" # features/step_definitions/web_steps.rb:88 | |
Then Report page should not have content "imadge_q" # features/step_definitions/report_steps.rb:15 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Scenario: Filtering the main report should effect activity # features/teacher_views_report_from_the_instructional_materials_page.feature:126 | |
When the following student answers: # features/step_definitions/researcher_report_steps.rb:140 | |
| student | class | investigation | question_prompt | answer | | |
| dave | My Class | Aerodynamics | c | y | | |
| dave | My Class | Aerodynamics | image_q | Y | | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Run Report" # features/step_definitions/web_steps.rb:88 | |
And I apply filter for the question "a" in the report page # features/step_definitions/report_steps.rb:27 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
And I go to Instructional Materials page for "My Class" # features/step_definitions/web_steps.rb:70 | |
And I follow "Air activity" # features/step_definitions/web_steps.rb:88 | |
Then Report page should not have content "imadge_q" # features/step_definitions/report_steps.rb:15 | |
And I close the newly opened window # features/step_definitions/global_steps.rb:199 | |
@javascript | |
Feature: Teacher views resource usage | |
In order to know how many students have viewed a resource page | |
As a teacher, researcher, admin, or manager | |
I want to see a count of students who have viewed a resource page | |
Background: # features/teacher_views_resource_usage.feature:8 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I am logged in with the username teacher # features/step_definitions/global_steps.rb:74 | |
And I am on the class page for "My Class" # features/step_definitions/web_steps.rb:66 | |
And I assign the resource page "NewestResource" to the class "My Class" # features/step_definitions/assignment_steps.rb:25 | |
Scenario: Teacher views resource pages # features/teacher_views_resource_usage.feature:15 | |
When I am on the resource pages page # features/step_definitions/web_steps.rb:66 | |
Then I should see "NewestResource" # features/step_definitions/web_steps.rb:149 | |
Feature: Investigations can be searched | |
So I can find an investigation more efficiently | |
As a teacher | |
I want to sort the investigations list | |
Background: # features/theme_rites.feature:6 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
Given The theme is "rites" # features/step_definitions/theme_steps.rb:1 | |
And the following empty investigations exist: # features/step_definitions/investigations_steps.rb:1 | |
| name | user | offerings_count | publication_status | | |
| a Investigation | author | 5 | published | | |
Feature: A user changes which probeware interface they are using | |
As a user | |
I want to change my probeware interface | |
In order to use the specific type of probeware I have | |
Background: # features/user_changes_probe_interface.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario: Student changes probeware interface on preferences page # features/user_changes_probe_interface.feature:12 | |
And I am logged in with the username student # features/step_definitions/global_steps.rb:74 | |
When I go to my preferences # features/step_definitions/web_steps.rb:70 | |
And I select "Fourier Ecolog" from "user_vendor_interface_id" # features/step_definitions/web_steps.rb:117 | |
And I press "Save" # features/step_definitions/web_steps.rb:78 | |
Then I should not see "Please log in as an administrator" # features/step_definitions/web_steps.rb:167 | |
And I should see "was successfully updated" # features/step_definitions/web_steps.rb:149 | |
Feature: User logs in using header login box to use the portal | |
As a user | |
I want to login | |
In order to use the portal | |
Background: # features/user_logs_in_using_header_login_box.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
Scenario: Teacher should be logged in # features/user_logs_in_using_header_login_box.feature:12 | |
When I login with username: teacher password: password # features/step_definitions/global_steps.rb:83 | |
And I should not see "Forgot your user name or password?" # features/step_definitions/web_steps.rb:167 | |
Scenario: Student should be logged in # features/user_logs_in_using_header_login_box.feature:17 | |
When I login with username: student password: password # features/step_definitions/global_steps.rb:83 | |
And I should not see "Forgot your user name or password?" # features/step_definitions/web_steps.rb:167 | |
Scenario: Other user with different roles should be logged in # features/user_logs_in_using_header_login_box.feature:22 | |
When I login with username: author password: password # features/step_definitions/global_steps.rb:83 | |
Then I should not see "Forgot your user name or password?" # features/step_definitions/web_steps.rb:167 | |
When I login as an admin # features/step_definitions/global_steps.rb:67 | |
Then I should not see "Forgot your user name or password?" # features/step_definitions/web_steps.rb:167 | |
When I login with username: manager password: password # features/step_definitions/global_steps.rb:83 | |
Then I should not see "Forgot your user name or password?" # features/step_definitions/web_steps.rb:167 | |
Scenario: Anonymous user should see header login box # features/user_logs_in_using_header_login_box.feature:31 | |
When I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
And I am on the home page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Forgot login?" within header login box # features/step_definitions/web_steps.rb:35 | |
Scenario: Anonymous user should land to the pick signup page # features/user_logs_in_using_header_login_box.feature:37 | |
When I am an anonymous user # features/step_definitions/admin_configures_interfaces_steps.rb:14 | |
And I am on the home page # features/step_definitions/web_steps.rb:66 | |
And I follow "Register" # features/step_definitions/web_steps.rb:88 | |
Then I should be on "the pick signup page" # features/step_definitions/web_steps.rb:231 | |
Feature: User updates account information | |
In order to correct mistakes on my account info | |
As a registered user | |
I want to update my account information | |
Background: # features/user_updates_account_information.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
@javascript | |
Scenario Outline: Users can not change their usernames # features/user_updates_account_information.feature:12 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
And I am logged in with the username <username> # features/step_definitions/global_steps.rb:74 | |
And I am on the user preferences page for the user "<username>" # features/step_definitions/web_steps.rb:66 | |
Then I should see "User Preferences" # features/step_definitions/web_steps.rb:149 | |
And I should see "First name" # features/step_definitions/web_steps.rb:149 | |
But I should not see the xpath "//input[@id='user_login']" # features/step_definitions/global_steps.rb:139 | |
And I should not see "Username" # features/step_definitions/web_steps.rb:167 | |
Examples: | |
| username | password | | |
| student | student | | |
| teacher | teacher | | |
@javascript | |
Scenario: Students can not change their email addresses # features/user_updates_account_information.feature:27 | |
When I am logged in with the username student # features/step_definitions/global_steps.rb:74 | |
And I am on the user preferences page for the user "student" # features/step_definitions/web_steps.rb:66 | |
Then I should see "User Preferences" # features/step_definitions/web_steps.rb:149 | |
And I should see "First name" # features/step_definitions/web_steps.rb:149 | |
But I should not see the xpath "//input[@id='user_email']" # features/step_definitions/global_steps.rb:139 | |
And I should not see "Username" # features/step_definitions/web_steps.rb:167 | |
Feature: Users can view notices created by project staff | |
As a user | |
I should be able to view and dismiss notices created by the project staff | |
In order to be notified about updates or important information | |
Background: # features/users_can_view_dismiss_collapse_notice.feature:7 | |
Given The default project and jnlp resources exist using factories # features/step_definitions/default_project_and_jnlps_steps.rb:19 | |
And the database has been seeded # features/step_definitions/default_project_and_jnlps_steps.rb:5 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And I create the following notices: # features/step_definitions/admin_can_add_edit_remove_notices_steps.rb:25 | |
| notice_html | roles | | |
| Notice for all users | Admin,Member,Researcher,Author,Manager | | |
@javascript | |
Scenario: Member roles should see notices # features/users_can_view_dismiss_collapse_notice.feature:17 | |
When I login with username: teacher password: password # features/step_definitions/global_steps.rb:83 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Notice for all users" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Admin roles should see notices # features/users_can_view_dismiss_collapse_notice.feature:24 | |
When I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Notice for all users" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Author roles should see notices # features/users_can_view_dismiss_collapse_notice.feature:31 | |
And I am logged in with the username author # features/step_definitions/global_steps.rb:74 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Notice for all users" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Manager roles should see notices # features/users_can_view_dismiss_collapse_notice.feature:38 | |
And I am logged in with the username manager # features/step_definitions/global_steps.rb:74 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Notice for all users" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Researcher roles should see notices # features/users_can_view_dismiss_collapse_notice.feature:45 | |
And I am logged in with the username researcher # features/step_definitions/global_steps.rb:74 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Notice for all users" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Students should not see notices # features/users_can_view_dismiss_collapse_notice.feature:52 | |
And I login with username: student password: password # features/step_definitions/global_steps.rb:83 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should not see "Notice for all users" # features/step_definitions/web_steps.rb:167 | |
@dialog @javascript | |
Scenario: Users can dismiss a notice without affecting other users # features/users_can_view_dismiss_collapse_notice.feature:60 | |
When I am logged in with the username manager # features/step_definitions/global_steps.rb:74 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
And I follow "x" # features/step_definitions/web_steps.rb:88 | |
And accept the dialog # features/step_definitions/global_steps.rb:168 | |
And I wait 2 seconds # features/step_definitions/global_steps.rb:135 | |
And I should not see "Notice for all users" # features/step_definitions/web_steps.rb:167 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should not see "Notice for all users" # features/step_definitions/web_steps.rb:167 | |
And I login as an admin # features/step_definitions/global_steps.rb:67 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
And I should see "Notice for all users" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Users can collapse and expand notices # features/users_can_view_dismiss_collapse_notice.feature:77 | |
When I am logged in with the username manager # features/step_definitions/global_steps.rb:74 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
And I follow "Hide Notices" # features/step_definitions/web_steps.rb:88 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should see "Show Notices" # features/step_definitions/web_steps.rb:149 | |
When I follow "Show Notices" # features/step_definitions/web_steps.rb:88 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should see "Hide Notices" # features/step_definitions/web_steps.rb:149 | |
@javascript | |
Scenario: Notice expand-collapse state should be maintained across sessions # features/users_can_view_dismiss_collapse_notice.feature:89 | |
When I am logged in with the username manager # features/step_definitions/global_steps.rb:74 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
And I follow "Hide Notices" # features/step_definitions/web_steps.rb:88 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should see "Show Notices" # features/step_definitions/web_steps.rb:149 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
And I am logged in with the username manager # features/step_definitions/global_steps.rb:74 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Show Notices" # features/step_definitions/web_steps.rb:149 | |
When I follow "Show Notices" # features/step_definitions/web_steps.rb:88 | |
And I should wait 2 seconds # features/step_definitions/global_steps.rb:160 | |
Then I should see "Hide Notices" # features/step_definitions/web_steps.rb:149 | |
When I log out # features/step_definitions/global_steps.rb:88 | |
And I am logged in with the username manager # features/step_definitions/global_steps.rb:74 | |
And am on the my home page # features/step_definitions/web_steps.rb:66 | |
Then I should see "Hide Notices" # features/step_definitions/web_steps.rb:149 | |
Failing Scenarios: | |
cucumber features/teacher_deactivates_investigation.feature:27 # Scenario: Teacher drags active investigation with students off of class | |
cucumber features/teacher_filters_instructional_materials.feature:80 # Scenario: I log out and log back in again, and my sensor choice is remembered | |
cucumber features/teacher_manages_mixed_materials.feature:13 # Scenario: Teacher can view materials page for class with multiple runnable types | |
cucumber features/teacher_saves_edited_class.feature:36 # Scenario: Teacher can remove teacher from the class edit page | |
cucumber features/teacher_searches_groups_and_previews_instructional_materials.feature:62 # Scenario: Teacher can see classes in which materials are assigned on the search page | |
cucumber features/teacher_searches_groups_and_previews_instructional_materials.feature:168 # Scenario: Teacher can sort search activities on the basis of popularity | |
cucumber features/teacher_searches_groups_and_previews_instructional_materials.feature:202 # Scenario: Search results should be paginated | |
cucumber features/teacher_views_full_status.feature:14 # Scenario: Teacher can see all the offerings of the class | |
341 scenarios (8 failed, 7 skipped, 2 undefined, 1 pending, 323 passed) | |
3236 steps (8 failed, 99 skipped, 2 undefined, 1 pending, 3126 passed) | |
11m12.543s | |
You can implement step definitions for undefined steps with these snippets: | |
Then /^the published activity "([^"]*)" should be correctly modified by the API$/ do |arg1| | |
pending # express the regexp above with the code you wish you had | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment