Skip to content
This repository was archived by the owner on Oct 26, 2026. It is now read-only.

Commit 0fefd45

Browse files
committed
test(app-shell): assert the nesting error before the DOM shape in the package-sheet pin
So a regression's first failure shows React's own nesting error. Claude-Session: https://claude.ai/code/session_01DrKzdPdyLLBW3qpZ4vtk7z Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1e4bf56 commit 0fefd45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/app-shell/src/views/metadata-admin/PackagesPage.pendingHeaderMarkup-11804.test.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ describe('PackageDetailSheet — the pending-changes header is valid markup (obj
9090
const header = await screen.findByText('Pending changes');
9191
// The count badge still sits inside the header, beside its label.
9292
expect(header.textContent).toBe(`Pending changes${drafts.length}`);
93-
expect(header.tagName).not.toBe('P');
9493

95-
expect(paragraphsHoldingBlocks()).toEqual([]);
9694
expect(errors.filter((e) => NESTING.test(e))).toEqual([]);
95+
expect(paragraphsHoldingBlocks()).toEqual([]);
96+
expect(header.tagName).not.toBe('P');
9797
});
9898

9999
it('a package with no drafts renders no header and logs no nesting error', async () => {

0 commit comments

Comments
 (0)