Skip to content

Commit

Permalink
test: fix test to use HTML label
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Mar 3, 2022
1 parent c843f8b commit 9602b11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/checkbox/test/checkbox.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ describe('checkbox', () => {

describe('default', () => {
beforeEach(async () => {
checkbox = fixtureSync('<vaadin-checkbox label="I accept the terms and conditions"></vaadin-checkbox>');
checkbox = fixtureSync(`
<vaadin-checkbox>
<label slot="label">I accept <a href="#">the terms and conditions</a></label>
</vaadin-checkbox>
`);
// Wait for MutationObserver.
await nextFrame();
input = checkbox.inputElement;
Expand Down

0 comments on commit 9602b11

Please sign in to comment.