Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Add launcher snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Oct 13, 2023
1 parent 3933cce commit be65005
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ui-tests/test/general.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (c) JupyterLite Contributors
// Distributed under the terms of the Modified BSD License.

import { test } from '@jupyterlab/galata';

import { expect } from '@playwright/test';

import { firefoxWaitForApplication } from './utils';

test.use({ waitForApplication: firefoxWaitForApplication });

test.describe('General', () => {
test.beforeEach(async ({ page }) => {
await page.goto('lab/index.html');
});

test('Kernel is registered', async ({ page }) => {
const imageName = 'launcher.png';
expect(await page.screenshot()).toMatchSnapshot(imageName);

Check failure on line 19 in ui-tests/test/general.test.ts

View workflow job for this annotation

GitHub Actions / Visual Regression (firefox)

[firefox] › test/general.test.ts:17:7 › General › Kernel is registered

1) [firefox] › test/general.test.ts:17:7 › General › Kernel is registered ──────────────────────── Error: Screenshot comparison failed: 8300 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test/general.test.ts-snapshots/launcher-firefox-linux.png Received: /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test-results/test-general-General-Kernel-is-registered-firefox/launcher-actual.png Diff: /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test-results/test-general-General-Kernel-is-registered-firefox/launcher-diff.png 17 | test('Kernel is registered', async ({ page }) => { 18 | const imageName = 'launcher.png'; > 19 | expect(await page.screenshot()).toMatchSnapshot(imageName); | ^ 20 | }); 21 | }); 22 | at /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test/general.test.ts:19:37

Check failure on line 19 in ui-tests/test/general.test.ts

View workflow job for this annotation

GitHub Actions / Visual Regression (firefox)

[firefox] › test/general.test.ts:17:7 › General › Kernel is registered

1) [firefox] › test/general.test.ts:17:7 › General › Kernel is registered ──────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Screenshot comparison failed: 8300 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test/general.test.ts-snapshots/launcher-firefox-linux.png Received: /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test-results/test-general-General-Kernel-is-registered-firefox-retry1/launcher-actual.png Diff: /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test-results/test-general-General-Kernel-is-registered-firefox-retry1/launcher-diff.png 17 | test('Kernel is registered', async ({ page }) => { 18 | const imageName = 'launcher.png'; > 19 | expect(await page.screenshot()).toMatchSnapshot(imageName); | ^ 20 | }); 21 | }); 22 | at /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test/general.test.ts:19:37

Check failure on line 19 in ui-tests/test/general.test.ts

View workflow job for this annotation

GitHub Actions / Visual Regression (chromium)

[chromium] › test/general.test.ts:17:7 › General › Kernel is registered

1) [chromium] › test/general.test.ts:17:7 › General › Kernel is registered ─────────────────────── Error: Screenshot comparison failed: 5611 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test/general.test.ts-snapshots/launcher-chromium-linux.png Received: /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test-results/test-general-General-Kernel-is-registered-chromium/launcher-actual.png Diff: /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test-results/test-general-General-Kernel-is-registered-chromium/launcher-diff.png 17 | test('Kernel is registered', async ({ page }) => { 18 | const imageName = 'launcher.png'; > 19 | expect(await page.screenshot()).toMatchSnapshot(imageName); | ^ 20 | }); 21 | }); 22 | at /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test/general.test.ts:19:37

Check failure on line 19 in ui-tests/test/general.test.ts

View workflow job for this annotation

GitHub Actions / Visual Regression (chromium)

[chromium] › test/general.test.ts:17:7 › General › Kernel is registered

1) [chromium] › test/general.test.ts:17:7 › General › Kernel is registered ─────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Screenshot comparison failed: 5611 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test/general.test.ts-snapshots/launcher-chromium-linux.png Received: /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test-results/test-general-General-Kernel-is-registered-chromium-retry1/launcher-actual.png Diff: /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test-results/test-general-General-Kernel-is-registered-chromium-retry1/launcher-diff.png 17 | test('Kernel is registered', async ({ page }) => { 18 | const imageName = 'launcher.png'; > 19 | expect(await page.screenshot()).toMatchSnapshot(imageName); | ^ 20 | }); 21 | }); 22 | at /home/runner/work/xeus-python-kernel/xeus-python-kernel/ui-tests/test/general.test.ts:19:37
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit be65005

Please sign in to comment.