parent
26332bd84e
commit
4002f2154b
@ -0,0 +1,34 @@
|
||||
// Copyright (c) Jupyter Development Team.
|
||||
// Distributed under the terms of the Modified BSD License.
|
||||
|
||||
import path from 'path';
|
||||
|
||||
import { expect } from '@playwright/test';
|
||||
|
||||
import { test } from './fixtures';
|
||||
|
||||
test.use({ autoGoto: false, viewport: { width: 512, height: 768 } });
|
||||
|
||||
test.describe('Mobile', () => {
|
||||
test('The layout should be more compact on the file browser page', async ({
|
||||
page,
|
||||
tmpPath
|
||||
}) => {
|
||||
await page.goto(`tree/${tmpPath}`);
|
||||
expect(await page.screenshot()).toMatchSnapshot('tree.png');
|
||||
});
|
||||
|
||||
test('The layout should be more compact on the notebook page', async ({
|
||||
page,
|
||||
tmpPath
|
||||
}) => {
|
||||
const notebook = 'empty.ipynb';
|
||||
await page.contents.uploadFile(
|
||||
path.resolve(__dirname, `./notebooks/${notebook}`),
|
||||
`${tmpPath}/${notebook}`
|
||||
);
|
||||
await page.goto(`notebooks/${tmpPath}/${notebook}`);
|
||||
|
||||
expect(await page.screenshot()).toMatchSnapshot('notebook.png');
|
||||
});
|
||||
});
|
||||
Loading…
Reference in new issue