Prometheus library: Replace data-test-id with data-testid (#105269)

Add data-testid
pull/105314/head
Ida Štambuk 7 days ago committed by GitHub
parent 8866f2cfc1
commit 1e13f48172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      e2e/old-arch/various-suite/prometheus-editor.spec.ts
  2. 2
      e2e/various-suite/prometheus-editor.spec.ts
  3. 2
      packages/grafana-prometheus/src/querybuilder/components/PromQueryBuilderOptions.tsx

@ -67,7 +67,7 @@ describe('Prometheus query editor', () => {
e2e.components.DataSource.Prometheus.queryEditor.format().scrollIntoView().should('exist');
cy.get(`[data-test-id="prometheus-step"]`).scrollIntoView().should('exist');
e2e.components.DataSource.Prometheus.queryEditor.type().scrollIntoView().should('exist');
cy.get(`[data-test-id="prometheus-exemplars"]`).scrollIntoView().should('exist');
cy.get(`[data-testid="prometheus-exemplars"]`).scrollIntoView().should('exist');
});
describe('Code editor', () => {

@ -67,7 +67,7 @@ describe.skip('Prometheus query editor', () => {
e2e.components.DataSource.Prometheus.queryEditor.format().scrollIntoView().should('exist');
cy.get(`[data-test-id="prometheus-step"]`).scrollIntoView().should('exist');
e2e.components.DataSource.Prometheus.queryEditor.type().scrollIntoView().should('exist');
cy.get(`[data-test-id="prometheus-exemplars"]`).scrollIntoView().should('exist');
cy.get(`[data-testid="prometheus-exemplars"]`).scrollIntoView().should('exist');
});
describe('Code editor', () => {

@ -112,7 +112,7 @@ export const PromQueryBuilderOptions = React.memo<PromQueryBuilderOptionsProps>(
<EditorSwitch
value={query.exemplar || false}
onChange={onExemplarChange}
data-test-id="prometheus-exemplars"
data-testid={selectors.components.DataSource.Prometheus.queryEditor.exemplars}
/>
</EditorField>
)}

Loading…
Cancel
Save