mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 20:35:19 +08:00
15 lines
407 B
TypeScript
15 lines
407 B
TypeScript
import { page } from '../config/setup-playwright';
|
|
|
|
it('loads the example app', async () => {
|
|
const snapshot = await page.accessibility.snapshot();
|
|
|
|
expect(
|
|
(snapshot?.children as Record<string, unknown>[])?.find(
|
|
(it) => it.role === 'heading'
|
|
)?.name
|
|
).toBe('Examples');
|
|
const title = await page.$eval('[role=heading]', (el) => el.textContent);
|
|
|
|
expect(title).toBe('Examples');
|
|
});
|