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

feat(campagne): modification banniere apprentis #3412

Merged
merged 2 commits into from
Oct 31, 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
10 changes: 5 additions & 5 deletions src/pages/index.page.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ describe('Page d’accueil', () => {
);

// Then
expect(screen.getByText('Employeurs ou futurs apprentis ?')).toBeVisible();
expect(screen.getByText('Contrat, éligibilité ? Avantages ?')).toBeVisible();
});
it('n’affiche pas la bannière si le feature flip est désactivé', () => {
// Given
Expand All @@ -221,7 +221,7 @@ describe('Page d’accueil', () => {
);

// Then
expect(screen.queryByText('Employeurs ou futurs apprentis ?')).not.toBeInTheDocument();
expect(screen.queryByText('Contrat, éligibilité ? Avantages ?')).not.toBeInTheDocument();
});
});

Expand All @@ -237,11 +237,11 @@ describe('Page d’accueil', () => {
);

// Then
const heading = screen.getByRole('heading', { level: 2, name: 'Employeurs ou futurs apprentis ?' });
const heading = screen.getByRole('heading', { level: 2, name: 'Contrat, éligibilité ? Avantages ?' });
expect(heading).toBeVisible();
const voirPlusButton = screen.getByRole('link', { name: 'Lire l’article' });
const voirPlusButton = screen.getByRole('link', { name: 'Consultez notre FAQ' });
expect(voirPlusButton).toBeVisible();
expect(voirPlusButton).toHaveAttribute('href', '/articles/avantages-apprentissage-employeurs-apprentis');
expect(voirPlusButton).toHaveAttribute('href', '/faq/apprentissage-employeurs-apprentis');
});
});
});
Expand Down
8 changes: 4 additions & 4 deletions src/pages/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,14 @@ export default function Accueil(accueilProps: AccueilPageProps) {
<HeroWithIllustration image="/images/campagne-apprentissage-banniere.webp" className={classNames(styles.hero, styles.apprentissage)}>
<h2>
<HeroPrimaryText className={styles.heroTitle}>
Employeurs ou futurs apprentis ?
Contrat, éligibilité ? Avantages ?
</HeroPrimaryText>
</h2>
<HeroSecondaryText>
Du 22 au 30 octobre, 1jeune1solution vous propose un article par jour pour répondre à toutes vos questions sur l’apprentissage.
Retrouvez toutes les réponses à vos questions sur l’apprentissage dans notre FAQ.
</HeroSecondaryText>
<Link href="/articles/avantages-apprentissage-employeurs-apprentis" appearance={'asSecondaryButton'} className={styles.heroButton}>
Lire l’article
<Link href="/faq/apprentissage-employeurs-apprentis" appearance={'asSecondaryButton'} className={styles.heroButton}>
Consultez notre FAQ
<Link.Icon />
</Link>
</HeroWithIllustration>
Expand Down