Skip to content

Commit

Permalink
give up
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Oct 14, 2024
1 parent da446ae commit 9a6c738
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ui-tests/test/mobile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ test.describe('Mobile', () => {

await page.waitForSelector('#top-panel-wrapper', { state: 'hidden' });

expect(await page.screenshot()).toMatchSnapshot('tree.png');
expect(await page.screenshot()).toMatchSnapshot('tree.png', {
maxDiffPixels: 500,
});
});

test('The layout should be more compact on the notebook page', async ({
Expand Down
8 changes: 6 additions & 2 deletions ui-tests/test/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,17 @@ test.describe('Settings', () => {
await page.waitForSelector('#top-panel', { state: 'hidden' });
await page.reload({ waitUntil: 'networkidle' });
await page.menu.getMenuItem(showHeaderPath);
expect(await page.screenshot()).toMatchSnapshot('top-hidden.png');
expect(await page.screenshot()).toMatchSnapshot('top-hidden.png', {
maxDiffPixels: 500,
});

await page.waitForSelector('#top-panel', { state: 'hidden' });
await page.menu.clickMenuItem(showHeaderPath);
await page.waitForSelector('#top-panel', { state: 'visible' });
await page.reload({ waitUntil: 'networkidle' });
await page.menu.getMenuItem(showHeaderPath);
expect(await page.screenshot()).toMatchSnapshot('top-visible.png');
expect(await page.screenshot()).toMatchSnapshot('top-visible.png', {
maxDiffPixels: 500,
});
});
});

0 comments on commit 9a6c738

Please sign in to comment.