Skip to content

Commit

Permalink
Update playwright Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Sep 29, 2024
1 parent 97716e3 commit 08a3b8b
Show file tree
Hide file tree
Showing 17 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const isCI = !!process.env['CI'];
const config: PlaywrightTestConfig = {
testDir: './tests',
/* Maximum time one test can run for. */
timeout: 60 * 1000,
timeout: 20 * 1000,
expect: {
/**
* Maximum time expect() should wait for the condition to be met.
Expand Down
2 changes: 1 addition & 1 deletion tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM mcr.microsoft.com/playwright:v1.32.0
FROM mcr.microsoft.com/playwright:v1.47.2

WORKDIR /app

Expand Down
7 changes: 5 additions & 2 deletions tests/demo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ test('check loading animation', async ({ page }) => {
await presetsTab.presetButtons['GitHub'].click();
await changeSchemaDialog.displayButton.click();

await expect(voyagerPage.graphLoadingAnimation).toBeVisible();
await expect(voyagerPage.page).toHaveScreenshot('loading-animation.png');
await expect(voyagerPage.page).toHaveScreenshot('loading-animation.png', {
animations: 'disabled',
});

await voyagerPage.waitForGraphToBeLoaded();
await expect(voyagerPage.page).toHaveScreenshot('show-github-preset.png');
Expand Down Expand Up @@ -98,6 +99,8 @@ test('use custom SDL with custom directives', async ({ page }) => {
});

test('use custom introspection', async ({ page }) => {
test.slow();

const voyagerPage = await gotoVoyagerPage(page);
const { changeSchemaDialog } = voyagerPage;
const { introspectionTab } = changeSchemaDialog;
Expand Down
Binary file modified tests/demo.spec.ts-snapshots/demo-after-resize-Demo-linux.png
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.
Binary file modified tests/demo.spec.ts-snapshots/display-introspection-Demo-linux.png
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.
Binary file modified tests/demo.spec.ts-snapshots/display-sdl-Demo-linux.png
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.
Binary file modified tests/demo.spec.ts-snapshots/loaded-demo-Demo-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/demo.spec.ts-snapshots/loading-animation-Demo-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/demo.spec.ts-snapshots/show-github-preset-Demo-linux.png
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/demo.spec.ts-snapshots/show-yelp-preset-Demo-linux.png
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.
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 08a3b8b

Please sign in to comment.