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