mirror of
https://github.com/grafana/grafana.git
synced 2025-01-13 01:22:05 -06:00
parent
11ff4e7b8c
commit
af4382e4c2
@ -1,4 +1,4 @@
|
||||
import { expect, test } from '@grafana/plugin-e2e';
|
||||
import { DashboardPage, expect, test } from '@grafana/plugin-e2e';
|
||||
|
||||
import { formatExpectError } from '../errors';
|
||||
import { successfulDataQuery } from '../mocks/queries';
|
||||
@ -33,8 +33,11 @@ test.describe('query editor query data', () => {
|
||||
});
|
||||
|
||||
test.describe('query editor with mocked responses', () => {
|
||||
test('and resource `scenarios` is mocked', async ({ panelEditPage, selectors }) => {
|
||||
await panelEditPage.mockResourceResponse('scenarios', scenarios);
|
||||
test('and resource `scenarios` is mocked', async ({ page, selectors, grafanaVersion, request }) => {
|
||||
const dashboardPage = new DashboardPage({ page, selectors, grafanaVersion, request });
|
||||
await dashboardPage.goto();
|
||||
await dashboardPage.mockResourceResponse('scenarios', scenarios);
|
||||
const panelEditPage = await dashboardPage.addPanel();
|
||||
await panelEditPage.datasource.set('gdev-testdata');
|
||||
const queryEditorRow = await panelEditPage.getQueryEditorRow('A');
|
||||
await queryEditorRow.getByLabel('Scenario').last().click();
|
||||
|
Loading…
Reference in New Issue
Block a user