chore: fix crash due to asyncstorage on web

This commit is contained in:
Satyajit Sahoo
2021-03-05 02:38:01 +01:00
parent 7c92cd9ca9
commit 7ac59e6109
3 changed files with 9 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ it('loads the article page', async () => {
expect(await page.evaluate(() => location.pathname + location.search)).toBe(
'/link-component/article/gandalf'
);
expect(
((await page.accessibility.snapshot()) as any)?.children?.find(
(it: any) => it.role === 'heading'

View File

@@ -21,4 +21,8 @@ beforeEach(async () => {
await page.goto('http://localhost:3579');
});
afterEach(async () => {
await context.close();
});
export { browser, context, page };