Skip to content

Commit

Permalink
other way of testing center button
Browse files Browse the repository at this point in the history
  • Loading branch information
Vucis committed May 22, 2024
1 parent 5986010 commit 4d3d864
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions frontend/cypress/e2e/HomePageTests.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe("Homepage not logged in functionality", () => {
describe("Homepage functionality not logged in ", () => {
it("Header Visible", () => {
cy.visit("/");
cy.contains("Peristerónas");
Expand All @@ -9,9 +9,8 @@ describe("Homepage not logged in functionality", () => {
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"
"div.MuiContainer-root.MuiContainer-maxWidthSm.css-cuefkz-MuiContainer-root"
)
.eq(1)
.contains("Login")
.should("be.visible")
.should("have.attr", "href")
Expand Down
2 changes: 1 addition & 1 deletion frontend/tests/unit/header.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, test } from "vitest";
import { render } from "@testing-library/react";
//import { render } from "@testing-library/react";

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

0 comments on commit 4d3d864

Please sign in to comment.