Prometheus library: Replace data-test-id with data-testid (#105269)
Add data-testid
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user