Increase oembed cuke stability
By using the more robust step for posting
This commit is contained in:
parent
541d5580e0
commit
66a5a2ac1b
1 changed files with 5 additions and 17 deletions
|
|
@ -14,43 +14,31 @@ Feature: oembed
|
||||||
|
|
||||||
Scenario: Post a secure video link
|
Scenario: Post a secure video link
|
||||||
Given I expand the publisher
|
Given I expand the publisher
|
||||||
When I fill in the following:
|
When I click the publisher and post "http://youtube.com/watch?v=M3r2XDceM6A&format=json"
|
||||||
| status_message_fake_text | http://youtube.com/watch?v=M3r2XDceM6A&format=json |
|
|
||||||
And I press "Share"
|
|
||||||
Then I should see a video player
|
Then I should see a video player
|
||||||
|
|
||||||
Scenario: Post an unsecure video link
|
Scenario: Post an unsecure video link
|
||||||
Given I expand the publisher
|
Given I expand the publisher
|
||||||
When I fill in the following:
|
When I click the publisher and post "http://mytube.com/watch?v=M3r2XDceM6A&format=json"
|
||||||
| status_message_fake_text | http://mytube.com/watch?v=M3r2XDceM6A&format=json |
|
|
||||||
And I press "Share"
|
|
||||||
And I follow "My Aspects"
|
And I follow "My Aspects"
|
||||||
Then I should not see a video player
|
Then I should not see a video player
|
||||||
And I should see "http://mytube.com/watch?v=M3r2XDceM6A&format=json" within ".stream_element"
|
And I should see "http://mytube.com/watch?v=M3r2XDceM6A&format=json" within ".stream_element"
|
||||||
|
|
||||||
Scenario: Post an unsecure rich-typed link
|
Scenario: Post an unsecure rich-typed link
|
||||||
Given I expand the publisher
|
Given I expand the publisher
|
||||||
When I fill in the following:
|
When I click the publisher and post "http://myrichtube.com/watch?v=M3r2XDceM6A&format=json"
|
||||||
| status_message_fake_text | http://myrichtube.com/watch?v=M3r2XDceM6A&format=json |
|
|
||||||
And I press "Share"
|
|
||||||
And I follow "My Aspects"
|
And I follow "My Aspects"
|
||||||
Then I should not see a video player
|
Then I should not see a video player
|
||||||
And I should see "http://myrichtube.com/watch?v=M3r2XDceM6A&format=json" within ".stream_element"
|
And I should see "http://myrichtube.com/watch?v=M3r2XDceM6A&format=json" within ".stream_element"
|
||||||
|
|
||||||
Scenario: Post a photo link
|
Scenario: Post a photo link
|
||||||
Given I expand the publisher
|
Given I expand the publisher
|
||||||
When I fill in the following:
|
When I click the publisher and post "http://farm4.static.flickr.com/3123/2341623661_7c99f48bbf_m.jpg"
|
||||||
| status_message_fake_text | http://farm4.static.flickr.com/3123/2341623661_7c99f48bbf_m.jpg |
|
|
||||||
And I press "Share"
|
|
||||||
And I follow "My Aspects"
|
And I follow "My Aspects"
|
||||||
Then I should see a "img" within ".stream_element"
|
Then I should see a "img" within ".stream_element"
|
||||||
|
|
||||||
Scenario: Post an unsupported text link
|
Scenario: Post an unsupported text link
|
||||||
Given I expand the publisher
|
Given I expand the publisher
|
||||||
When I fill in the following:
|
When I click the publisher and post "http://www.we-do-not-support-oembed.com/index.html"
|
||||||
| status_message_fake_text | http://www.we-do-not-support-oembed.com/index.html |
|
|
||||||
And I press "Share"
|
|
||||||
And I follow "My Aspects"
|
And I follow "My Aspects"
|
||||||
Then I should see "http://www.we-do-not-support-oembed.com/index.html" within ".stream_element"
|
Then I should see "http://www.we-do-not-support-oembed.com/index.html" within ".stream_element"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue