Fixed tests

This commit is contained in:
Phil Hughes 2016-04-18 09:22:36 +01:00
parent 262a3dd482
commit f5bea9df53
3 changed files with 12 additions and 2 deletions

View file

@ -156,12 +156,15 @@
.search-holder {
@media (min-width: $screen-sm-min) {
display: -webkit-flex;
display: flex;
display: -ms-flexbox;
display: flex;
}
.search-field-holder {
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
position: relative;
width: 100%;
margin-right: 0;
@media (min-width: $screen-sm-min) {
@ -203,6 +206,7 @@
.dropdown-menu-toggle {
width: 100%;
margin-top: 5px;
border-radius: $border-radius-base;
@media (min-width: $screen-sm-min) {
width: 160px;

View file

@ -30,11 +30,13 @@ Feature: Search
Then I should see "Foo" link in the search results
And I should not see "Bar" link in the search results
@javascript
Scenario: I should see project code I am looking for
When I click project "Shop" link
And I search for "rspec"
Then I should see code results for project "Shop"
@javascript
Scenario: I should see project issues
And project has issues
When I click project "Shop" link
@ -43,6 +45,7 @@ Feature: Search
Then I should see "Foo" link in the search results
And I should not see "Bar" link in the search results
@javascript
Scenario: I should see project merge requests
And project has merge requests
When I click project "Shop" link
@ -51,6 +54,7 @@ Feature: Search
Then I should see "Foo" link in the search results
And I should not see "Bar" link in the search results
@javascript
Scenario: I should see project milestones
And project has milestones
When I click project "Shop" link
@ -59,6 +63,7 @@ Feature: Search
Then I should see "Foo" link in the search results
And I should not see "Bar" link in the search results
@javascript
Scenario: I should see Wiki blobs
And project has Wiki content
When I click project "Shop" link

View file

@ -35,6 +35,7 @@ class Spinach::Features::Search < Spinach::FeatureSteps
end
step 'I click project "Shop" link' do
click_button 'Project'
page.within '.project-filter' do
click_link project.name_with_namespace
end