Skip to content

Commit 73ab7e2

Browse files
committed
Merge pull request #6681 from svbergerem/mobile-getting-started-completed
Mark getting started as completed on mobile website
2 parents a87f313 + 77d45c2 commit 73ab7e2

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Contributions are very welcome, the hard work is done!
9494
* Limit flash message width on small devices [#6529](https://github.com/diaspora/diaspora/pull/6529)
9595
* Add navbar on mobile when not logged in [#6483](https://github.com/diaspora/diaspora/pull/6483)
9696
* Fix timeago tooltips for reshares [#6648](https://github.com/diaspora/diaspora/pull/6648)
97+
* "Getting started" is now turned off after first visit on mobile [#6681](https://github.com/diaspora/diaspora/pull/6681)
9798

9899
## Features
99100
* Support color themes [#6033](https://github.com/diaspora/diaspora/pull/6033)

app/views/users/getting_started.mobile.haml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,8 @@
7676
= text_field_tag "follow_tags", nil, class: "nostrap form-control"
7777

7878
.center
79-
= link_to "#{t('.awesome_take_me_to_diaspora')} »", stream_path, id: "awesome_button", class: "btn btn-primary"
79+
= link_to "#{t('.awesome_take_me_to_diaspora')} »",
80+
getting_started_completed_path,
81+
id: "awesome_button",
82+
class: "btn btn-primary"
8083

features/mobile/getting_started.feature

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,13 @@ Feature: editing the getting started in the mobile view
3030
When I follow "awesome_button"
3131
Then I should be on the stream page
3232
And I should not see "awesome_button"
33+
34+
Scenario: new user completes getting started and signs in again later
35+
When I sign out manually on the mobile website
36+
And I sign in manually as "ohai" with password "secret" on the mobile website
37+
Then I should be on the getting started page
38+
When I follow "awesome_button"
39+
Then I should be on the stream page
40+
When I sign out manually on the mobile website
41+
And I sign in manually as "ohai" with password "secret" on the mobile website
42+
Then I should be on the stream page

0 commit comments

Comments
 (0)