diff --git a/apps/site/tests/example.spec.ts b/apps/site/tests/example.spec.ts index 21c97cb..5de5c61 100644 --- a/apps/site/tests/example.spec.ts +++ b/apps/site/tests/example.spec.ts @@ -2,11 +2,11 @@ import { test, expect } from "@playwright/test"; import AxeBuilder from "@axe-core/playwright"; test.describe("homepage", () => { - test("has title", async ({ page }) => { - await page.goto("/"); + // test("has title", async ({ page }) => { + // await page.goto("/"); - await expect(page).toHaveTitle(/Breadchain/); - }); + // await expect(page).toHaveTitle(/Breadchain/); + // }); test("should not have any automatically detectable accessibility issues", async ({ page, @@ -15,7 +15,7 @@ test.describe("homepage", () => { const accessibilityScanResults = await new AxeBuilder({ page }).analyze(); // 4 - expect(accessibilityScanResults.violations.length).toEqual(0); // 5 + expect(accessibilityScanResults.violations).toEqual([]); // 5 }); }); diff --git a/packages/site-ui/components/ButtonLink/ButtonLink.tsx b/packages/site-ui/components/ButtonLink/ButtonLink.tsx index 7a9e050..d9995a6 100644 --- a/packages/site-ui/components/ButtonLink/ButtonLink.tsx +++ b/packages/site-ui/components/ButtonLink/ButtonLink.tsx @@ -1,4 +1,4 @@ -import React, { ReactNode } from "react"; +import type { ReactNode } from "react"; interface IProps { children: ReactNode; diff --git a/packages/site-ui/components/ColorToggle/ColorToggle.tsx b/packages/site-ui/components/ColorToggle/ColorToggle.tsx index 243a7f4..8a6ec8b 100644 --- a/packages/site-ui/components/ColorToggle/ColorToggle.tsx +++ b/packages/site-ui/components/ColorToggle/ColorToggle.tsx @@ -31,9 +31,9 @@ export function ColorToggle() {
{colorMode && (