Commit 7273eb72 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Merge branch 'qa-iteration-selector-update' into 'master'

Update e2e selectors for iteration sidebar & unquarantine test

See merge request gitlab-org/gitlab!63240
parents 8d05ef17 238c31bc
...@@ -117,7 +117,6 @@ export default { ...@@ -117,7 +117,6 @@ export default {
:issuable-type="issuableType" :issuable-type="issuableType"
class="gl-mt-5" class="gl-mt-5"
data-testid="iteration-edit" data-testid="iteration-edit"
data-qa-selector="iteration_container"
/> />
</template> </template>
<template v-else> <template v-else>
...@@ -129,7 +128,6 @@ export default { ...@@ -129,7 +128,6 @@ export default {
:issuable-type="issuableType" :issuable-type="issuableType"
class="gl-mt-5" class="gl-mt-5"
data-testid="iteration-edit" data-testid="iteration-edit"
data-qa-selector="iteration_container"
/> />
</template> </template>
</div> </div>
......
...@@ -300,7 +300,11 @@ export default { ...@@ -300,7 +300,11 @@ export default {
:attributeUrl="attributeUrl" :attributeUrl="attributeUrl"
:currentAttribute="currentAttribute" :currentAttribute="currentAttribute"
> >
<gl-link class="gl-text-gray-900! gl-font-weight-bold" :href="attributeUrl"> <gl-link
class="gl-text-gray-900! gl-font-weight-bold"
:href="attributeUrl"
:data-qa-selector="`${issuableAttribute}_link`"
>
{{ attributeTitle }} {{ attributeTitle }}
</gl-link> </gl-link>
</slot> </slot>
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
= dropdown_tag('Milestone', options: { title: _('Assign milestone'), toggle_class: 'js-milestone-select js-extra-options', filter: true, dropdown_class: 'dropdown-menu-selectable', placeholder: _('Search milestones'), data: { show_no: true, field_name: "#{issuable_type}[milestone_id]", project_id: issuable_sidebar[:project_id], issuable_id: issuable_sidebar[:id], ability_name: issuable_type, issue_update: issuable_sidebar[:issuable_json_path], use_id: true, default_no: true, selected: milestone[:title], null_default: true, display: 'static' }}) = dropdown_tag('Milestone', options: { title: _('Assign milestone'), toggle_class: 'js-milestone-select js-extra-options', filter: true, dropdown_class: 'dropdown-menu-selectable', placeholder: _('Search milestones'), data: { show_no: true, field_name: "#{issuable_type}[milestone_id]", project_id: issuable_sidebar[:project_id], issuable_id: issuable_sidebar[:id], ability_name: issuable_type, issue_update: issuable_sidebar[:issuable_json_path], use_id: true, default_no: true, selected: milestone[:title], null_default: true, display: 'static' }})
- if @project.group.present? && issuable_sidebar[:supports_iterations] - if @project.group.present? && issuable_sidebar[:supports_iterations]
.block{ class: 'gl-pt-0!' } .block{ class: 'gl-pt-0!', data: { qa_selector: 'iteration_container' } }
= render_if_exists 'shared/issuable/iteration_select', can_edit: can_edit_issuable.to_s, group_path: @project.group.full_path, project_path: issuable_sidebar[:project_full_path], issue_iid: issuable_sidebar[:iid], issuable_type: issuable_type = render_if_exists 'shared/issuable/iteration_select', can_edit: can_edit_issuable.to_s, group_path: @project.group.full_path, project_path: issuable_sidebar[:project_full_path], issue_iid: issuable_sidebar[:iid], issuable_type: issuable_type
- if issuable_sidebar[:supports_time_tracking] - if issuable_sidebar[:supports_time_tracking]
......
...@@ -108,7 +108,6 @@ export default { ...@@ -108,7 +108,6 @@ export default {
</script> </script>
<template> <template>
<div data-qa-selector="iteration_container">
<gl-dropdown :text="title" class="gl-w-full" @show="onDropdownShow"> <gl-dropdown :text="title" class="gl-w-full" @show="onDropdownShow">
<gl-dropdown-section-header class="gl-display-flex! gl-justify-content-center">{{ <gl-dropdown-section-header class="gl-display-flex! gl-justify-content-center">{{
__('Assign Iteration') __('Assign Iteration')
...@@ -150,5 +149,4 @@ export default { ...@@ -150,5 +149,4 @@ export default {
</template> </template>
</template> </template>
</gl-dropdown> </gl-dropdown>
</div>
</template> </template>
...@@ -34,7 +34,6 @@ exports[`ee/BoardContentSidebar matches the snapshot 1`] = ` ...@@ -34,7 +34,6 @@ exports[`ee/BoardContentSidebar matches the snapshot 1`] = `
<sidebardropdownwidget-stub <sidebardropdownwidget-stub
attrworkspacepath="gitlab-org" attrworkspacepath="gitlab-org"
class="gl-mt-5" class="gl-mt-5"
data-qa-selector="iteration_container"
data-testid="iteration-edit" data-testid="iteration-edit"
iid="27" iid="27"
issuableattribute="iteration" issuableattribute="iteration"
......
...@@ -16,6 +16,14 @@ module QA ...@@ -16,6 +16,14 @@ module QA
element :edit_link element :edit_link
end end
view 'app/assets/javascripts/sidebar/components/sidebar_dropdown_widget.vue' do
element :iteration_link, "`${issuableAttribute}_link`" # rubocop:disable QA/ElementWithPattern
end
view 'app/views/shared/issuable/_sidebar.html.haml' do
element :iteration_container
end
view 'ee/app/assets/javascripts/sidebar/components/weight/weight.vue' do view 'ee/app/assets/javascripts/sidebar/components/weight/weight.vue' do
element :edit_weight_link element :edit_weight_link
element :remove_weight_link element :remove_weight_link
......
...@@ -23,7 +23,7 @@ module QA ...@@ -23,7 +23,7 @@ module QA
Flow::Login.sign_in Flow::Login.sign_in
end end
it 'assigns a group iteration to an existing issue', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1173', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/332484', type: :stale } do it 'assigns a group iteration to an existing issue', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1173' do
issue.visit! issue.visit!
Page::Project::Issue::Show.perform do |issue| Page::Project::Issue::Show.perform do |issue|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment