Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a1ca9ad0
Commit
a1ca9ad0
authored
Jan 07, 2019
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CE port of EE MR
parent
1d2ef4c6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+1
-1
qa/qa/page/component/select2.rb
qa/qa/page/component/select2.rb
+6
-0
qa/qa/page/project/new.rb
qa/qa/page/project/new.rb
+5
-0
qa/qa/page/settings/common.rb
qa/qa/page/settings/common.rb
+1
-1
No files found.
app/views/projects/new.html.haml
View file @
a1ca9ad0
...
...
@@ -33,7 +33,7 @@
%span
.d-block.d-sm-none
Blank
%li
.nav-item
{
role:
'presentation'
}
%a
.nav-link
{
href:
'#create-from-template-pane'
,
id:
'create-from-template-tab'
,
data:
{
toggle:
'tab'
,
track_label:
'create_from_template'
,
track_event:
"click_tab"
},
role:
'tab'
}
%span
.d-none.d-sm-block
Create from template
%span
.d-none.d-sm-block
.qa-project-create-from-template-tab
Create from template
%span
.d-block.d-sm-none
Template
%li
.nav-item
{
role:
'presentation'
}
%a
.nav-link
{
href:
'#import-project-pane'
,
id:
'import-project-tab'
,
data:
{
toggle:
'tab'
,
track_label:
'import_project'
,
track_event:
"click_tab"
},
role:
'tab'
}
...
...
qa/qa/page/component/select2.rb
View file @
a1ca9ad0
...
...
@@ -6,6 +6,12 @@ module QA
find
(
'.select2-result-label'
,
text:
item_text
).
click
end
def
clear_current_selection_if_present
if
has_css?
(
'a > abbr.select2-search-choice-close'
,
wait:
1.0
)
find
(
'a > abbr.select2-search-choice-close'
).
click
end
end
def
search_and_select
(
item_text
)
find
(
'.select2-input'
).
set
(
item_text
)
select_item
(
item_text
)
...
...
qa/qa/page/project/new.rb
View file @
a1ca9ad0
...
...
@@ -5,6 +5,7 @@ module QA
include
Page
::
Component
::
Select2
view
'app/views/projects/new.html.haml'
do
element
:project_create_from_template_tab
element
:import_project_tab
,
"Import project"
# rubocop:disable QA/ElementWithPattern
end
...
...
@@ -44,6 +45,10 @@ module QA
click_on
'Create project'
end
def
go_to_create_from_template
click_element
(
:project_create_from_template_tab
)
end
def
set_visibility
(
visibility
)
choose
visibility
end
...
...
qa/qa/page/settings/common.rb
View file @
a1ca9ad0
...
...
@@ -11,7 +11,7 @@ module QA
wait
(
reload:
false
)
do
click_button
'Expand'
unless
first
(
'button'
,
text:
'Collapse'
)
page
.
has_content?
(
'Collapse'
)
has_content?
(
'Collapse'
)
end
yield
if
block_given?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment