Merge branch 'next-minor' into develop
This commit is contained in:
commit
b076a1a1ff
2 changed files with 14 additions and 4 deletions
|
|
@ -13,8 +13,9 @@ Feature: new user registration
|
||||||
| profile_first_name | O |
|
| profile_first_name | O |
|
||||||
And I confirm the alert after I follow "awesome_button"
|
And I confirm the alert after I follow "awesome_button"
|
||||||
Then I should be on the stream page
|
Then I should be on the stream page
|
||||||
|
And the publisher should be expanded
|
||||||
And I close the publisher
|
And I close the publisher
|
||||||
And I should not see "awesome_button"
|
Then I should not see "awesome_button"
|
||||||
And I should not see any posts in my stream
|
And I should not see any posts in my stream
|
||||||
|
|
||||||
Scenario: new user tries to XSS itself
|
Scenario: new user tries to XSS itself
|
||||||
|
|
@ -35,17 +36,21 @@ Feature: new user registration
|
||||||
Scenario: new user skips the setup wizard
|
Scenario: new user skips the setup wizard
|
||||||
When I confirm the alert after I follow "awesome_button"
|
When I confirm the alert after I follow "awesome_button"
|
||||||
Then I should be on the stream page
|
Then I should be on the stream page
|
||||||
And I close the publisher
|
And the publisher should be expanded
|
||||||
|
|
||||||
Scenario: first status message is public
|
Scenario: first status message is public
|
||||||
When I confirm the alert after I follow "awesome_button"
|
When I confirm the alert after I follow "awesome_button"
|
||||||
Then I should be on the stream page
|
Then I should be on the stream page
|
||||||
|
And the publisher should be expanded
|
||||||
And I should see "Public" within ".aspect_dropdown"
|
And I should see "Public" within ".aspect_dropdown"
|
||||||
|
|
||||||
Scenario: new user without any tags posts first status message
|
Scenario: new user without any tags posts first status message
|
||||||
When I confirm the alert after I follow "awesome_button"
|
When I confirm the alert after I follow "awesome_button"
|
||||||
Then I should be on the stream page
|
Then I should be on the stream page
|
||||||
When I submit the publisher
|
And the publisher should be expanded
|
||||||
|
When I wait for the popovers to appear
|
||||||
|
And I click close on all the popovers
|
||||||
|
And I submit the publisher
|
||||||
Then "Hey everyone, I’m #newhere." should be post 1
|
Then "Hey everyone, I’m #newhere." should be post 1
|
||||||
|
|
||||||
Scenario: new user with some tags posts first status message
|
Scenario: new user with some tags posts first status message
|
||||||
|
|
@ -55,7 +60,10 @@ Feature: new user registration
|
||||||
And I press the first ".as-result-item" within "#as-results-tags"
|
And I press the first ".as-result-item" within "#as-results-tags"
|
||||||
And I follow "awesome_button"
|
And I follow "awesome_button"
|
||||||
Then I should be on the stream page
|
Then I should be on the stream page
|
||||||
When I submit the publisher
|
And the publisher should be expanded
|
||||||
|
When I wait for the popovers to appear
|
||||||
|
And I click close on all the popovers
|
||||||
|
And I submit the publisher
|
||||||
Then "Hey everyone, I’m #newhere. I’m interested in #rockstar." should be post 1
|
Then "Hey everyone, I’m #newhere. I’m interested in #rockstar." should be post 1
|
||||||
|
|
||||||
Scenario: closing a popover clears getting started
|
Scenario: closing a popover clears getting started
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ module PublishingCukeHelpers
|
||||||
def submit_publisher
|
def submit_publisher
|
||||||
txt = find("#publisher #status_message_text").value
|
txt = find("#publisher #status_message_text").value
|
||||||
find("#publisher .btn-primary").click
|
find("#publisher .btn-primary").click
|
||||||
|
# wait for the publisher to be closed
|
||||||
|
expect(find("#publisher")["class"]).to include("closed")
|
||||||
# wait for the content to appear
|
# wait for the content to appear
|
||||||
expect(find("#main_stream")).to have_content(txt)
|
expect(find("#main_stream")).to have_content(txt)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue