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 () {
|
2021-05-09 17:29:45 +00:00
|
|
|
cy.get('#tools_rect')
|
|
|
|
.should('not.have.attr', 'pressed');
|
|
|
|
cy.get('#tools_rect')
|
2021-05-12 23:00:09 +00:00
|
|
|
.trigger('click', { force: true })
|
2021-05-09 17:29:45 +00:00
|
|
|
.should('have.attr', 'pressed');
|
2019-12-23 10:34:28 +00:00
|
|
|
});
|
|
|
|
});
|