File: cucumber.feature

package info (click to toggle)
cloc 2.06-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,064 kB
  • sloc: perl: 30,146; cpp: 1,219; python: 623; ansic: 334; asm: 267; makefile: 244; sh: 186; sql: 144; java: 136; ruby: 111; cs: 104; pascal: 52; lisp: 50; haskell: 35; f90: 35; cobol: 35; objc: 25; php: 22; javascript: 15; fortran: 9; ml: 8; xml: 7; tcl: 2
file content (33 lines) | stat: -rw-r--r-- 1,341 bytes parent folder | download | duplicates (5)
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
# https://raw.githubusercontent.com/diaspora/diaspora/master/features/mobile/activity_stream.feature
@javascript @mobile
Feature: Viewing my activity on the steam mobile page
  In order to navigate Diaspora*
  As a mobile user
  I want to view my activity stream

  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"
             # another comment
  Scenario: Show my activity empty
    When I sign in as "bob@bob.bob" on the mobile website
    When I go to the activity stream page
    Then I should see "My activity" within "#main"
    And I should not see "Hello! I am #newhere"

  Scenario: Show liked post on my activity
    When I sign in as "bob@bob.bob" on the mobile website
    When I click on selector "a.like-action.inactive"
    And I go to the activity stream page
    Then I should see "My activity" within "#main"
    And I should see "Hello! I am #newhere" within ".ltr"

  Scenario: Show own post on my activity
    When I sign in as "alice@alice.alice" on the mobile website
    And I go to the activity stream page
    Then I should see "My activity" within "#main"
    And I should see "Hello! I am #newhere" within ".ltr"