Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jan 9, 2024
1 parent bbd7208 commit a351dbb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
12 changes: 6 additions & 6 deletions ui-tests/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ module.exports = {
use: {
baseURL: 'http://localhost:8866',
trace: 'on-first-retry',
video: 'retain-on-failure',
video: 'retain-on-failure'
},
retries: 2,
expect: {
toMatchSnapshot: {
maxDiffPixelRatio: 0.05,
},
maxDiffPixelRatio: 0.05
}
},
webServer: [
{
command: 'yarn start',
port: 8866,
timeout: 120 * 1000,
reuseExistingServer: true,
},
],
reuseExistingServer: true
}
]
};
10 changes: 7 additions & 3 deletions ui-tests/tests/jupyterlite_xeus.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@ test.describe('General Tests', () => {
test.beforeEach(({ page }) => {
page.setDefaultTimeout(600000);

page.on('console', (message) => {
page.on('console', message => {
console.log('CONSOLE MSG ---', message.text());
});
});

test('Launcher should contain xeus-python and xeus-lua kernels', async ({ page }) => {
test('Launcher should contain xeus-python and xeus-lua kernels', async ({
page
}) => {
await page.goto('dist/lab/index.html');

const launher = await page.waitForSelector('.jp-Launcher-body');

expect(await launher.screenshot()).toMatchSnapshot('jupyter-xeus-launcher.png');
expect(await launher.screenshot()).toMatchSnapshot(
'jupyter-xeus-launcher.png'
);
});
});

0 comments on commit a351dbb

Please sign in to comment.