added delay necessary to pass this test

master
jfh 2020-09-19 12:55:19 +02:00
parent 213c075425
commit fa516488eb
1 changed files with 2 additions and 0 deletions

View File

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