Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨(front) display founders logo in the Footer #2627

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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