Add a cuke for mobile stream page post timestamps

This commit is contained in:
cmrd Senya 2017-04-10 21:26:39 +03:00 committed by Steffen van Bergerem
parent 4621c54421
commit a880de28a8
No known key found for this signature in database
GPG key ID: 315C9787D548DC6B

View file

@ -0,0 +1,16 @@
@javascript @mobile
Feature: Viewing the main stream mobile page
Background:
Given following users exist:
| username |
| alice |
| bob |
And a user with username "bob" is connected with "alice"
And "alice@alice.alice" has a public post with text "Hello! I am #newhere"
Scenario: Show post with correct timestamp
When I sign in as "bob@bob.bob" on the mobile website
And I go to the stream page
Then I should see "Hello! I am #newhere" within ".ltr"
And I should see "less than a minute ago" within "#main_stream"