2019-12-23 10:34:28 +00:00
|
|
|
import {
|
|
|
|
visitAndApproveStorage
|
|
|
|
} from '../../support/ui-test-helper.js';
|
|
|
|
|
|
|
|
describe('UI - Tool selection', function () {
|
|
|
|
beforeEach(() => {
|
|
|
|
visitAndApproveStorage();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should set rectangle selection by click', function () {
|
2020-10-16 21:22:31 +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-10-16 21:22:31 +00:00
|
|
|
.wait(100) // this delay seems necessary
|
|
|
|
.trigger('mouseup', {force: true})
|
2019-12-23 10:34:28 +00:00
|
|
|
.should((button) => {
|
|
|
|
expect(button).to.have.class('tool_button_current');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|