fix(search): no "Not yet inspected" without Ofsted's word; ISI badge (H4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
69da9d84db
commit
ab25d83b9d
9 files changed
+92
-38
No files matched your search
@@ -52,3 +52,8 @@ describe('SchoolRow shares the school page flags', () => {
|
||||
expect(screen.getByText("Boys' school")).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
it('renders no Ofsted badge for a school with no inspection data (audit H4)', () => {
|
||||
const { container } = render(<SchoolRow school={{ ...base, ofsted_grade: null, ofsted_date: null, ofsted_listed: false, inspectorate: null }} />);
|
||||
expect(container.textContent).not.toMatch(/Not yet inspected|Inspected/);
|
||||
});
|
||||
Reference in new issue
Block a user