Commit c362fcab authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'willmeek-master-patch-71748' into 'master'

Update to re-add QA selectors

See merge request gitlab-org/gitlab!56324
parents 53e5e304 a89806b6
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
</script> </script>
<template> <template>
<gl-modal :modal-id="modalId" body-class="gl-p-0!"> <gl-modal :modal-id="modalId" body-class="gl-p-0!" data-qa-selector="export_issuable_modal">
<template #modal-title> <template #modal-title>
<gl-sprintf :message="__('Export %{name}')"> <gl-sprintf :message="__('Export %{name}')">
<template #name>{{ issuableName }}</template> <template #name>{{ issuableName }}</template>
......
...@@ -60,11 +60,13 @@ export default { ...@@ -60,11 +60,13 @@ export default {
v-gl-tooltip.hover="__('Export as CSV')" v-gl-tooltip.hover="__('Export as CSV')"
v-gl-modal="exportModalId" v-gl-modal="exportModalId"
icon="export" icon="export"
data-qa-selector="export_as_csv_button"
data-testid="export-csv-button" data-testid="export-csv-button"
/> />
<gl-dropdown <gl-dropdown
v-if="showImportButton" v-if="showImportButton"
v-gl-tooltip.hover="__('Import issues')" v-gl-tooltip.hover="__('Import issues')"
data-qa-selector="import_issues_dropdown"
data-testid="import-csv-dropdown" data-testid="import-csv-dropdown"
icon="import" icon="import"
> >
......
...@@ -15,18 +15,18 @@ module QA ...@@ -15,18 +15,18 @@ module QA
element :avatar_counter_content element :avatar_counter_content
end end
view 'app/views/shared/issuable/csv_export/_button.html.haml' do view 'app/assets/javascripts/issuable/components/csv_import_export_buttons.vue' do
element :export_as_csv_button element :export_as_csv_button
element :import_issues_dropdown
element :import_from_jira_link
end end
view 'app/views/shared/issuable/csv_export/_modal.html.haml' do view 'app/views/shared/issuable/csv_export/_modal.html.haml' do
element :export_issues_button element :export_issues_button
element :export_issuable_modal
end end
view 'app/views/projects/issues/import_csv/_button.html.haml' do view 'app/assets/javascripts/issuable/components/csv_export_modal.vue' do
element :import_issues_button element :export_issuable_modal
element :import_from_jira_link
end end
view 'app/views/shared/issuable/_nav.html.haml' do view 'app/views/shared/issuable/_nav.html.haml' do
...@@ -60,7 +60,7 @@ module QA ...@@ -60,7 +60,7 @@ module QA
def click_import_issues_dropdown def click_import_issues_dropdown
# When there are no issues, the image that loads causes the buttons to jump # When there are no issues, the image that loads causes the buttons to jump
has_loaded_all_images? has_loaded_all_images?
click_element(:import_issues_button) click_element(:import_issues_dropdown)
end end
def export_issues_modal def export_issues_modal
......
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