From 61e6ef760c42baac8030bb9be1065b9759b3d7f5 Mon Sep 17 00:00:00 2001 From: Siebe Vlietinck Date: Wed, 22 May 2024 00:21:47 +0200 Subject: [PATCH] more linting --- frontend/cypress/e2e/Header.cy.tsx | 2 +- frontend/cypress/e2e/HomePageTests.cy.tsx | 4 ++-- frontend/tests/unit/header.test.tsx | 7 +++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/cypress/e2e/Header.cy.tsx b/frontend/cypress/e2e/Header.cy.tsx index a6dbdcae..49b45a34 100644 --- a/frontend/cypress/e2e/Header.cy.tsx +++ b/frontend/cypress/e2e/Header.cy.tsx @@ -3,7 +3,7 @@ // component tests that everything is present that has to be present describe("Header functionality", () => { it("Header Login", () => { - cy.visit("http://localhost:5173"); + cy.visit("/"); cy.contains("Login") .should("be.visible") .should("have.attr", "href") diff --git a/frontend/cypress/e2e/HomePageTests.cy.tsx b/frontend/cypress/e2e/HomePageTests.cy.tsx index 3df96c1f..bec7f40e 100644 --- a/frontend/cypress/e2e/HomePageTests.cy.tsx +++ b/frontend/cypress/e2e/HomePageTests.cy.tsx @@ -1,12 +1,12 @@ describe("Homepage not logged in functionality", () => { it("Header Visible", () => { - cy.visit("http://localhost:5173"); + cy.visit("/"); cy.contains("PeristerĂ³nas"); cy.get("header").should("be.visible"); }); it("Center button Login", () => { - cy.visit("http://localhost:5173"); + cy.visit("/"); cy.contains("PeristerĂ³nas"); cy.get( "a.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-containedPrimary.MuiButton-sizeMedium.MuiButton-containedSizeMedium.MuiButton-colorPrimary.MuiButton-root.MuiButton-contained.MuiButton-containedPrimary.MuiButton-sizeMedium.MuiButton-containedSizeMedium.MuiButton-colorPrimary.css-sghohy-MuiButtonBase-root-MuiButton-root" diff --git a/frontend/tests/unit/header.test.tsx b/frontend/tests/unit/header.test.tsx index 98dee00b..095636dc 100644 --- a/frontend/tests/unit/header.test.tsx +++ b/frontend/tests/unit/header.test.tsx @@ -1,7 +1,6 @@ import { describe, test } from "vitest"; -import { render } from '@testing-library/react'; +import { render } from "@testing-library/react"; describe("Header", () => { - test.todo("Header test"); -}) - + test.todo("Header test"); +});