diff --git a/playwright.config.ts b/playwright.config.ts index fd26f748..4bc6a6b7 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -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. diff --git a/tests/Dockerfile b/tests/Dockerfile index 19ac9b58..ef9f25b7 100644 --- a/tests/Dockerfile +++ b/tests/Dockerfile @@ -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 diff --git a/tests/demo.spec.ts b/tests/demo.spec.ts index ea2f5e12..d36959b7 100644 --- a/tests/demo.spec.ts +++ b/tests/demo.spec.ts @@ -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'); @@ -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; diff --git a/tests/demo.spec.ts-snapshots/demo-after-resize-Demo-linux.png b/tests/demo.spec.ts-snapshots/demo-after-resize-Demo-linux.png index 98a04d3c..f23ccaa5 100644 Binary files a/tests/demo.spec.ts-snapshots/demo-after-resize-Demo-linux.png and b/tests/demo.spec.ts-snapshots/demo-after-resize-Demo-linux.png differ diff --git a/tests/demo.spec.ts-snapshots/demo-before-resize-Demo-linux.png b/tests/demo.spec.ts-snapshots/demo-before-resize-Demo-linux.png index dfcd8ba8..5328d553 100644 Binary files a/tests/demo.spec.ts-snapshots/demo-before-resize-Demo-linux.png and b/tests/demo.spec.ts-snapshots/demo-before-resize-Demo-linux.png differ diff --git a/tests/demo.spec.ts-snapshots/display-introspection-Demo-linux.png b/tests/demo.spec.ts-snapshots/display-introspection-Demo-linux.png index 8e01b3a6..b4455a0d 100644 Binary files a/tests/demo.spec.ts-snapshots/display-introspection-Demo-linux.png and b/tests/demo.spec.ts-snapshots/display-introspection-Demo-linux.png differ diff --git a/tests/demo.spec.ts-snapshots/display-schema-from-url-Demo-linux.png b/tests/demo.spec.ts-snapshots/display-schema-from-url-Demo-linux.png index 8e01b3a6..b4455a0d 100644 Binary files a/tests/demo.spec.ts-snapshots/display-schema-from-url-Demo-linux.png and b/tests/demo.spec.ts-snapshots/display-schema-from-url-Demo-linux.png differ diff --git a/tests/demo.spec.ts-snapshots/display-sdl-Demo-linux.png b/tests/demo.spec.ts-snapshots/display-sdl-Demo-linux.png index 8e01b3a6..b4455a0d 100644 Binary files a/tests/demo.spec.ts-snapshots/display-sdl-Demo-linux.png and b/tests/demo.spec.ts-snapshots/display-sdl-Demo-linux.png differ diff --git a/tests/demo.spec.ts-snapshots/display-sdl-with-unknown-directives-Demo-linux.png b/tests/demo.spec.ts-snapshots/display-sdl-with-unknown-directives-Demo-linux.png index ac38547e..f9a760b8 100644 Binary files a/tests/demo.spec.ts-snapshots/display-sdl-with-unknown-directives-Demo-linux.png and b/tests/demo.spec.ts-snapshots/display-sdl-with-unknown-directives-Demo-linux.png differ diff --git a/tests/demo.spec.ts-snapshots/loaded-demo-Demo-linux.png b/tests/demo.spec.ts-snapshots/loaded-demo-Demo-linux.png index b5f20d2e..859c44dd 100644 Binary files a/tests/demo.spec.ts-snapshots/loaded-demo-Demo-linux.png and b/tests/demo.spec.ts-snapshots/loaded-demo-Demo-linux.png differ diff --git a/tests/demo.spec.ts-snapshots/loading-animation-Demo-linux.png b/tests/demo.spec.ts-snapshots/loading-animation-Demo-linux.png index c40d6422..a322fd3c 100644 Binary files a/tests/demo.spec.ts-snapshots/loading-animation-Demo-linux.png and b/tests/demo.spec.ts-snapshots/loading-animation-Demo-linux.png differ diff --git a/tests/demo.spec.ts-snapshots/show-github-preset-Demo-linux.png b/tests/demo.spec.ts-snapshots/show-github-preset-Demo-linux.png index ed574a82..a3878d7b 100644 Binary files a/tests/demo.spec.ts-snapshots/show-github-preset-Demo-linux.png and b/tests/demo.spec.ts-snapshots/show-github-preset-Demo-linux.png differ diff --git a/tests/demo.spec.ts-snapshots/show-shopify-storefront-preset-Demo-linux.png b/tests/demo.spec.ts-snapshots/show-shopify-storefront-preset-Demo-linux.png index 4e17fed0..4f8c2d16 100644 Binary files a/tests/demo.spec.ts-snapshots/show-shopify-storefront-preset-Demo-linux.png and b/tests/demo.spec.ts-snapshots/show-shopify-storefront-preset-Demo-linux.png differ diff --git a/tests/demo.spec.ts-snapshots/show-star-wars-preset-Demo-linux.png b/tests/demo.spec.ts-snapshots/show-star-wars-preset-Demo-linux.png index b5f20d2e..859c44dd 100644 Binary files a/tests/demo.spec.ts-snapshots/show-star-wars-preset-Demo-linux.png and b/tests/demo.spec.ts-snapshots/show-star-wars-preset-Demo-linux.png differ diff --git a/tests/demo.spec.ts-snapshots/show-yelp-preset-Demo-linux.png b/tests/demo.spec.ts-snapshots/show-yelp-preset-Demo-linux.png index 868b30fa..12e3bca1 100644 Binary files a/tests/demo.spec.ts-snapshots/show-yelp-preset-Demo-linux.png and b/tests/demo.spec.ts-snapshots/show-yelp-preset-Demo-linux.png differ diff --git a/tests/express.spec.ts-snapshots/loaded-express-example-ExpressExample-linux.png b/tests/express.spec.ts-snapshots/loaded-express-example-ExpressExample-linux.png index aca70988..e7380f8f 100644 Binary files a/tests/express.spec.ts-snapshots/loaded-express-example-ExpressExample-linux.png and b/tests/express.spec.ts-snapshots/loaded-express-example-ExpressExample-linux.png differ diff --git a/tests/webpack.spec.ts-snapshots/loaded-webpack-example-WebpackExample-linux.png b/tests/webpack.spec.ts-snapshots/loaded-webpack-example-WebpackExample-linux.png index 0b472508..4036442e 100644 Binary files a/tests/webpack.spec.ts-snapshots/loaded-webpack-example-WebpackExample-linux.png and b/tests/webpack.spec.ts-snapshots/loaded-webpack-example-WebpackExample-linux.png differ