* feat: add backlinks setup and overview workflow * save * fix backlinks timeseries and refine overview layout * update backlinks table guidance * refactor backlinks CI cleanup * refactor backlinks page state colocation * fix backlinks access error handling Differentiate DataForSEO subscription access failures from billing issues and preserve exact page hosts for page-level backlink lookups. * fix backlinks project scoping and error states * simplify backlinks billing and lazy loading * harden backlinks profiling and access flow * refine backlinks access status typing * update backlinks scope selection and access handling * fix backlinks scope fallback and cache scoping * fix backlinks ci checks * docs: simplify backlinks pricing * refine backlinks search: move scope toggle below input, remove redundant description * refine backlinks summaries and help text * refine backlinks table sorting * fix backlinks invalid target handling * delete docs * fix backlinks scope inference and domain normalization * docs: mark backlinks as a supported workflow * fix backlinks links badge wrapping * test: split backlinks test suites
20 lines
650 B
TypeScript
20 lines
650 B
TypeScript
import { createElement } from "react";
|
|
import { renderToStaticMarkup } from "react-dom/server";
|
|
import { describe, expect, it, vi } from "vitest";
|
|
import { BacklinksErrorState } from "./BacklinksPageStates";
|
|
|
|
describe("BacklinksErrorState", () => {
|
|
it("renders a visible retry state", () => {
|
|
const markup = renderToStaticMarkup(
|
|
createElement(BacklinksErrorState, {
|
|
errorMessage: "Could not load backlinks data.",
|
|
onRetry: vi.fn(),
|
|
}),
|
|
);
|
|
|
|
expect(markup).toContain("Could not load backlinks");
|
|
expect(markup).toContain("Could not load backlinks data.");
|
|
expect(markup).toContain("Retry");
|
|
});
|
|
});
|