Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getting_started.feature « mobile « features - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 12b341b92d75ffb21052650a7240b7fe4cd5d63b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@javascript @mobile
Feature: editing the getting started in the mobile view

  Background:
    Given I am on the login page
    When I follow "Create account" within ".navbar"
    And I fill in the new user form
    And I submit the form
    Then I should be on the getting started page
    Then I should see the 'getting started' contents

  Scenario: new user does not add any tags in setup wizard
    When I fill in the following:
      | profile_first_name | some name     |
    And I follow "awesome_button"
    Then I should be on the stream page
    And I should not see "awesome_button"

  Scenario: new user adds a profile photo and tags
    When I accept the alert after I attach the file "spec/fixtures/bad_urls.txt" to "qqfile" within "#file-upload"
    And I attach the file "spec/fixtures/button.png" to hidden "qqfile" within "#file-upload"
    Then I should see a "img" within "#profile_photo_upload"

    When I fill in "follow_tags" with "#men"
    And I press the first ".as-result-item" within ".as-results"
    Then I should see "#men" within "ul#as-selections-tags"

  Scenario: new user skips the setup wizard
    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
    And I go to the login page
    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
    And I go to the login page
    And I sign in manually as "ohai" with password "secret" on the mobile website
    Then I should be on the stream page