Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Vucis committed May 21, 2024
1 parent 24feab4 commit 61e6ef7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/cypress/e2e/Header.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions frontend/cypress/e2e/HomePageTests.cy.tsx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
7 changes: 3 additions & 4 deletions frontend/tests/unit/header.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { describe, test } from "vitest";
import { render } from '@testing-library/react';
import { render } from "@testing-library/react";

Check failure on line 2 in frontend/tests/unit/header.test.tsx

View workflow job for this annotation

GitHub Actions / Frontend-tests

'render' is defined but never used

describe("Header", () => {
test.todo("Header test");
})

test.todo("Header test");
});

0 comments on commit 61e6ef7

Please sign in to comment.