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
7886f44d
Commit
7886f44d
authored
Jun 12, 2019
by
Mark Lapierre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow the Projects Dashboard to be validated
parent
14d19dfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
app/views/shared/projects/_search_form.html.haml
app/views/shared/projects/_search_form.html.haml
+1
-1
qa/qa/page/dashboard/projects.rb
qa/qa/page/dashboard/projects.rb
+6
-2
No files found.
app/views/shared/projects/_search_form.html.haml
View file @
7886f44d
-
form_field_classes
=
local_assigns
[
:admin_view
]
||
!
Feature
.
enabled?
(
:project_list_filter_bar
)
?
'input-short js-projects-list-filter'
:
''
-
placeholder
=
local_assigns
[
:search_form_placeholder
]
?
search_form_placeholder
:
'Filter by name...'
=
form_tag
filter_projects_path
,
method: :get
,
class:
'project-filter-form'
,
id:
'project-filter-form'
do
|
f
|
=
form_tag
filter_projects_path
,
method: :get
,
class:
'project-filter-form
qa-project-filter-form
'
,
id:
'project-filter-form'
do
|
f
|
=
search_field_tag
:name
,
params
[
:name
],
placeholder:
placeholder
,
class:
"project-filter-form-field form-control
#{
form_field_classes
}
"
,
...
...
qa/qa/page/dashboard/projects.rb
View file @
7886f44d
...
...
@@ -5,7 +5,7 @@ module QA
module
Dashboard
class
Projects
<
Page
::
Base
view
'app/views/shared/projects/_search_form.html.haml'
do
element
:
form_filter_by_name
,
/form_tag.+id: 'project-filter-form'/
# rubocop:disable QA/ElementWithPattern
element
:
project_filter_form
,
required:
true
end
def
go_to_project
(
name
)
...
...
@@ -14,10 +14,14 @@ module QA
find_link
(
text:
name
).
click
end
def
self
.
path
'/'
end
private
def
filter_by_name
(
name
)
page
.
within
(
'form#project-filter-form'
)
do
within_element
(
:project_filter_form
)
do
fill_in
:name
,
with:
name
end
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