Skip to content

Commit

Permalink
test(core): verify canvas user selection
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku authored and fake-join[bot] committed Aug 15, 2022
1 parent ab2fb24 commit c1571c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/spec/core/CanvasSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,18 @@ describe('Canvas', function() {

beforeEach(createDiagram());


it('should create <svg> element', inject(function() {

// then
// when
var svg = container.querySelector('svg');

expect(svg).not.to.be.null;
// then
// svg is created
expect(svg).to.exist;

// and user selectable
expect(svgAttr(svg, 'tabindex')).to.equal('0');
}));

});
Expand Down

0 comments on commit c1571c3

Please sign in to comment.