Skip to content

Commit

Permalink
✨(front) display founders logo in the Footer
Browse files Browse the repository at this point in the history
We have to display founders logo in the Footer and a text explaining
that the project has been financed by the recovery plan.
  • Loading branch information
lunika committed Oct 7, 2024
1 parent 0070fe8 commit 01ab44e
Show file tree
Hide file tree
Showing 5 changed files with 160 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions src/frontend/apps/standalone_site/src/assets/img/ministere.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,17 @@ describe('<Footer />', () => {
render(<Footer />);
expect(await screen.findByText(/Test Page/i)).toBeInTheDocument();
expect(screen.getByText(/General Conditions/i)).toBeInTheDocument();
expect(screen.getByText(/© 2023 Marsha Education/i)).toBeInTheDocument();
expect(screen.getByText(/© 2024 Marsha Education/i)).toBeInTheDocument();
expect(
screen.getByText('Financed by the recovery plan'),
).toBeInTheDocument();
const images = screen.getAllByRole('img');

expect(images).toHaveLength(3);
expect(images[0]).toHaveAttribute('aria-label', 'Ministry logo');
expect(images[1]).toHaveAttribute('alt', 'France Relance logo');
expect(images[2]).toHaveAttribute('alt', 'Europe logo');

expect(screen.getByRole('link', { name: 'Twitter' })).toHaveAttribute(
'href',
'https://twitter.com/FunMooc',
Expand Down Expand Up @@ -94,7 +104,7 @@ describe('<Footer />', () => {
render(<Footer />);
expect(await screen.findByText(/custom copyright/i)).toBeInTheDocument();
expect(
screen.queryByText(/© 2023 Marsha Education/i),
screen.queryByText(/© 2024 Marsha Education/i),
).not.toBeInTheDocument();
expect(
screen.queryByRole('link', { name: 'Twitter' }),
Expand Down Expand Up @@ -122,7 +132,7 @@ describe('<Footer />', () => {

render(<Footer />);
expect(
await screen.findByText(/© 2023 Marsha Education/i),
await screen.findByText(/© 2024 Marsha Education/i),
).toBeInTheDocument();
expect(
screen.queryByRole('link', { name: 'Twitter' }),
Expand Down
Loading

0 comments on commit 01ab44e

Please sign in to comment.