mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 08:36:06 +10:00
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
This commit is contained in:
@@ -13,15 +13,15 @@ Feature: Search
|
||||
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
|
||||
Then I should see "Foo" link in the search results
|
||||
And I should not see "Bar" link in the search results
|
||||
|
||||
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
|
||||
Then I should see "Foo" link in the search results
|
||||
And I should not see "Bar" link in the search results
|
||||
|
||||
Scenario: I should see project code I am looking for
|
||||
When I click project "Shop" link
|
||||
@@ -33,14 +33,14 @@ Feature: Search
|
||||
When I click project "Shop" link
|
||||
And I search for "Foo"
|
||||
And I click "Issues" link
|
||||
Then I should see "Foo" link
|
||||
And I should not see "Bar" link
|
||||
Then I should see "Foo" link in the search results
|
||||
And I should not see "Bar" link in the search results
|
||||
|
||||
Scenario: I should see project merge requests
|
||||
And project has merge requests
|
||||
When I click project "Shop" link
|
||||
And I search for "Foo"
|
||||
And I click "Merge requests" link
|
||||
Then I should see "Foo" link
|
||||
And I should not see "Bar" link
|
||||
Then I should see "Foo" link in the search results
|
||||
And I should not see "Bar" link in the search results
|
||||
|
||||
|
||||
@@ -59,11 +59,11 @@ class Spinach::Features::Search < Spinach::FeatureSteps
|
||||
create(:merge_request, :simple, title: "Bar", source_project: project, target_project: project)
|
||||
end
|
||||
|
||||
step 'I should see "Foo" link' do
|
||||
page.should have_link "Foo"
|
||||
step 'I should see "Foo" link in the search results' do
|
||||
find(:css, '.search-results').should have_link 'Foo'
|
||||
end
|
||||
|
||||
step 'I should not see "Bar" link' do
|
||||
page.should_not have_link "Bar"
|
||||
step 'I should not see "Bar" link in the search results' do
|
||||
find(:css, '.search-results').should_not have_link 'Bar'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user