blob: 0c23d7cffbb398cd049b0f117c2382fcad568397 (
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
|
# 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
private
def filter_by_name(name)
within_element(:project_filter_form) do
fill_in :name, with: name
end
end
end
end
end
end
|