- Testing (UI): Add force: true and longer timeout to get tests passing
This commit is contained in:
@@ -18,7 +18,7 @@ describe('UI - Control Points', function () {
|
|||||||
<title>Layer 1</title>
|
<title>Layer 1</title>
|
||||||
<path d="m187,194a114,62 0 1 0 219,2" fill="#FF0000" stroke="#000000" stroke-width="5"/>
|
<path d="m187,194a114,62 0 1 0 219,2" fill="#FF0000" stroke="#000000" stroke-width="5"/>
|
||||||
</g>
|
</g>
|
||||||
</svg>`, {parseSpecialCharSequences: false});
|
</svg>`, {force: true, parseSpecialCharSequences: false});
|
||||||
cy.get('#tool_source_save').click();
|
cy.get('#tool_source_save').click();
|
||||||
cy.get('#svg_1').click().click();
|
cy.get('#svg_1').click().click();
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ describe('UI - Tool selection', function () {
|
|||||||
it('should set rectangle selection by click', function () {
|
it('should set rectangle selection by click', function () {
|
||||||
cy.get('#tools_rect_show')
|
cy.get('#tools_rect_show')
|
||||||
.trigger('mousedown', {force: true})
|
.trigger('mousedown', {force: true})
|
||||||
.trigger('mouseup', {force: true})
|
.trigger('mouseup', {force: true, timeout: 10000})
|
||||||
.should((button) => {
|
.should((button) => {
|
||||||
expect(button).to.have.class('tool_button_current');
|
expect(button).to.have.class('tool_button_current');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user