- Testing (UI): Add `force: true` and longer timeout to get tests passing

master
Brett Zamir 2020-02-21 10:33:56 +08:00
parent 178374afdf
commit 8f2d50873e
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ describe('UI - Control Points', function () {
<title>Layer 1</title>
<path d="m187,194a114,62 0 1 0 219,2" fill="#FF0000" stroke="#000000" stroke-width="5"/>
</g>
</svg>`, {parseSpecialCharSequences: false});
</svg>`, {force: true, parseSpecialCharSequences: false});
cy.get('#tool_source_save').click();
cy.get('#svg_1').click().click();

View File

@ -10,7 +10,7 @@ describe('UI - Tool selection', function () {
it('should set rectangle selection by click', function () {
cy.get('#tools_rect_show')
.trigger('mousedown', {force: true})
.trigger('mouseup', {force: true})
.trigger('mouseup', {force: true, timeout: 10000})
.should((button) => {
expect(button).to.have.class('tool_button_current');
});