2019-12-23 10:34:28 +00:00
|
|
|
import {
|
|
|
|
visitAndApproveStorage
|
|
|
|
} from '../../../support/ui-test-helper.js';
|
|
|
|
|
|
|
|
// See https://github.com/SVG-Edit/svgedit/issues/364
|
|
|
|
describe('Issue 364; IE errorwith rectangle selection by click', function () {
|
|
|
|
beforeEach(() => {
|
|
|
|
visitAndApproveStorage();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should set rectangle selection after click', function () {
|
2020-09-19 10:55:19 +00:00
|
|
|
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
2019-12-23 10:34:28 +00:00
|
|
|
cy.get('#tools_rect_show')
|
|
|
|
.trigger('mousedown', {force: true})
|
2020-09-19 10:55:19 +00:00
|
|
|
.wait(100) // this delay seems necessary
|
2019-12-23 10:34:28 +00:00
|
|
|
.trigger('mouseup', {force: true})
|
|
|
|
.should((button) => {
|
|
|
|
expect(button).to.have.class('tool_button_current');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|