Rename "All breaches" to "Recent data breaches"

This commit is contained in:
Vincent 2024-08-26 15:26:15 +02:00 коммит произвёл Vincent
Родитель 097f7b2012
Коммит 4246be3bd6
5 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -4,10 +4,10 @@
## Top navbar
landing-all-hero-navbar-link-how-it-works = How it works
landing-all-hero-navbar-link-pricing = Pricing
landing-all-hero-navbar-link-faqs = FAQs
landing-all-hero-navbar-link-all-breaches = All breaches
landing-premium-hero-navbar-link-how-it-works = How it works
landing-premium-hero-navbar-link-pricing = Pricing
landing-premium-hero-navbar-link-faqs = FAQs
landing-premium-hero-navbar-link-recent-breaches = Recent data breaches
##

Просмотреть файл

@ -225,8 +225,6 @@ mozilla = { -brand-mozilla }
terms-of-service = Terms of Service
privacy-notice = Privacy Notice
github = { -brand-github }
# Deprecated
footer-nav-all-breaches = All Breaches
footer-nav-recent-breaches = Recent Data Breaches
footer-external-link-faq-label = FAQs
footer-external-link-faq-tooltip = Frequently asked questions

Просмотреть файл

@ -820,14 +820,16 @@ describe("When Premium is available", () => {
);
});
it("counts the number of clicks All breaches link in top navbar", async () => {
it("counts the number of clicks on the Recent data breaches link in top navbar", async () => {
const mockedRecord = useTelemetry();
const ComposedDashboard = composeStory(LandingUs, Meta);
render(<ComposedDashboard />);
const user = userEvent.setup();
const navbarLink = screen.getByRole("link", { name: "All breaches" });
const navbarLink = screen.getByRole("link", {
name: "Recent data breaches",
});
// jsdom will complain about not being able to navigate to a different page
// after clicking the link; suppress that error, as it's not relevant to the
// test:

Просмотреть файл

@ -269,7 +269,7 @@ export const TopNavBar = ({ l10n }: { l10n: ExtendedReactLocalization }) => {
link_id: "navbar_how_it_works",
}}
>
{l10n.getString("landing-all-hero-navbar-link-how-it-works")}
{l10n.getString("landing-premium-hero-navbar-link-how-it-works")}
</TelemetryLink>
<TelemetryLink
className={styles.navbarLinks}
@ -278,7 +278,7 @@ export const TopNavBar = ({ l10n }: { l10n: ExtendedReactLocalization }) => {
link_id: "navbar_pricing",
}}
>
{l10n.getString("landing-all-hero-navbar-link-pricing")}
{l10n.getString("landing-premium-hero-navbar-link-pricing")}
</TelemetryLink>
<TelemetryLink
data-testid="navbar_faqs"
@ -288,7 +288,7 @@ export const TopNavBar = ({ l10n }: { l10n: ExtendedReactLocalization }) => {
link_id: "navbar_faqs",
}}
>
{l10n.getString("landing-all-hero-navbar-link-faqs")}
{l10n.getString("landing-premium-hero-navbar-link-faqs")}
</TelemetryLink>
<TelemetryLink
className={styles.navbarLinks}
@ -297,7 +297,7 @@ export const TopNavBar = ({ l10n }: { l10n: ExtendedReactLocalization }) => {
link_id: "navbar_breaches",
}}
>
{l10n.getString("landing-all-hero-navbar-link-all-breaches")}
{l10n.getString("landing-premium-hero-navbar-link-recent-breaches")}
</TelemetryLink>
</div>
</div>

Просмотреть файл

@ -42,7 +42,7 @@ export const Footer = ({
link_id: "all_breaches_footer",
}}
>
{l10n.getString("footer-nav-all-breaches")}
{l10n.getString("footer-nav-recent-breaches")}
</TelemetryLink>
</li>
{countryCode === "us" && !session && (