Skip to content

Commit

Permalink
fix(tests): Adjusts tests for updated dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Feb 21, 2024
1 parent 606b0c9 commit 88dd80d
Show file tree
Hide file tree
Showing 3 changed files with 723 additions and 582 deletions.
7 changes: 5 additions & 2 deletions lib/components/FilePicker/FileList.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe('FilePicker FileList', () => {
expect(wrapper.find('th.row-checkbox').exists()).toBe(false)
})

it('header checkbox is shown if multiselect is `true`', () => {
it('header checkbox is shown if multiselect is `true`', async () => {
const wrapper = shallowMount(FileList, {
propsData: {
currentView: 'files',
Expand All @@ -122,10 +122,13 @@ describe('FilePicker FileList', () => {
path: '/',
},
})

await nextTick()

const selectAll = wrapper.find('[data-testid="select-all-checkbox"]')
expect(selectAll.exists()).toBe(true)
// there is an aria label
expect(selectAll.attributes('aria-label')).toBeTruthy()
expect(selectAll.props('ariaLabel')).toBeTruthy()
// no checked
expect(selectAll.props('checked')).toBe(false)
})
Expand Down
Loading

0 comments on commit 88dd80d

Please sign in to comment.