summaryrefslogtreecommitdiff
path: root/features/dashboard/event_filters.feature
blob: ec5680caba68c0726eea82b09f97645eddc081ef (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
@dashboard
Feature: Event Filters
  Background:
    Given I sign in as a user
    And I own a project
    And this project has push event
    And this project has new member event
    And this project has merge request event
    And I visit dashboard page

  @javascript
  Scenario: I should see all events
    Then I should see push event
    And I should see new member event
    And I should see merge request event

  @javascript
  Scenario: I should see only pushed events
    When I click "push" event filter 
    Then I should see push event
    And I should not see new member event
    And I should not see merge request event

  @javascript
  Scenario: I should see only joined events
    When I click "team" event filter
    Then I should see new member event
    And I should not see push event
    And I should not see merge request event

  @javascript
  Scenario: I should see only merged events
    When I click "merge" event filter
    Then I should see merge request event
    And I should not see push event
    And I should not see new member event

  @javascript
  Scenario: I should see only selected events while page reloaded
    When I click "push" event filter
    And I visit dashboard page
    Then I should see push event
    And I should not see new member event
    When I click "team" event filter
    And I visit dashboard page
    Then I should see push event
    And I should see new member event
    And I should not see merge request event
    When I click "push" event filter
    Then I should not see push event
    And I should see new member event
    And I should not see merge request event