From a880de28a8bbf3fd08e043d58d3d2dc8ef58e134 Mon Sep 17 00:00:00 2001 From: cmrd Senya Date: Mon, 10 Apr 2017 21:26:39 +0300 Subject: [PATCH] Add a cuke for mobile stream page post timestamps --- features/mobile/stream.feature | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 features/mobile/stream.feature diff --git a/features/mobile/stream.feature b/features/mobile/stream.feature new file mode 100644 index 000000000..02301cd47 --- /dev/null +++ b/features/mobile/stream.feature @@ -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"