# What this PR does - Use Grafana Scenes to add Insights as a separate page in OnCall - Add an option to run Prometheus instance via helm so that Prometheus Exporter feature can be used easily without the need of setting up Prometheus separately ## Which issue(s) this PR fixes https://github.com/grafana/oncall-private/issues/2382 ## 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] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required)
14 lines
542 B
TypeScript
14 lines
542 B
TypeScript
import type { Page } from '@playwright/test';
|
|
|
|
import { BASE_URL } from './constants';
|
|
|
|
type OnCallPage = 'alert-groups' | 'integrations' | 'escalations' | 'schedules' | 'users' | 'insights';
|
|
|
|
const _goToPage = async (page: Page, url = '') => page.goto(`${BASE_URL}${url}`);
|
|
|
|
export const goToGrafanaPage = async (page: Page, url = '') => _goToPage(page, url);
|
|
|
|
export const goToOnCallPage = async (page: Page, onCallPage: OnCallPage) => {
|
|
await _goToPage(page, `/a/grafana-oncall-app/${onCallPage}`);
|
|
await page.waitForTimeout(1000);
|
|
};
|