@no_mobile
Feature: Shared content restrictions

Background:
  Given I am on "http://learn.code.org/s/playlab/puzzle/10?noautoplay=true"

@webpurify
Scenario: Sharing a profane studio game
  And I've initialized the workspace with a studio say block saying "shit"
  When I press "x-close"
  Then I press "runButton"
  Then I press ".share" using jQuery
  And I wait for 3 seconds
  Then I wait to see "#share-fail-explanation"

Scenario: Sharing a phone number studio game
  Given I am on "http://learn.code.org/s/playlab/puzzle/10?noautoplay=true"
  And I've initialized the workspace with a studio say block saying "800.555.5555"
  When I press "x-close"
  Then I press "runButton"
  Then I press ".share" using jQuery
  And I wait for 3 seconds
  Then I wait to see "#share-fail-explanation"

Scenario: Sharing an email studio game
  Given I am on "http://learn.code.org/s/playlab/puzzle/10?noautoplay=true"
  And I've initialized the workspace with a studio say block saying "brian@code.org"
  When I press "x-close"
  Then I press "runButton"
  Then I press ".share" using jQuery
  And I wait for 3 seconds
  Then I wait to see "#share-fail-explanation"

@no_mobile
Feature: Shared content restrictions

Background:
  Given I am on "http://learn.code.org/s/playlab/puzzle/10?noautoplay=true"

@webpurify
Scenario: Sharing a profane studio game
  And I've initialized the workspace with a studio say block saying "shit"
  When I press "x-close"
  Then I press "runButton"
  Then I press ".share" using jQuery
  Then I wait to see "#share-fail-explanation"

Scenario: Sharing a phone number studio game
  Given I am on "http://learn.code.org/s/playlab/puzzle/10?noautoplay=true"
  And I've initialized the workspace with a studio say block saying "800.555.5555"
  When I press "x-close"
  Then I press "runButton"
  Then I press ".share" using jQuery
  Then I wait to see "#share-fail-explanation"

Scenario: Sharing an email studio game
  Given I am on "http://learn.code.org/s/playlab/puzzle/10?noautoplay=true"
  And I've initialized the workspace with a studio say block saying "brian@code.org"
  When I press "x-close"
  Then I press "runButton"
  Then I press ".share" using jQuery
  Then I wait to see "#share-fail-explanation"

Remove unnecessary waits from test
Remove unnecessary waits from test
