Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions astro-site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion astro-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"test": "playwright test"
},
"dependencies": {
"@ambiqai/helia-ui": "github:AmbiqAI/helia-ui#v0.1.0-alpha.24",
"@ambiqai/helia-ui": "github:AmbiqAI/helia-ui#v0.1.0-alpha.25",
"@astrojs/markdown-remark": "^7.3.1",
"@astrojs/react": "7.0.0",
"@astrojs/starlight": "^0.41.5",
Expand Down
1 change: 1 addition & 0 deletions astro-site/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
tableOfContents: false
title: "Turn heart signals into on-device intelligence"
description: "AI development kit for heart monitoring on Ambiq devices."
hero:
Expand Down
19 changes: 19 additions & 0 deletions astro-site/tests/landing-navigation.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { test, expect } from '@playwright/test';

for (const width of [390, 1280]) {
test(`landing navigation remains reachable without a TOC at ${width}px`, async ({ page }) => {
await page.setViewportSize({ width, height: 900 });
await page.goto('/heartkit/');
await expect(page.locator('[data-helia-sidebar-toggle]')).toHaveCount(0);
expect(await page.locator('html').getAttribute('data-has-toc')).toBeNull();
if (width === 390) {
const dropdown = page.locator('[data-helia-section-dropdown]');
await expect(dropdown).toBeVisible();
await dropdown.locator('summary').click();
await expect(dropdown.getByRole('link', { name: 'HELIA AI DEV Hub' })).toBeVisible();
await page.keyboard.press('Escape');
await expect(dropdown).not.toHaveAttribute('open');
}
expect(await page.evaluate(() => document.documentElement.scrollWidth)).toBeLessThanOrEqual(width);
});
}
Loading