mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-21 22:32:22 +03:00
fix(radar): use a reliable activation icon
This commit is contained in:
@@ -392,7 +392,12 @@ export default function RadarPage() {
|
||||
{pageState === "optin_pending" && (
|
||||
<Card>
|
||||
<div className="mx-auto flex max-w-5xl flex-col items-center gap-6 py-8 text-center">
|
||||
<div className="text-4xl">📡</div>
|
||||
<span
|
||||
aria-hidden="true"
|
||||
className="material-symbols-outlined text-4xl text-violet-400"
|
||||
>
|
||||
radar
|
||||
</span>
|
||||
<h2 className="text-xl font-semibold">{t("activateTitle")}</h2>
|
||||
<p className="max-w-2xl text-text-muted">{t("activateDescription")}</p>
|
||||
|
||||
|
||||
@@ -104,6 +104,11 @@ describe("Radar opt-in page", () => {
|
||||
expect(notFoundMock).not.toHaveBeenCalled();
|
||||
expect(container.textContent).toContain("activateTitle");
|
||||
expect(container.textContent).toContain("activateButton");
|
||||
const activationIcon = container.querySelector(
|
||||
'span.material-symbols-outlined[aria-hidden="true"]'
|
||||
);
|
||||
expect(activationIcon?.textContent).toBe("radar");
|
||||
expect(container.textContent).not.toContain("📡");
|
||||
});
|
||||
|
||||
it("shows the complete access and privacy explanation before every activation action", async () => {
|
||||
|
||||
Reference in New Issue
Block a user