From 77d45c28c9b77b5ed531bb15467a63ffd7990885 Mon Sep 17 00:00:00 2001
From: Steffen van Bergerem <svbergerem@online.de>
Date: Sun, 7 Feb 2016 23:20:39 +0100
Subject: [PATCH] Mark getting started as completed on mobile website

---
 app/views/users/getting_started.mobile.haml |  5 ++++-
 features/mobile/getting_started.feature     | 10 ++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/app/views/users/getting_started.mobile.haml b/app/views/users/getting_started.mobile.haml
index 216368ca7c..af1cb49595 100644
--- a/app/views/users/getting_started.mobile.haml
+++ b/app/views/users/getting_started.mobile.haml
@@ -76,5 +76,8 @@
         = text_field_tag "follow_tags", nil, class: "nostrap form-control"
 
     .center
-      = link_to "#{t('.awesome_take_me_to_diaspora')} »", stream_path, id: "awesome_button", class: "btn btn-primary"
+      = link_to "#{t('.awesome_take_me_to_diaspora')} »",
+        getting_started_completed_path,
+        id: "awesome_button",
+        class: "btn btn-primary"
 
diff --git a/features/mobile/getting_started.feature b/features/mobile/getting_started.feature
index 3e60a0c5b7..663ffe734f 100644
--- a/features/mobile/getting_started.feature
+++ b/features/mobile/getting_started.feature
@@ -30,3 +30,13 @@ Feature: editing the getting started in the mobile view
     When I follow "awesome_button"
     Then I should be on the stream page
     And I should not see "awesome_button"
+
+  Scenario: new user completes getting started and signs in again later
+    When I sign out manually on the mobile website
+    And I sign in manually as "ohai" with password "secret" on the mobile website
+    Then I should be on the getting started page
+    When I follow "awesome_button"
+    Then I should be on the stream page
+    When I sign out manually on the mobile website
+    And I sign in manually as "ohai" with password "secret" on the mobile website
+    Then I should be on the stream page
-- 
GitLab