blob: c103bc26a363714c9c27aab5a4bd9bc08834f9dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# frozen_string_literal: true
module QA
module Page
module Dashboard
class Projects < Page::Base
view 'app/views/shared/projects/_search_form.html.haml' do
element :project_filter_form, required: true
end
def go_to_project(name)
filter_by_name(name)
find_link(text: name).click
end
def self.path
'/'
end
def clear_project_filter
fill_element(:project_filter_form, "")
end
private
def filter_by_name(name)
within_element(:project_filter_form) do
fill_in :name, with: name
end
end
end
end
end
end
QA::Page::Dashboard::Projects.prepend_if_ee('QA::EE::Page::Dashboard::Projects')
|