Skip to content

Commit

Permalink
Use test.describe
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed May 6, 2024
1 parent 65a3a01 commit 35a629f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui-tests/tests/jupyterlab_new_launcher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { expect, test, galata } from '@jupyterlab/galata';

const SETTINGS_ID = 'jupyterlab-new-launcher:plugin';

describe('Default settings', () => {
test.describe('Default settings', () => {
test('should render new launcher', async ({ page }) => {
const launcher = page.locator('.jp-LauncherBody');
expect(await launcher.screenshot()).toMatchSnapshot('launcher.png');

Check failure on line 8 in ui-tests/tests/jupyterlab_new_launcher.spec.ts

View workflow job for this annotation

GitHub Actions / Integration tests

tests/jupyterlab_new_launcher.spec.ts:6:7 › Default settings › should render new launcher

1) tests/jupyterlab_new_launcher.spec.ts:6:7 › Default settings › should render new launcher ───── Error: Screenshot comparison failed: 478 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/jupyterlab-new-launcher/jupyterlab-new-launcher/ui-tests/tests/jupyterlab_new_launcher.spec.ts-snapshots/launcher-linux.png Received: /home/runner/work/jupyterlab-new-launcher/jupyterlab-new-launcher/ui-tests/test-results/tests-jupyterlab_new_launc-cb968--should-render-new-launcher/launcher-actual.png Diff: /home/runner/work/jupyterlab-new-launcher/jupyterlab-new-launcher/ui-tests/test-results/tests-jupyterlab_new_launc-cb968--should-render-new-launcher/launcher-diff.png 6 | test('should render new launcher', async ({ page }) => { 7 | const launcher = page.locator('.jp-LauncherBody'); > 8 | expect(await launcher.screenshot()).toMatchSnapshot('launcher.png'); | ^ 9 | }); 10 | }); 11 | at /home/runner/work/jupyterlab-new-launcher/jupyterlab-new-launcher/ui-tests/tests/jupyterlab_new_launcher.spec.ts:8:41
});
});

describe('With starred section', () => {
test.describe('With starred section', () => {
test.use({
mockSettings: {
...galata.DEFAULT_SETTINGS,
Expand Down

0 comments on commit 35a629f

Please sign in to comment.