Skip to content

Commit

Permalink
style: use test-id
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHirt committed Jun 29, 2021
1 parent 21843d3 commit 52184e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/web-app-files/src/components/AppBar/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
id="files-view-options-btn"
key="files-view-options-btn"
v-oc-tooltip="newButtonTooltip"
data-testid="files-view-options-btn"
data-test-id="files-view-options-btn"
:aria-label="newButtonAriaLabel"
variation="passive"
appearance="outline"
Expand All @@ -117,7 +117,7 @@
<li>
<oc-switch
v-model="hiddenFilesShownModel"
data-testid="files-switch-hidden-files"
data-test-id="files-switch-hidden-files"
:label="$gettext('Show hidden files')"
/>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('AppBar', () => {
directives: { OcTooltip: () => {} }
})

wrapper.find('[data-testid="files-switch-hidden-files"]').vm.$emit('change', false)
wrapper.find('[data-test-id="files-switch-hidden-files"]').vm.$emit('change', false)
await wrapper.vm.$nextTick()

expect(mutations.SET_HIDDEN_FILES_VISIBILITY).toHaveBeenCalled()
Expand Down

0 comments on commit 52184e7

Please sign in to comment.