Skip to content

Commit

Permalink
Use data-testid for tag filter
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed May 17, 2023
1 parent 3108b1f commit 49a4688
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/web-app-files/src/components/Search/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
:items="availableTags"
:option-filter-label="$gettext('Filter tags')"
:show-option-filter="true"
class="files-search-filter-tags oc-mr-s"
class="oc-mr-s"
display-name-attribute="label"
filter-name="tags"
data-testid="files-search-filter-tags"
>
<template #image="{ item }">
<oc-avatar :width="24" :user-name="item.label" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jest.mock('web-pkg/src/composables/appDefaults')
const selectors = {
noContentMessageStub: 'no-content-message-stub',
resourceTableStub: 'resource-table-stub',
tagFilter: '.files-search-filter-tags'
tagFilter: '[data-testid="files-search-filter-tags"]'
}

describe('List component', () => {
Expand Down

0 comments on commit 49a4688

Please sign in to comment.