svgedit/cypress/integration/ui/tool-selection.js

18 lines
426 B
JavaScript
Raw Normal View History

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')
.trigger('click', {force: true})
.should('have.attr', 'pressed');
});
});