summaryrefslogtreecommitdiff
path: root/features/dashboard/dashboard.feature
blob: 1af4d46dec92c8092dbf58d61ee72af9ea8253fd (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
59
60
61
62
63
64
65
66
67
68
69
70
@dashboard
Feature: Dashboard
  Background:
    Given I sign in as a user
    And I own project "Shop"
    And project "Shop" has push event
    And project "Shop" has CI enabled
    And project "Shop" has CI build
    And project "Shop" has labels: "bug", "feature", "enhancement"
    And project "Shop" has issue: "bug report"
    And I visit dashboard page

  Scenario: I should see projects list
    Then I should see "New Project" link
    Then I should see "Shop" project link
    Then I should see "Shop" project CI status

  @javascript
  Scenario: I should see activity list
    And I visit dashboard activity page
    Then I should see project "Shop" activity feed

  Scenario: I should see groups list
    Given I have group with projects
    And I visit dashboard page
    Then I should see groups list

  @javascript
  Scenario: I should see last push widget
    Then I should see last push widget
    And I click "Create Merge Request" link
    Then I see prefilled new Merge Request page

  @javascript
  Scenario: Sorting Issues
    Given I visit dashboard issues page
    And I sort the list by "Oldest updated"
    And I visit dashboard activity page
    And I visit dashboard issues page
    Then The list should be sorted by "Oldest updated"

  @javascript
  Scenario: Filtering Issues by label
    Given project "Shop" has issue "Bugfix1" with label "feature"
    When I visit dashboard issues page
    And I filter the list by label "feature"
    Then I should see "Bugfix1" in issues list

  @javascript
  Scenario: Visiting Project's issues after sorting
    Given I visit dashboard issues page
    And I sort the list by "Oldest updated"
    And I visit project "Shop" issues page
    Then The list should be sorted by "Oldest updated"

  @javascript
  Scenario: Sorting Merge Requests
    Given I visit dashboard merge requests page
    And I sort the list by "Oldest updated"
    And I visit dashboard activity page
    And I visit dashboard merge requests page
    Then The list should be sorted by "Oldest updated"

  @javascript
  Scenario: Visiting Project's merge requests after sorting
    Given project "Shop" has a "Bugfix MR" merge request open
    And I visit dashboard merge requests page
    And I sort the list by "Oldest updated"
    And I visit project "Shop" merge requests page
    Then The list should be sorted by "Oldest updated"