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

Add data-testid
This commit is contained in:
Ida Štambuk
2025-05-13 10:38:26 +02:00
committed by GitHub
parent 8866f2cfc1
commit 1e13f48172
3 changed files with 3 additions and 3 deletions
@@ -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', () => {
+1 -1
View File
@@ -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>
)}