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
bf05a7e7
Commit
bf05a7e7
authored
Jan 11, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add selectors coupling for QA project show page object
parent
0619c537
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+1
-1
app/views/shared/_clone_panel.html.haml
app/views/shared/_clone_panel.html.haml
+1
-1
qa/qa/page/project/show.rb
qa/qa/page/project/show.rb
+14
-8
No files found.
app/views/projects/_home_panel.html.haml
View file @
bf05a7e7
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
.limit-container-width
{
class:
container_class
}
.limit-container-width
{
class:
container_class
}
.avatar-container.s70.project-avatar
.avatar-container.s70.project-avatar
=
project_icon
(
@project
,
alt:
@project
.
name
,
class:
'avatar s70 avatar-tile'
)
=
project_icon
(
@project
,
alt:
@project
.
name
,
class:
'avatar s70 avatar-tile'
)
%h1
.project-title
%h1
.project-title
.qa-project-name
=
@project
.
name
=
@project
.
name
%span
.visibility-icon.has-tooltip
{
data:
{
container:
'body'
},
title:
visibility_icon_description
(
@project
)
}
%span
.visibility-icon.has-tooltip
{
data:
{
container:
'body'
},
title:
visibility_icon_description
(
@project
)
}
=
visibility_level_icon
(
@project
.
visibility_level
,
fw:
false
)
=
visibility_level_icon
(
@project
.
visibility_level
,
fw:
false
)
...
...
app/views/shared/_clone_panel.html.haml
View file @
bf05a7e7
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
%span
%span
=
enabled_project_button
(
project
,
enabled_protocol
)
=
enabled_project_button
(
project
,
enabled_protocol
)
-
else
-
else
%a
#clone-dropdown
.btn.clone-dropdown-btn
{
href:
'#'
,
data:
{
toggle:
'dropdown'
}
}
%a
#clone-dropdown
.btn.clone-dropdown-btn
.qa-clone-dropdown
{
href:
'#'
,
data:
{
toggle:
'dropdown'
}
}
%span
%span
=
default_clone_protocol
.
upcase
=
default_clone_protocol
.
upcase
=
icon
(
'caret-down'
)
=
icon
(
'caret-down'
)
...
...
qa/qa/page/project/show.rb
View file @
bf05a7e7
...
@@ -2,15 +2,21 @@ module QA
...
@@ -2,15 +2,21 @@ module QA
module
Page
module
Page
module
Project
module
Project
class
Show
<
Page
::
Base
class
Show
<
Page
::
Base
##
view
'app/views/shared/_clone_panel.html.haml'
do
# TODO, define all selectors required by this page object
element
:clone_dropdown
#
element
:clone_options_dropdown
,
'.clone-options-dropdown'
# See gitlab-org/gitlab-qa#154
end
#
view
'app/views/projects/show.html.haml'
view
'app/views/shared/_clone_panel.html.haml'
do
element
:project_repository_location
,
'text_field_tag :project_clone'
end
view
'app/views/projects/_home_panel.html.haml'
do
element
:project_name
end
def
choose_repository_clone_http
def
choose_repository_clone_http
find
(
'#clone-dropdown'
).
click
click_element
:clone_dropdown
page
.
within
(
'.clone-options-dropdown'
)
do
page
.
within
(
'.clone-options-dropdown'
)
do
click_link
(
'HTTP'
)
click_link
(
'HTTP'
)
...
@@ -22,7 +28,7 @@ module QA
...
@@ -22,7 +28,7 @@ module QA
end
end
def
project_name
def
project_name
find
(
'.
project-titl
e'
).
text
find
(
'.
qa-project-nam
e'
).
text
end
end
def
wait_for_push
def
wait_for_push
...
...
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