Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
524fa33a
Commit
524fa33a
authored
May 22, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix es group search specs
parent
1574a921
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/features/es_group_search_spec.rb
spec/features/es_group_search_spec.rb
+6
-6
No files found.
spec/features/es_group_search_spec.rb
View file @
524fa33a
...
@@ -6,7 +6,7 @@ feature 'Group elastic search', js: true, feature: true do
...
@@ -6,7 +6,7 @@ feature 'Group elastic search', js: true, feature: true do
let
(
:project
)
{
create
(
:project
,
namespace:
group
)
}
let
(
:project
)
{
create
(
:project
,
namespace:
group
)
}
def
choose_group
(
group
)
def
choose_group
(
group
)
find
(
'.js-search-group-dropdown'
).
click
find
(
'.js-search-group-dropdown'
).
trigger
(
'click'
)
wait_for_ajax
wait_for_ajax
page
.
within
'.search-holder'
do
page
.
within
'.search-holder'
do
...
@@ -41,7 +41,7 @@ feature 'Group elastic search', js: true, feature: true do
...
@@ -41,7 +41,7 @@ feature 'Group elastic search', js: true, feature: true do
choose_group
group
choose_group
group
fill_in
'search'
,
with:
'chosen'
fill_in
'search'
,
with:
'chosen'
click_button
'Search'
find
(
'.btn-search'
).
trigger
(
'click'
)
select_filter
(
'Issues'
)
select_filter
(
'Issues'
)
expect
(
page
).
to
have_content
(
'chosen issue title'
)
expect
(
page
).
to
have_content
(
'chosen issue title'
)
...
@@ -60,7 +60,7 @@ feature 'Group elastic search', js: true, feature: true do
...
@@ -60,7 +60,7 @@ feature 'Group elastic search', js: true, feature: true do
choose_group
group
choose_group
group
fill_in
'search'
,
with:
'def'
fill_in
'search'
,
with:
'def'
click_button
'Search'
find
(
'.btn-search'
).
trigger
(
'click'
)
select_filter
(
'Code'
)
select_filter
(
'Code'
)
...
@@ -80,10 +80,10 @@ feature 'Group elastic search', js: true, feature: true do
...
@@ -80,10 +80,10 @@ feature 'Group elastic search', js: true, feature: true do
it
"finds pages"
do
it
"finds pages"
do
visit
search_path
visit
search_path
choose_group
group
choose_group
group
fill_in
"search"
,
with:
"term"
fill_in
"search"
,
with:
"term"
click_button
"Search"
find
(
'.btn-search'
).
trigger
(
'click'
)
select_filter
(
"Wiki"
)
select_filter
(
"Wiki"
)
...
@@ -104,7 +104,7 @@ feature 'Group elastic search', js: true, feature: true do
...
@@ -104,7 +104,7 @@ feature 'Group elastic search', js: true, feature: true do
choose_group
group
choose_group
group
fill_in
'search'
,
with:
'add'
fill_in
'search'
,
with:
'add'
click_button
'Search'
find
(
'.btn-search'
).
trigger
(
'click'
)
select_filter
(
'Commits'
)
select_filter
(
'Commits'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment