diff --git a/dj-be/docker-compose.yml b/dj-be/docker-compose.yml index a741d72..30fcdf2 100644 --- a/dj-be/docker-compose.yml +++ b/dj-be/docker-compose.yml @@ -94,7 +94,7 @@ services: retries: 5 postgres: - image: "postgres:13" + image: "postgres:16" restart: on-failure environment: - POSTGRES_USER diff --git a/react-ui/src/app/components/Footer/Footer.test.tsx b/react-ui/src/app/components/Footer/Footer.test.tsx index 64dd879..19a5a24 100644 --- a/react-ui/src/app/components/Footer/Footer.test.tsx +++ b/react-ui/src/app/components/Footer/Footer.test.tsx @@ -8,7 +8,12 @@ describe("Footer", async () => { render(, {}); const year = new Date().getFullYear(); expect( - screen.getByText(`${year} ©footer.wfp`) + screen.getByText( + (content) => + content.includes(String(year)) && + content.includes("footer.wfp") && + content.includes("footer.version"), + ), ).toBeInTheDocument(); }); diff --git a/react-ui/src/app/components/Footer/__snapshots__/Footer.test.tsx.snap b/react-ui/src/app/components/Footer/__snapshots__/Footer.test.tsx.snap index 32feefd..31abaf0 100644 --- a/react-ui/src/app/components/Footer/__snapshots__/Footer.test.tsx.snap +++ b/react-ui/src/app/components/Footer/__snapshots__/Footer.test.tsx.snap @@ -2,12 +2,14 @@ exports[`Footer > should match snapshot 1`] = `