diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-08-27 10:48:51 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-08-27 10:48:51 +0300 |
commit | c3ad51a0e492108825093e12d441cca90d597a19 (patch) | |
tree | a4f4479b6fa15da2bb2b3b3439d6a1ff4ca33950 /features/search.feature | |
parent | ede08dbdd787fdd3a30b62dc0e7e2c796bb6d43a (diff) | |
download | gitlab-ce-c3ad51a0e492108825093e12d441cca90d597a19.tar.gz |
Improve search tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features/search.feature')
-rw-r--r-- | features/search.feature | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/features/search.feature b/features/search.feature new file mode 100644 index 00000000000..b174d973122 --- /dev/null +++ b/features/search.feature @@ -0,0 +1,29 @@ +@dashboard +Feature: Search + Background: + Given I sign in as a user + And I own project "Shop" + And I visit dashboard search page + + Scenario: I should see project I am looking for + Given I search for "Sho" + Then I should see "Shop" project link + + Scenario: I should see issues I am looking for + And project has issues + When I search for "Foo" + And I click "Issues" link + Then I should see "Foo" link + And I should not see "Bar" link + + Scenario: I should see merge requests I am looking for + And project has merge requests + When I search for "Foo" + When I click "Merge requests" link + Then I should see "Foo" link + And I should not see "Bar" link + + Scenario: I should see project code I am looking for + When I search for "rspec" + And I click project "Shop" link + Then I should see code results for project "Shop" |