feat: add protocol explorer with catalogs and live playground

This commit is contained in:
2026-10-19 18:21:30 +09:00
parent b82c1d0a70
commit 75a36f2298
38 changed files with 1836 additions and 83 deletions
+19
View File
@@ -0,0 +1,19 @@
import { expect, test } from '@playwright/test';
for (const javaScriptEnabled of [false, true]) {
test.describe(javaScriptEnabled ? 'WASM tree' : 'static tree', () => {
test.use({ javaScriptEnabled, reducedMotion: 'reduce' });
test('book uses its Object name without a directory suffix', async ({ page }, info) => {
await page.goto('./');
if (javaScriptEnabled) await expect(page.locator('[data-landing-stage]')).toHaveAttribute('data-wip-state', 'ready');
const book = page.locator('.demo-node[data-path="/book"]');
await expect(book.locator('.node-label')).toHaveText('book');
await expect(book).toHaveAttribute('aria-label', 'book');
await expect(book).toHaveAttribute('href', new URL('book/', info.project.use.baseURL!).pathname);
await book.click();
await expect(page).toHaveURL(new URL('book/', info.project.use.baseURL!).href);
if (javaScriptEnabled) await expect(page.locator('[data-landing-stage]')).toHaveAttribute('data-wip-state', 'ready');
await expect(book.locator('.node-label')).toHaveText('book');
});
});
}