diff --git a/changelog.d/fixes/8284-provider-docs-link.md b/changelog.d/fixes/8284-provider-docs-link.md new file mode 100644 index 0000000000..771bf7c262 --- /dev/null +++ b/changelog.d/fixes/8284-provider-docs-link.md @@ -0,0 +1 @@ +- **fix(providers):** the Providers page Learn more button now opens the maintained GitHub documentation instead of the retired `docs.omniroute.io` page ([#8284](https://github.com/diegosouzapw/OmniRoute/pull/8284)) - thanks @KaynXu diff --git a/src/app/(dashboard)/dashboard/providers/page.tsx b/src/app/(dashboard)/dashboard/providers/page.tsx index 3485111544..678356b384 100644 --- a/src/app/(dashboard)/dashboard/providers/page.tsx +++ b/src/app/(dashboard)/dashboard/providers/page.tsx @@ -828,7 +828,7 @@ export default function ProvidersPage() { {providerText(t, "onboardingWizard", "Provider Onboarding Wizard")} { + assert.match( + providersPage, + /href="https:\/\/github\.com\/diegosouzapw\/OmniRoute#-documentation"/, + "the provider help CTA should open the maintained GitHub documentation section" + ); +}); + +test("provider Learn more link does not use the retired documentation host", () => { + assert.doesNotMatch( + providersPage, + /https:\/\/docs\.omniroute\.io\/providers/, + "docs.omniroute.io/providers is no longer reachable" + ); +});