From 3a125e004f7ff85dea3c17d59b6a7e776cf2a596 Mon Sep 17 00:00:00 2001 From: Dominik Broj Date: Thu, 19 Sep 2024 13:25:17 +0200 Subject: [PATCH] test: use 4 workers, disable timezone test (#5044) # What this PR does Toggle off timezone test temporarily Use 4 workers always ## Which issue(s) this PR closes Related to [issue link here] ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes. --- grafana-plugin/e2e-tests/schedules/timezones.test.ts | 3 ++- grafana-plugin/playwright.config.ts | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/grafana-plugin/e2e-tests/schedules/timezones.test.ts b/grafana-plugin/e2e-tests/schedules/timezones.test.ts index 1bac2e3b..e20b77b0 100644 --- a/grafana-plugin/e2e-tests/schedules/timezones.test.ts +++ b/grafana-plugin/e2e-tests/schedules/timezones.test.ts @@ -14,7 +14,8 @@ dayjs.extend(isoWeek); test.use({ timezoneId: MOSCOW_TIMEZONE }); // GMT+3 the whole year -test('dates in schedule are correct according to selected current timezone', async ({ adminRolePage }) => { +// The test is skipped because using Clock API breaks several other tests that run in parallel +test.skip('dates in schedule are correct according to selected current timezone', async ({ adminRolePage }) => { const { page, userName } = adminRolePage; /** diff --git a/grafana-plugin/playwright.config.ts b/grafana-plugin/playwright.config.ts index c345c682..41f1e259 100644 --- a/grafana-plugin/playwright.config.ts +++ b/grafana-plugin/playwright.config.ts @@ -53,9 +53,7 @@ export default defineConfig({ * to flaky tests.. let's allow 1 retry per test */ retries: 1, - workers: '25%', // 25% of logical CPU cores, e.g. for 16 CPU cores it will use 4 workers - /* Reporter to use. See https://playwright.dev/docs/test-reporters */ - // reporter: 'html', + workers: 4, /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */