Cucumber Features

Expand All

Collapse All

Feature: Authored Hints

features/teacher_tools/authored_hints.feature:3

Scenario: View Authored Hints

NoActiveTunnelForIdentifier - Misconfigured -- No active tunnel found for provided identifier (Selenium::WebDriver::Error::SessionNotCreatedError)
./utils/selenium_browser.rb:51:in `create_response'
:90:in `tap'
./utils/selenium_browser.rb:24:in `block in remote'
./utils/selenium_browser.rb:74:in `with_read_timeout'
./utils/selenium_browser.rb:23:in `remote'
./features/support/connect.rb:51:in `saucelabs_browser'
./features/support/connect.rb:85:in `block in get_browser'
./features/support/connect.rb:84:in `get_browser'
./features/support/connect.rb:124:in `Before'
./features/support/hooks.rb:28:in `block in '
49    # Replaces 'unexpected response' message with the actual parsed error from the JSON response, if provided.
50    def create_response(code, body, content_type)
51      super
52    rescue Selenium::WebDriver::Error::WebDriverError => exception
53      if (msg = exception.message.match(/unexpected response, code=(?\d+).*\n(?.*)/))
54# gem install syntax to get syntax highlighting
  1. Given I am on "http://studio.code.org/courses/allthethingscourse/units/1/lessons/6/levels/2?noautoplay=true"
    features/step_definitions/steps.rb:125
  2. And I wait to see "#lightbulb"
    features/step_definitions/steps.rb:160
  3. # This level has a total of three authored hints
  4. Then the hint lightbulb shows 3 hints available
    features/step_definitions/authoredHints.rb:1
  5. # View the first hint
  6. When I view the next authored hint
    features/step_definitions/authoredHints.rb:21
  7. Then element ".csf-top-instructions" contains text "This is the first hint."
    features/step_definitions/steps.rb:817
  8. And element ".csf-top-instructions" contains text "It has some basic markup"
    features/step_definitions/steps.rb:817
  9. And the hint lightbulb shows 2 hints available
    features/step_definitions/authoredHints.rb:1
  10. # View the second hint verify that it contains an image
  11. When I view the next authored hint
    features/step_definitions/authoredHints.rb:21
  12. Then element ".csf-top-instructions" contains text "This is the second hint. It has a hint video."
    features/step_definitions/steps.rb:817
  13. And I see jquery selector .csf-top-instructions img
    features/step_definitions/steps.rb:1053
  14. And the hint lightbulb shows 1 hints available
    features/step_definitions/authoredHints.rb:1
  15. # View the third and final hint. Verify that the lightbulb no longer
    # has a counter.
  16. When I wait for the hint image to load
    features/step_definitions/authoredHints.rb:16
  17. And I view the next authored hint
    features/step_definitions/authoredHints.rb:21
  18. Then element ".csf-top-instructions" contains text "This is the third and final hint. It doesn't have anything special."
    features/step_definitions/steps.rb:817
  19. And the hint lightbulb shows no hints available
    features/step_definitions/authoredHints.rb:9
  20. # Finally, verify that further clicking the lightbulb has no effect
  21. When I press "lightbulb"
    features/step_definitions/steps.rb:436
  22. Then element ".csf-top-instructions button:contains(Yes)" does not exist
    features/step_definitions/steps.rb:921