From 4d456de59abe7cdd4db8a611c5b70757457cebcc Mon Sep 17 00:00:00 2001 From: Daniel Bate Date: Thu, 22 Aug 2024 16:03:52 +0100 Subject: [PATCH] fix: integration tests fail silently (#2992) * chore: increase playwright timeout * chore: temp enable integration tests in CI * chore: return result of test-ci script * chore: playwright not to auto open html report * chore: revert increased page timeouts * chore: disable integration tests * chore: remove redundant comment * chore: changeset * chore: enable pr release * chore: bump connectors and run integration against PR * chore: revert further changes * chore: use master lock --- .changeset/green-donuts-lick.md | 4 ++++ playwright.config.ts | 4 ++-- scripts/tests-ui.sh | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .changeset/green-donuts-lick.md diff --git a/.changeset/green-donuts-lick.md b/.changeset/green-donuts-lick.md new file mode 100644 index 00000000000..96f986b940b --- /dev/null +++ b/.changeset/green-donuts-lick.md @@ -0,0 +1,4 @@ +--- +--- + +fix: integration tests fail silently diff --git a/playwright.config.ts b/playwright.config.ts index a5ce6fb9b99..2530924c643 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -14,13 +14,13 @@ export default defineConfig({ /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ - reporter: 'html', + reporter: [['html', { open: 'never' }]], /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', }, - + timeout: 60000, projects: [ { name: 'chromium', diff --git a/scripts/tests-ui.sh b/scripts/tests-ui.sh index d34b2eb057c..0d9936649fb 100644 --- a/scripts/tests-ui.sh +++ b/scripts/tests-ui.sh @@ -13,6 +13,9 @@ sleep 5 cd $PLAYWRIGHT_DIR pnpm exec playwright install --with-deps > /dev/null 2>&1 pnpm exec playwright test +TEST_RESULT=$? pkill next-server -pkill fuel-core \ No newline at end of file +pkill fuel-core + +exit $TEST_RESULT \ No newline at end of file