diff --git a/features/mobile/not_safe_for_work.feature b/features/mobile/not_safe_for_work.feature index bbebf8e870ab1d53e62c8cdc637556f9995e63fd..ad510329c1ae5d2971568120d741c53bab30fb16 100644 --- a/features/mobile/not_safe_for_work.feature +++ b/features/mobile/not_safe_for_work.feature @@ -6,13 +6,13 @@ Feature: Not safe for work And a user with email "laura@office.example.com" is connected with "tommy@nsfw.example.com" Scenario: Setting not safe for work - - And I sign in as "tommy@nsfw.example.com" - When I go to the edit profile page + When I sign in as "tommy@nsfw.example.com" + And I go to the edit profile page And I mark myself as not safe for work And I submit the form Then I should be on the edit profile page And the "profile[nsfw]" checkbox should be checked + When I go to the edit profile page And I mark myself as safe for work And I submit the form @@ -21,7 +21,7 @@ Feature: Not safe for work Scenario: Toggling nsfw state #Nsfw users posts are marked nsfw - And "tommy@nsfw.example.com" has a public post with text "I love 0bj3ction4bl3 c0nt3nt!" and a poll + Given "tommy@nsfw.example.com" has a public post with text "I love 0bj3ction4bl3 c0nt3nt!" and a poll And "tommy@nsfw.example.com" has a public post with text "I love 0bj3ction4bl3 c0nt3nt!" and a location And "tommy@nsfw.example.com" has a public post with text "I love 0bj3ction4bl3 c0nt3nt!" and a picture @@ -31,41 +31,51 @@ Feature: Not safe for work And I should not see "What do you think about 1 ninjas?" And I should not see "Posted from:" And I should not see any picture in my stream + When I toggle all nsfw posts Then I should see "I love 0bj3ction4bl3 c0nt3nt!" And I should see "What do you think about 1 ninjas?" And I should see "Posted from:" And I should see 1 pictures in my stream - Scenario: Resharing a nsfw post with poll - And "tommy@nsfw.example.com" has a public post with text "Sexy Senators Gone Wild!" and a poll - And I sign in as "laura@office.example.com" + Scenario: Resharing a nsfw post with a poll + Given "tommy@nsfw.example.com" has a public post with text "Sexy Senators Gone Wild!" and a poll + + When I sign in as "laura@office.example.com" And I toggle all nsfw posts And I follow "Reshare" And I confirm the alert - And I go to the home page + Then I should see a "a.image_link.reshare_action.active" + + When I go to the home page Then I should not see "Sexy Senators Gone Wild!" And I should not see "What do you think about 1 ninjas?" And I should have 2 nsfw posts - Scenario: Resharing a nsfw post with location - And "tommy@nsfw.example.com" has a public post with text "Sexy Senators Gone Wild!" and a location - And I sign in as "laura@office.example.com" + Scenario: Resharing a nsfw post with a location + Given "tommy@nsfw.example.com" has a public post with text "Sexy Senators Gone Wild!" and a location + + When I sign in as "laura@office.example.com" And I toggle all nsfw posts And I follow "Reshare" And I confirm the alert - And I go to the home page + Then I should see a "a.image_link.reshare_action.active" + + When I go to the home page Then I should not see "Sexy Senators Gone Wild!" And I should not see "Posted from:" And I should have 2 nsfw posts - Scenario: Resharing a nsfw post with picture - And "tommy@nsfw.example.com" has a public post with text "Sexy Senators Gone Wild!" and a picture - And I sign in as "laura@office.example.com" + Scenario: Resharing a nsfw post with a picture + Given "tommy@nsfw.example.com" has a public post with text "Sexy Senators Gone Wild!" and a picture + + When I sign in as "laura@office.example.com" And I toggle all nsfw posts And I follow "Reshare" And I confirm the alert - And I go to the home page + Then I should see a "a.image_link.reshare_action.active" + + When I go to the home page Then I should not see "Sexy Senators Gone Wild!" And I should not see any picture in my stream And I should have 2 nsfw posts