diff --git a/app/assets/javascripts/members/components/filter_sort/sort_dropdown.vue b/app/assets/javascripts/members/components/filter_sort/sort_dropdown.vue index ce28283ccdf..01f145e0862 100644 --- a/app/assets/javascripts/members/components/filter_sort/sort_dropdown.vue +++ b/app/assets/javascripts/members/components/filter_sort/sort_dropdown.vue @@ -4,6 +4,7 @@ import { mapState } from 'vuex'; import { visitUrl } from '~/lib/utils/url_utility'; import { FIELDS } from '~/members/constants'; import { parseSortParam, buildSortHref } from '~/members/utils'; +import { SORT_DIRECTION_UI } from '~/search/sort/constants'; export default { name: 'SortDropdown', @@ -30,6 +31,9 @@ export default { isAscending() { return !this.sort.sortDesc; }, + sortDirectionData() { + return this.isAscending ? SORT_DIRECTION_UI.asc : SORT_DIRECTION_UI.desc; + }, filteredOptions() { return FIELDS.filter( (field) => this.tableSortableFields.includes(field.key) && field.sort, @@ -70,7 +74,7 @@ export default { data-testid="members-sort-dropdown" :text="activeOptionLabel" :is-ascending="isAscending" - :sort-direction-tool-tip="__('Sort direction')" + :sort-direction-tool-tip="sortDirectionData.tooltip" @sortDirectionChange="handleSortDirectionChange" > 1, editable, }, scopedSlots: { diff --git a/app/assets/javascripts/vue_shared/components/markdown/header.vue b/app/assets/javascripts/vue_shared/components/markdown/header.vue index 6019412b688..89fffdedbfd 100644 --- a/app/assets/javascripts/vue_shared/components/markdown/header.vue +++ b/app/assets/javascripts/vue_shared/components/markdown/header.vue @@ -243,6 +243,7 @@ export default { variant="confirm" category="primary" size="small" + data-qa-selector="dismiss_suggestion_popover_button" @click="handleSuggestDismissed" > {{ __('Got it') }} diff --git a/app/assets/javascripts/vue_shared/components/registry/registry_search.vue b/app/assets/javascripts/vue_shared/components/registry/registry_search.vue index 1948a6778f4..8c9c7c63db1 100644 --- a/app/assets/javascripts/vue_shared/components/registry/registry_search.vue +++ b/app/assets/javascripts/vue_shared/components/registry/registry_search.vue @@ -1,6 +1,7 @@