blob: 44619d177b1dd04d4478b04e34dfef373f04654d (
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 Project
module Wiki
class Show < Page::Base
include Page::Component::LegacyClonePanel
view 'app/views/projects/wikis/pages.html.haml' do
element :clone_repository_link, 'Clone repository' # rubocop:disable QA/ElementWithPattern
end
view 'app/views/projects/wikis/show.html.haml' do
element :wiki_page_content
end
def click_clone_repository
click_on 'Clone repository'
end
def wiki_text
find_element(:wiki_page_content).text
end
end
end
end
end
end
QA::Page::Project::Wiki::Show.prepend_if_ee('QA::EE::Page::Project::Wiki::Show')
|