blob: 5831a713ae5adb72f62f4470b869ed2655bfe857 (
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
38
39
40
41
42
|
# frozen_string_literal: true
module QA
module Page
module Component
module Import
module Gitlab
extend QA::Page::PageConcern
def self.included(base)
super
base.view 'app/views/import/gitlab_projects/new.html.haml' do
element :import_project_button
end
base.view 'app/views/import/shared/_new_project_form.html.haml' do
element :project_name_field
element :project_slug_field
end
end
def set_imported_project_name(name)
fill_element(:project_name_field, name)
end
def attach_exported_file(path)
page.attach_file("file", path, make_visible: { display: 'block' })
end
def click_import_gitlab_project
click_element(:import_project_button)
wait_until(reload: false) do
has_notice?("The project was successfully imported.") || has_element?(:project_name_content)
end
end
end
end
end
end
end
|