feat(SidePanel): new side panel tab look-and-feel (#3657)

This commit is contained in:
Joe Boccanfuso authored and GitHub committed 2023-09-22 15:36:44 -04:00
1 parent 48bbd6281a
commit 85c899b399
22 files changed
+827 -246

No files matched your search

+10 -7
View File
@@ -144,19 +144,22 @@ Cypress.Commands.add('drag', { prevSubject: 'element' }, (...args) =>
* @param {number[]} secondClick - Click position [x, y]
*/
Cypress.Commands.add('addLine', (viewport, firstClick, secondClick) => {
const performClick = (alias, x, y) => {
cy.get(alias).click(x, y, { force: true, multiple: true }).wait(250);
};
cy.get(viewport).as('viewportAlias');
const [x1, y1] = firstClick;
const [x2, y2] = secondClick;
// First click
cy.get('@viewportAlias').click(x1, y1, { force: true, multiple: true }).wait(250);
performClick('@viewportAlias', x1, y1);
// Move the mouse and then click again
cy.get('@viewportAlias')
.trigger('mousemove', { clientX: x2, clientY: y2 })
.get('@viewportAlias')
.click(x2, y2, { force: true, multiple: true })
.wait(250);
// Move the mouse
cy.get('@viewportAlias').trigger('mousemove', { clientX: x2, clientY: y2 }).wait(250);
// Second click
performClick('@viewportAlias', x2, y2);
});
/**