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

single_post_view_moderation.feature « desktop « features - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 816354ccfb28e5444e968e2c0fb3093b690fb797 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@javascript
  Feature: using SPV moderation buttons

  Background:
    Given following users exist:
      | username   |
      | bob        |
      | alice      |
    And a user with username "bob" is connected with "alice"
    And I sign in as "bob@bob.bob"

  Scenario: hide a contact's post
    Given I expand the publisher
    When I write the status message "Here is a post to test with"
    And I submit the publisher

    And I log out
    And I sign in as "alice@alice.alice"

    And I open the show page of the "Here is a post to test with" post
    And I confirm the alert after I click to hide the post

    Then I should be on the stream page

  Scenario: block a contact
    Given I expand the publisher
    When I write the status message "Here is a post to test with"
    And I submit the publisher

    And I log out
    And I sign in as "alice@alice.alice"

    And I open the show page of the "Here is a post to test with" post
    And I confirm the alert after I click to block the user

    Then I should be on the stream page

  Scenario: report a contact
    Given I expand the publisher
    When I write the status message "Here is a post to test with"
    And I submit the publisher

    And I log out
    And I sign in as "alice@alice.alice"

    And I open the show page of the "Here is a post to test with" post
    And I confirm the prompt after I click to report the post

    And I should see a flash message containing "The report has successfully been created"

  Scenario: delete own post
    Given I expand the publisher
    When I write the status message "Here is a post to test with"
    And I submit the publisher

    And I open the show page of the "Here is a post to test with" post
    And I confirm the alert after I click to delete the post
    Then I should be on the stream page