blob: 5654cc01e0947697599531d7ce45b1f5bc3c5387 (
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
|
module QA
module Page
module Dashboard
class Groups < Page::Base
include Page::Component::GroupsFilter
view 'app/views/dashboard/_groups_head.html.haml' do
element :new_group_button, 'link_to _("New group")'
end
def has_group?(name)
filter_by_name(name)
page.has_link?(name)
end
def go_to_group(name)
click_link name
end
def go_to_new_group
click_on 'New group'
end
end
end
end
end
|