BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
07e95212
Commit
07e95212
authored
Aug 23, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix recent_searches_spec.rb by clicking on buttons instead of relying on hidden elements
parent
1899d543
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
recent_searches_spec.rb
spec/features/issues/filtered_search/recent_searches_spec.rb
+7
-4
No files found.
spec/features/issues/filtered_search/recent_searches_spec.rb
View file @
07e95212
...
...
@@ -80,7 +80,8 @@ describe 'Recent searches', js: true do
set_recent_searches
(
project_1_local_storage_key
,
'["foo", "bar"]'
)
visit
project_issues_path
(
project_1
)
all
(
'.filtered-search-history-dropdown-item'
,
visible:
false
)[
0
].
click
find
(
'.filtered-search-history-dropdown-toggle-button'
).
click
all
(
'.filtered-search-history-dropdown-item'
)[
0
].
click
wait_for_filtered_search
(
'foo'
)
expect
(
find
(
'.filtered-search'
).
value
.
strip
).
to
eq
(
'foo'
)
...
...
@@ -90,12 +91,14 @@ describe 'Recent searches', js: true do
set_recent_searches
(
project_1_local_storage_key
,
'["foo"]'
)
visit
project_issues_path
(
project_1
)
items_before
=
all
(
'.filtered-search-history-dropdown-item'
,
visible:
false
)
find
(
'.filtered-search-history-dropdown-toggle-button'
).
click
items_before
=
all
(
'.filtered-search-history-dropdown-item'
)
expect
(
items_before
.
count
).
to
eq
(
1
)
find
(
'.filtered-search-history-clear-button'
,
visible:
false
).
click
items_after
=
all
(
'.filtered-search-history-dropdown-item'
,
visible:
false
)
find
(
'.filtered-search-history-clear-button'
).
click
find
(
'.filtered-search-history-dropdown-toggle-button'
).
click
items_after
=
all
(
'.filtered-search-history-dropdown-item'
)
expect
(
items_after
.
count
).
to
eq
(
0
)
end
...
...
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