fix an issue with tool selection test

This commit is contained in:
jfh
2020-10-16 23:22:31 +02:00
parent b8d3a862c8
commit 1552f13958
3 changed files with 5 additions and 3 deletions

View File

@@ -8,9 +8,11 @@ describe('UI - Tool selection', function () {
});
it('should set rectangle selection by click', function () {
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.get('#tools_rect_show')
.trigger('mousedown', {force: true})
.trigger('mouseup', {force: true, timeout: 10000})
.wait(100) // this delay seems necessary
.trigger('mouseup', {force: true})
.should((button) => {
expect(button).to.have.class('tool_button_current');
});