Skip to content

Commit eaff5d2

Browse files
bjohansebasclaude
andcommitted
test: drop two more overlay unit tests the e2e suite covers
Problem replacement is asserted by the page-retention e2e (a new set swaps the rendered content), and the overlay API shape is exercised by every shared-state test driving real bundled copies. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 76e9b0f commit eaff5d2

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

test/overlay.test.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,6 @@ describe("overlay", () => {
100100
);
101101
});
102102

103-
it("replaces previous problems on each call", () => {
104-
showProblems("errors", ["first"]);
105-
showProblems("errors", ["second"]);
106-
expect(getCard().textContent).toContain("second");
107-
expect(getCard().textContent).not.toContain("first");
108-
});
109-
110103
it("re-mounts the overlay when the iframe was removed without clear()", () => {
111104
showProblems("errors", ["boom"]);
112105
// A framework wiping `document.body` removes the iframe behind our back.
@@ -203,12 +196,6 @@ describe("overlay", () => {
203196
});
204197

205198
describe("configureOverlay", () => {
206-
it("returns the overlay API", () => {
207-
const api = configureOverlay({});
208-
expect(typeof api.showProblems).toBe("function");
209-
expect(typeof api.clear).toBe("function");
210-
});
211-
212199
it("applies custom overlay styles to the card", () => {
213200
configureOverlay({ overlayStyles: { maxWidth: "500px" } });
214201
showProblems("errors", ["boom"]);

0 commit comments

Comments
 (0)