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
e64e8a84
Commit
e64e8a84
authored
Jul 22, 2020
by
Desiree Chevalier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds qa selectors for issuable list vue
Adds and updates qa selectors for new vue issuable list
parent
c866a62a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
19 deletions
+26
-19
app/assets/javascripts/issuables_list/components/issuable.vue
...assets/javascripts/issuables_list/components/issuable.vue
+9
-1
app/assets/javascripts/vue_shared/components/issue/issue_assignees.vue
...vascripts/vue_shared/components/issue/issue_assignees.vue
+2
-0
app/views/projects/issues/_issue.html.haml
app/views/projects/issues/_issue.html.haml
+1
-1
app/views/shared/issuable/_assignees.html.haml
app/views/shared/issuable/_assignees.html.haml
+1
-1
ee/app/views/projects/issues/_issue_weight.html.haml
ee/app/views/projects/issues/_issue_weight.html.haml
+1
-1
qa/qa/ee/page/project/issue/index.rb
qa/qa/ee/page/project/issue/index.rb
+3
-3
qa/qa/page/project/issue/index.rb
qa/qa/page/project/issue/index.rb
+9
-12
No files found.
app/assets/javascripts/issuables_list/components/issuable.vue
View file @
e64e8a84
...
...
@@ -234,6 +234,8 @@ export default {
:data-id="issuable.id"
:data-labels="labelIdsString"
:data-url="issuable.web_url"
data-qa-selector="issue_container"
:data-qa-issue-title="issuable.title"
>
<div
class=
"gl-display-flex"
>
<!-- Bulk edit checkbox -->
...
...
@@ -262,7 +264,12 @@ export default {
:title=
"$options.confidentialTooltipText"
:aria-label=
"$options.confidentialTooltipText"
/>
<gl-link
:href=
"issuable.web_url"
:target=
"linkTarget"
data-testid=
"issuable-title"
>
<gl-link
:href=
"issuable.web_url"
:target=
"linkTarget"
data-testid=
"issuable-title"
data-qa-selector=
"issue_link"
>
{{
issuable
.
title
}}
<gl-icon
v-if=
"isJiraIssue"
...
...
@@ -354,6 +361,7 @@ export default {
:title=
"__('Weight')"
class=
"gl-display-none d-sm-inline-block"
data-testid=
"weight"
data-qa-selector=
"issuable_weight_content"
>
<gl-icon
name=
"weight"
class=
"align-text-bottom"
/>
{{ issuable.weight }}
...
...
app/assets/javascripts/vue_shared/components/issue/issue_assignees.vue
View file @
e64e8a84
...
...
@@ -88,6 +88,7 @@ export default {
:img-size=
"iconSize"
class=
"js-no-trigger"
tooltip-placement=
"bottom"
data-qa-selector=
"assignee_link"
>
<span
class=
"js-assignee-tooltip"
>
<span
class=
"bold d-block"
>
{{
__
(
'
Assignee
'
)
}}
</span>
{{
assignee
.
name
}}
...
...
@@ -100,6 +101,7 @@ export default {
:title=
"assigneesCounterTooltip"
class=
"avatar-counter"
data-placement=
"bottom"
data-qa-selector=
"avatar_counter_content"
>
{{
assigneeCounterLabel
}}
</span
>
</div>
...
...
app/views/projects/issues/_issue.html.haml
View file @
e64e8a84
-# DANGER: Any changes to this file need to be reflected in issuables_list/components/issuable.vue!
%li
{
id:
dom_id
(
issue
),
class:
issue_css_classes
(
issue
),
url:
issue_path
(
issue
),
data:
{
labels:
issue
.
label_ids
,
id:
issue
.
id
,
qa_selector:
'issue'
,
qa_issue_title:
issue
.
title
}
}
%li
{
id:
dom_id
(
issue
),
class:
issue_css_classes
(
issue
),
url:
issue_path
(
issue
),
data:
{
labels:
issue
.
label_ids
,
id:
issue
.
id
,
qa_selector:
'issue
_container
'
,
qa_issue_title:
issue
.
title
}
}
.issue-box
-
if
@can_bulk_update
.issue-check.hidden
...
...
app/views/shared/issuable/_assignees.html.haml
View file @
e64e8a84
...
...
@@ -7,4 +7,4 @@
=
link_to_member
(
@project
,
assignee
,
name:
false
,
title:
"Assigned to :name"
)
-
if
more_assignees_count
.
positive?
%span
{
class:
'avatar-counter has-tooltip'
,
data:
{
container:
'body'
,
placement:
'bottom'
,
'line-type'
=>
'old'
,
'original-title'
=>
"+#{more_assignees_count} more assignees"
,
qa_selector:
'avatar_counter'
}
}
+
#{
more_assignees_count
}
%span
{
class:
'avatar-counter has-tooltip'
,
data:
{
container:
'body'
,
placement:
'bottom'
,
'line-type'
=>
'old'
,
'original-title'
=>
"+#{more_assignees_count} more assignees"
,
qa_selector:
'avatar_counter
_content
'
}
}
+
#{
more_assignees_count
}
ee/app/views/projects/issues/_issue_weight.html.haml
View file @
e64e8a84
-
issue
=
local_assigns
.
fetch
(
:issue
)
-
if
issue
.
weight
%span
.issuable-weight.d-none.d-sm-inline-block.has-tooltip
{
data:
{
container:
'body'
,
qa_selector:
'issuable_weight'
},
title:
_
(
'Weight'
)
}
%span
.issuable-weight.d-none.d-sm-inline-block.has-tooltip
{
data:
{
container:
'body'
,
qa_selector:
'issuable_weight
_content
'
},
title:
_
(
'Weight'
)
}
=
sprite_icon
(
'weight'
,
size:
16
,
css_class:
'issue-weight-icon'
)
=
issue
.
weight
qa/qa/ee/page/project/issue/index.rb
View file @
e64e8a84
...
...
@@ -17,14 +17,14 @@ module QA
element
:issue_filter_input
,
/%input.form-control.filtered-search/
# rubocop:disable QA/ElementWithPattern
end
view
'
ee/app/views/projects/issues/_issue_weight.html.haml
'
do
element
:issuable_weight
view
'
app/assets/javascripts/issuables_list/components/issuable.vue
'
do
element
:issuable_weight
_content
end
end
end
def
issuable_weight
find_element
(
:issuable_weight
)
find_element
(
:issuable_weight
_content
)
end
def
wait_for_issue_replication
(
issue
)
...
...
qa/qa/page/project/issue/index.rb
View file @
e64e8a84
...
...
@@ -5,8 +5,14 @@ module QA
module
Project
module
Issue
class
Index
<
Page
::
Base
view
'app/helpers/projects_helper.rb'
do
view
'app/assets/javascripts/issuables_list/components/issuable.vue'
do
element
:issue_container
element
:issue_link
end
view
'app/assets/javascripts/vue_shared/components/issue/issue_assignees.vue'
do
element
:assignee_link
element
:avatar_counter_content
end
view
'app/views/projects/issues/export_csv/_button.html.haml'
do
...
...
@@ -23,21 +29,12 @@ module QA
element
:import_from_jira_link
end
view
'app/views/projects/issues/_issue.html.haml'
do
element
:issue
element
:issue_link
,
'link_to issue.title'
# rubocop:disable QA/ElementWithPattern
end
view
'app/views/shared/issuable/_assignees.html.haml'
do
element
:avatar_counter
end
view
'app/views/shared/issuable/_nav.html.haml'
do
element
:closed_issues_link
end
def
avatar_counter
find_element
(
:avatar_counter
)
find_element
(
:avatar_counter
_content
)
end
def
click_issue_link
(
title
)
...
...
@@ -80,7 +77,7 @@ module QA
end
def
has_issue?
(
issue
)
has_element?
:issue
,
issue_title:
issue
.
title
has_element?
:issue
_container
,
issue_title:
issue
.
title
end
end
end
...
...
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