mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add e2e test for exemplars flow (#33972)
* Add e2e test for exemplars flow
* Check if data source is created
* Lets see what is going on
* Try again
* Updating the image maybe?
* Revert "Updating the image maybe?"
This reverts commit 968b44b0d9.
* Try with force
* Use electron
* Wait for new url?
* Wait?????
* Should be good now
* Revert e2e recording
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Button, InlineField, InlineSwitch, Input } from '@grafana/ui';
|
||||
import { DataSourcePicker } from '@grafana/runtime';
|
||||
import { css } from '@emotion/css';
|
||||
import { selectors } from '@grafana/e2e-selectors';
|
||||
import { DataSourcePicker } from '@grafana/runtime';
|
||||
import { Button, InlineField, InlineSwitch, Input } from '@grafana/ui';
|
||||
import React, { useState } from 'react';
|
||||
import { ExemplarTraceIdDestination } from '../types';
|
||||
|
||||
@@ -17,7 +18,11 @@ export default function ExemplarSetting({ value, onChange, onDelete }: Props) {
|
||||
<div className="gf-form-group">
|
||||
<InlineField label="Internal link" labelWidth={24}>
|
||||
<>
|
||||
<InlineSwitch value={isInternalLink} onChange={(ev) => setIsInternalLink(ev.currentTarget.checked)} />
|
||||
<InlineSwitch
|
||||
value={isInternalLink}
|
||||
aria-label={selectors.components.DataSource.Prometheus.configPage.internalLinkSwitch}
|
||||
onChange={(ev) => setIsInternalLink(ev.currentTarget.checked)}
|
||||
/>
|
||||
<Button
|
||||
variant="destructive"
|
||||
title="Remove link"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Button } from '@grafana/ui';
|
||||
import { css } from '@emotion/css';
|
||||
import { selectors } from '@grafana/e2e-selectors';
|
||||
import { Button } from '@grafana/ui';
|
||||
import React from 'react';
|
||||
import { ExemplarTraceIdDestination } from '../types';
|
||||
import ExemplarSetting from './ExemplarSetting';
|
||||
@@ -36,6 +37,7 @@ export function ExemplarsSettings({ options, onChange }: Props) {
|
||||
|
||||
<Button
|
||||
variant="secondary"
|
||||
aria-label={selectors.components.DataSource.Prometheus.configPage.exemplarsAddButton}
|
||||
className={css`
|
||||
margin-bottom: 10px;
|
||||
`}
|
||||
|
||||
Reference in New Issue
Block a user