diff options
author | Tudor Pavel <tpavel@pitechplus.com> | 2014-02-17 16:54:19 +0200 |
---|---|---|
committer | Tudor Pavel <tpavel@pitechplus.com> | 2014-02-18 15:38:33 +0200 |
commit | 4f6b570fbe6e87befd9242f19acee1f14a28574e (patch) | |
tree | bd4d2221d20d62118648a0b4ae82259c35d1feb5 /features/project | |
parent | 8a55636f8974d73c097a52721e2208cea727bc17 (diff) | |
download | gitlab-ce-4f6b570fbe6e87befd9242f19acee1f14a28574e.tar.gz |
Filter issues by multiple labels with Spinach feature spec
Diffstat (limited to 'features/project')
-rw-r--r-- | features/project/issues/filter_labels.feature | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/features/project/issues/filter_labels.feature b/features/project/issues/filter_labels.feature new file mode 100644 index 00000000000..8df7a119e84 --- /dev/null +++ b/features/project/issues/filter_labels.feature @@ -0,0 +1,26 @@ +Feature: Project Filter Labels + Background: + Given I sign in as a user + And I own project "Shop" + And project "Shop" has issue "Bugfix1" with tags: "bug", "feature" + And project "Shop" has issue "Bugfix2" with tags: "bug", "enhancement" + And project "Shop" has issue "Feature1" with tags: "feature" + Given I visit project "Shop" issues page + + Scenario: I should see project issues + Then I should see "bug" in labels filter + And I should see "feature" in labels filter + And I should see "enhancement" in labels filter + + Scenario: I filter by one label + Given I click link "bug" + Then I should see "Bugfix1" in issues list + And I should see "Bugfix2" in issues list + And I should not see "Feature1" in issues list + + Scenario: I filter by two labels + Given I click link "bug" + And I click link "feature" + Then I should see "Bugfix1" in issues list + And I should not see "Bugfix2" in issues list + And I should not see "Feature1" in issues list |