mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
@@ -6,10 +6,3 @@ test('query data response should be OK when query is valid', async ({ explorePag
|
|||||||
await explorePage.datasource.set('gdev-testdata');
|
await explorePage.datasource.set('gdev-testdata');
|
||||||
await expect(explorePage.runQuery(), formatExpectError('Expected Explore query to execute successfully')).toBeOK();
|
await expect(explorePage.runQuery(), formatExpectError('Expected Explore query to execute successfully')).toBeOK();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('query data response should not be OK when query is invalid', async ({ explorePage }) => {
|
|
||||||
await explorePage.datasource.set('gdev-testdata');
|
|
||||||
const queryEditorRow = await explorePage.getQueryEditorRow('A');
|
|
||||||
await queryEditorRow.getByLabel('Labels').fill('invalid-label-format');
|
|
||||||
await expect(explorePage.runQuery(), formatExpectError('Expected Explore query to fail')).not.toBeOK();
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user