mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
french translations
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Home from "@/app/page";
|
||||
import About from "@/app/about/page";
|
||||
import Contact from "@/app/contact/page";
|
||||
import About from "@/app/qui-sommes-nous/page";
|
||||
import Contact from "@/app/contactez-nous/page";
|
||||
|
||||
const navbarFooterCheck = () => {
|
||||
it("includes navbar", () => {
|
||||
@@ -31,7 +31,7 @@ describe("Verify component mount", () => {
|
||||
});
|
||||
|
||||
it("correct h1 tags with page title included", () => {
|
||||
cy.get("h1").contains("about", { matchCase: false });
|
||||
cy.get("h1").contains("qui sommes-nous", { matchCase: false });
|
||||
});
|
||||
|
||||
navbarFooterCheck();
|
||||
@@ -43,7 +43,7 @@ describe("Verify component mount", () => {
|
||||
});
|
||||
|
||||
it("correct h1 tags with page title included", () => {
|
||||
cy.get("h1").contains("contact", { matchCase: false });
|
||||
cy.get("h1").contains("contactez-nous", { matchCase: false });
|
||||
});
|
||||
|
||||
navbarFooterCheck();
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
describe("Test all links", () => {
|
||||
const pages = ["tournois", "about", "contact"];
|
||||
const pages = ["tournois", "qui sommes-nous", "contactez-nous"];
|
||||
|
||||
it("Check navbar links point to correct pathname", () => {
|
||||
const navLinkToSlug = (navLink: string) => {
|
||||
return navLink.replace(/\s+/g, "-");
|
||||
};
|
||||
|
||||
it("Check navbar links point to correct pathname as a slug", () => {
|
||||
cy.visit("/");
|
||||
pages.forEach((page) => {
|
||||
cy.contains(page, { matchCase: false }).click();
|
||||
cy.location("pathname").should("eq", `/${page}`); // url path matches link name
|
||||
cy.location("pathname").should("eq", `/${navLinkToSlug(page)}`); // url path matches link name, replacing whitespace with hyphens
|
||||
cy.go("back");
|
||||
});
|
||||
});
|
||||
|
||||
it("Check dead links", () => {
|
||||
pages.forEach((page) => {
|
||||
cy.visit(`/${page}`);
|
||||
cy.visit(`/${navLinkToSlug(page)}`);
|
||||
cy.get("a:not([href*='mailto:']").each((link) => {
|
||||
if (
|
||||
!link
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 418 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user