Fix dangling separator in hero subtitle on narrow Safari viewports
The " · " before test.describe() was orphaned when .mono became display:block on mobile. Wrap it in .hero__sub-sep and hide it at ≤900px. Also tighten topbar padding at ≤480px for iPhone-mini widths. Add a responsive test asserting the separator is hidden on mobile. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -419,6 +419,15 @@ test.describe("responsive", () => {
|
||||
await page.click("#menu-btn");
|
||||
await expect(page.locator("#sidebar")).toHaveClass(/is-open/);
|
||||
});
|
||||
|
||||
test("hero subtitle separator is hidden on mobile", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
const sep = page.locator(".hero__sub-sep");
|
||||
await expect(sep).toBeHidden();
|
||||
const sub = page.locator(".hero__sub");
|
||||
await expect(sub).toContainText("Canadian citizen");
|
||||
await expect(sub).toContainText("test.describe");
|
||||
});
|
||||
});
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user