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
536efa47
Commit
536efa47
authored
Mar 21, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for reseting the filtered search state in the modal
parent
ee8f09da
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
add_issues_modal_spec.rb
spec/features/boards/add_issues_modal_spec.rb
+14
-0
No files found.
spec/features/boards/add_issues_modal_spec.rb
View file @
536efa47
...
...
@@ -23,6 +23,20 @@ describe 'Issue Boards add issue modal', :feature, :js do
wait_for_vue_resource
end
it
'resets filtered search state'
do
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
,
search:
'testing'
)
wait_for_vue_resource
click_button
(
'Add issues'
)
page
.
within
(
'.add-issues-modal'
)
do
expect
(
find
(
'.form-control'
).
value
).
to
eq
(
''
)
expect
(
page
).
to
have_selector
(
'.clear-search'
,
visible:
false
)
expect
(
find
(
'.form-control'
)[
:placeholder
]).
to
eq
(
'Search or filter results...'
)
end
end
context
'modal interaction'
do
it
'opens modal'
do
click_button
(
'Add issues'
)
...
...
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