mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
17 lines
601 B
JavaScript
17 lines
601 B
JavaScript
context('Relationship Topics', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/editor.html');
|
|
cy.reload();
|
|
cy.get('[test-id="30-11-relationship"]').click({ force: true });
|
|
});
|
|
|
|
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');
|
|
|
|
cy.get('[test-id="control-56"]').invoke('attr', 'cy').should('eq', '-131.75');
|
|
});
|
|
});
|