From 6dad8a03779179c4d0d8edd63f7ade97e59ef6d0 Mon Sep 17 00:00:00 2001 From: Dominik Broj Date: Mon, 9 Sep 2024 19:57:00 +0200 Subject: [PATCH] chore: provide mod:download command and stabilize schedule test (#5000) # What this PR does provide mod:download command and stabilize schedule test ## Checklist - [x] 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/schedulesList.test.ts | 1 + grafana-plugin/package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/grafana-plugin/e2e-tests/schedules/schedulesList.test.ts b/grafana-plugin/e2e-tests/schedules/schedulesList.test.ts index 31c50c1f..018ebdcf 100644 --- a/grafana-plugin/e2e-tests/schedules/schedulesList.test.ts +++ b/grafana-plugin/e2e-tests/schedules/schedulesList.test.ts @@ -10,6 +10,7 @@ test('schedule calendar and list of schedules is correctly displayed', async ({ await createOnCallSchedule(page, onCallScheduleName, userName); await goToOnCallPage(page, 'schedules'); + await page.waitForLoadState('networkidle'); // schedule slots are present in calendar const nbOfSlotsInCalendar = await page.getByTestId('schedule-slot').count(); diff --git a/grafana-plugin/package.json b/grafana-plugin/package.json index b5da7fd1..07e4c114 100644 --- a/grafana-plugin/package.json +++ b/grafana-plugin/package.json @@ -13,6 +13,7 @@ "labels:unlink": "pnpm --dir ../../gops-labels/frontend unlink", "mage:build-dev": "go mod download && mage -v build:debug", "mage:watch": "go mod download && mage -v watch", + "mod:download": "go mod download", "test-utc": "TZ=UTC jest --verbose --testNamePattern '^((?!@london-tz).)*$'", "test-london-tz": "TZ=Europe/London jest --verbose --testNamePattern '@london-tz'", "test": "PLUGIN_ID=grafana-oncall-app pnpm test-utc && pnpm test-london-tz",