add cypress scaffolding

This commit is contained in:
dwelle 2020-01-03 17:01:58 +01:00
parent 527209e740
commit 8ed7bbf555
10 changed files with 539 additions and 214 deletions

View file

@ -0,0 +1,10 @@
import { tools } from "../support/constants.js";
describe("Drawing elements", () => {
it("should draw rectangle", () => {
cy.visit("/");
cy.viewport(600, 600);
cy.pickTool(tools.rectangle);
cy.get("#canvas").canvasDrag({ x: 50, y: 50 }, { x: 100, y: 100 });
});
});