From d1c0e0fda7c011754d49f560f9719c9560496300 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Thu, 15 Jun 2023 01:05:21 +0200 Subject: [PATCH] added a testcase to enshure no regressions happen --- webclient/cypress/e2e/coordinates.cy.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 webclient/cypress/e2e/coordinates.cy.ts diff --git a/webclient/cypress/e2e/coordinates.cy.ts b/webclient/cypress/e2e/coordinates.cy.ts new file mode 100644 index 000000000..61225deeb --- /dev/null +++ b/webclient/cypress/e2e/coordinates.cy.ts @@ -0,0 +1,9 @@ +describe("Check if users can submit coordinates", () => { + it("main page", () => { + // 1902.02.286 is a unimportant room in Heilbron which will likely never get a coordinate + cy.visit("http://localhost:8000/view/1902.02.286"); + cy.intercept("POST", "/api/feedback/get_token", { statusCode: 201, fixture: "feedback_token.json" }); + }); +}); + +export {};