diff --git a/test/wdio/slot-no-default/cmp.test.tsx b/test/wdio/slot-no-default/cmp.test.tsx index 84208ab4df2a..993823b19cf1 100644 --- a/test/wdio/slot-no-default/cmp.test.tsx +++ b/test/wdio/slot-no-default/cmp.test.tsx @@ -19,10 +19,10 @@ describe('slot-no-default', () => { }); it('only renders slots that have a location', async () => { - await expect(await $('slot-no-default a').getAttribute('hidden')).toBe(null); - await expect(await $('slot-no-default header').getAttribute('hidden')).toBe('true'); - await expect(await $('slot-no-default main').getAttribute('hidden')).toBe('true'); - await expect(await $('slot-no-default nav').getAttribute('hidden')).toBe(null); - await expect(await $('slot-no-default footer').getAttribute('hidden')).toBe(null); + await expect($('slot-no-default a')).not.toHaveAttribute('hidden'); + await expect($('slot-no-default header').toHaveAttribute('hidden', 'true'); + await expect($('slot-no-default main').toHaveAttribute('hidden', 'true'); + await expect($('slot-no-default nav').not.toHaveAttribute('hidden'); + await expect($('slot-no-default footer').not.toHaveAttribute('hidden'); }); });