Skip to content

Commit

Permalink
checkbox checked
Browse files Browse the repository at this point in the history
  • Loading branch information
danstarns committed Aug 30, 2024
1 parent 518af59 commit 21faf0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/specs/issue_replications/checkbox-not-working.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Editor from '../../../src/editor/model/Editor';
import ComponentWrapper from '../../../src/dom_components/model/ComponentWrapper';

// https://github.com/GrapesJS/grapesjs/pull/6095
describe('Checkbox Behaviour', () => {
let em: Editor;
let fixtures: HTMLElement;
Expand Down Expand Up @@ -53,8 +54,6 @@ describe('Checkbox Behaviour', () => {

cmp.getTrait('checked').setValue(false);

expect(input?.checked).toBe(false);
expect(cmp.getAttributes().checked).toBe('false');
expect(input?.getAttribute('checked')).toBe('false');
});
});

0 comments on commit 21faf0d

Please sign in to comment.