Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21c4add408 | ||
|
|
733faefb98 | ||
|
|
5e370d09f1 |
@@ -172,11 +172,13 @@ test('an all-through school shows BOTH its KS2 SATs and its GCSE results, not ju
|
|||||||
// Labelled as all-through in the hero meta.
|
// Labelled as all-through in the hero meta.
|
||||||
await expect(page.getByText(/All-through/i).first()).toBeVisible();
|
await expect(page.getByText(/All-through/i).first()).toBeVisible();
|
||||||
|
|
||||||
// The combined results section carries both phases.
|
// The combined results section carries both phases, each under its own
|
||||||
|
// all-through sub-heading (a unique visible node — unlike "Attainment 8",
|
||||||
|
// which also appears in hidden MetricTooltip labels).
|
||||||
const results = page.locator('#results');
|
const results = page.locator('#results');
|
||||||
await expect(results.getByText(/SATs & GCSE Results/)).toBeVisible();
|
await expect(results.getByText(/SATs & GCSE Results/)).toBeVisible();
|
||||||
await expect(results.getByText('Reading, Writing & Maths combined')).toBeVisible(); // KS2
|
await expect(results.getByRole('heading', { name: /Primary.*KS2 SATs/ })).toBeVisible(); // KS2 block
|
||||||
await expect(results.getByText('Attainment 8').first()).toBeVisible(); // KS4
|
await expect(results.getByRole('heading', { name: /Secondary.*GCSEs/ })).toBeVisible(); // KS4 block
|
||||||
});
|
});
|
||||||
|
|
||||||
test('school with no performance data still gets a working detail page', async ({ page }) => {
|
test('school with no performance data still gets a working detail page', async ({ page }) => {
|
||||||
|
|||||||
@@ -887,6 +887,15 @@ export function SchoolDetailView({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
{/* All-through admissions data covers a single entry point (usually the
|
||||||
|
Year 7 secondary intake), not reception — say so, or a parent could
|
||||||
|
read these as the whole-school figures. */}
|
||||||
|
{isAllThrough && admissions.school_phase && (
|
||||||
|
<p className={styles.sectionSubtitle}>
|
||||||
|
These figures are for {admissions.school_phase.toLowerCase()} entry
|
||||||
|
{/secondary/i.test(admissions.school_phase) ? ' (Year 7)' : /primary/i.test(admissions.school_phase) ? ' (Reception)' : ''}.
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
|
||||||
<div className={styles.admissionsViewport}>
|
<div className={styles.admissionsViewport}>
|
||||||
{/* This-year Q&A */}
|
{/* This-year Q&A */}
|
||||||
|
|||||||
Reference in New Issue
Block a user