Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Wait before top visible
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Nov 29, 2021
1 parent 8f5df9c commit fe1dad0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ui-tests/test/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ test.describe('Settings', () => {
await page.goto(`tree/${tmpPath}`);

await page.menu.clickMenuItem(showHeaderPath);
await page.reload({ waitUntil: 'networkidle' });

await page.reload();
await page.menu.getMenuItem(showHeaderPath);
expect(await page.screenshot()).toMatchSnapshot('top-hidden.png');

await page.menu.clickMenuItem(showHeaderPath);
await page.reload({ waitUntil: 'networkidle' });

await page.reload();
await page.menu.getMenuItem(showHeaderPath);
expect(await page.screenshot()).toMatchSnapshot('top-visible.png');
});
Expand Down

0 comments on commit fe1dad0

Please sign in to comment.