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 b7e3fdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui-tests/test/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ 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);
await page.waitForSelector('#top-panel-wrapper', { state: 'hidden' });
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);
await page.waitForSelector('#top-panel-wrapper');
expect(await page.screenshot()).toMatchSnapshot('top-visible.png');
});
});

0 comments on commit b7e3fdd

Please sign in to comment.