Skip to content

Commit 0555b07

Browse files
committed
Try with datasource.set
1 parent f4af551 commit 0555b07

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

.github/workflows/push.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ jobs:
1616
contents: read
1717
id-token: write
1818
with:
19-
plugin-version-suffix: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }}
20-
upload-playwright-artifacts: true
19+
plugin-version-suffix: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }}

e2e/query-editor.spec.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -380,19 +380,10 @@ test.describe('Prometheus query editor', () => {
380380
test('it should have the metrics explorer opened via the metric select', async ({
381381
readProvisionedDataSource,
382382
explorePage,
383-
page,
384383
}) => {
385384
// const dsDefaultEditorBuilder = await readProvisionedDataSource<DataSourcePluginOptionsEditorProps<PromOptions>>({ fileName: 'datasources.yml' });
386385

387-
await explorePage.goto();
388-
389-
// await explorePage.datasource.set(dsDefaultEditorBuilder.name);
390-
391-
await page.getByTestId('data-testid Select a data source').click();
392-
393-
await page.getByTestId('data-testid Select a data source').fill('Amazon Managed Service for Prometheus');
394-
395-
await page.getByRole('button', { name: 'Amazon Managed Service for Prometheus' }).click();
386+
await explorePage.datasource.set('Amazon Managed Service for Prometheus');
396387

397388
await explorePage
398389
.getByGrafanaSelector(selectors.components.DataSource.Prometheus.queryEditor.builder.metricSelect)

0 commit comments

Comments
 (0)