test: remove redundant frontend checks
Frontend verify / commits (pull_request) Successful in 28s
Frontend verify / security (pull_request) Successful in 12s
Frontend verify / verify (pull_request) Successful in 8m31s

This commit is contained in:
2026-09-28 21:04:27 +03:00
parent 64fe902192
commit 320ea5922a
5 changed files with 71 additions and 126 deletions
-15
View File
@@ -1,7 +1,6 @@
import { composeStories } from "@storybook/react-vite";
// eslint-disable-next-line testing-library/no-manual-cleanup -- Vitest globals are disabled, so RTL cannot register its automatic afterEach cleanup.
import { cleanup, fireEvent, render, screen } from "@testing-library/react";
import { fn } from "storybook/test";
import { afterEach, describe, expect, it, vi } from "vitest";
import preview from "../../.storybook/preview";
@@ -56,18 +55,4 @@ describe("Storybook isolated product examples", () => {
for (const spy of spies) expect(spy).not.toHaveBeenCalled();
});
it("keeps synthetic totals visible while the refresh example calls a local retry", () => {
const { RefreshError } = composeStories(RefreshStories, preview);
const retry = fn();
const view = render(<RefreshError retry={retry} />);
expect(screen.getByText(/125\s*000,50/)).toBeVisible();
fireEvent.click(screen.getByRole("button"));
expect(retry).toHaveBeenCalledOnce();
view.rerender(
<RefreshError refreshError={false} refreshing retry={retry} />,
);
expect(screen.getByText(/125\s*000,50/)).toBeVisible();
expect(screen.getByRole("status")).toBeVisible();
});
});