Skip to content

Commit

Permalink
Update test/wdio/slot-no-default/cmp.test.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Bromann <[email protected]>
  • Loading branch information
rwaskiewicz and christian-bromann authored Mar 22, 2024
1 parent 7a552d7 commit 20189d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/wdio/slot-no-default/cmp.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

0 comments on commit 20189d7

Please sign in to comment.