2022-01-25 21:57:29 +01:00
|
|
|
context('Relationship Topics', () => {
|
2022-07-13 03:58:11 +02:00
|
|
|
beforeEach(() => {
|
|
|
|
cy.visit('/editor.html');
|
|
|
|
cy.reload();
|
|
|
|
cy.get('[test-id="30-11-relationship"]').click({ force: true });
|
|
|
|
});
|
2022-01-25 21:57:29 +01:00
|
|
|
|
2022-07-13 03:58:11 +02:00
|
|
|
it('Change shape relationship', () => {
|
|
|
|
cy.get('[test-id="control-56"]').trigger('mousedown', { force: true });
|
|
|
|
cy.get('body').trigger('mousemove', { clientX: 500, clientY: 200 });
|
|
|
|
cy.get('body').trigger('mouseup');
|
|
|
|
cy.matchImageSnapshot('changeShapeRealtionship');
|
2022-01-25 21:57:29 +01:00
|
|
|
|
2022-07-13 03:58:11 +02:00
|
|
|
cy.get('[test-id="control-56"]').invoke('attr', 'cy').should('eq', '-131.75');
|
|
|
|
});
|
2022-01-25 21:57:29 +01:00
|
|
|
});
|