mirror of
https://github.com/grafana/grafana.git
synced 2026-08-19 01:34:54 -05:00
E2E: Adds tests for QueryVariable CRUD (#20448)
* WIP: Adds basic template variables CRUD start * e2eTests: Adds aria-labels in VariableEditorCtrl * Refactor: Simplifies a bit * e2eTests: Adds first Template Variable CRUD for QueryVariable * Tests: Adds ArrayPageOjbectType * Tests: Adds createQueryVariable method * Tests: Refactor CRUD test * Tests: Adds datasource and dashboard to scenario * Refactor: Fixes type errors * Refactor: Move pages to toolkit
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React, { useContext, MouseEvent } from 'react';
|
||||
import React, { MouseEvent, useContext } from 'react';
|
||||
import { CallToActionCard, LinkButton, ThemeContext } from '@grafana/ui';
|
||||
import { css } from 'emotion';
|
||||
|
||||
export interface Props {
|
||||
title: string;
|
||||
buttonIcon: string;
|
||||
@@ -72,7 +73,14 @@ const EmptyListCTA: React.FunctionComponent<Props> = ({
|
||||
: '';
|
||||
|
||||
const ctaElement = (
|
||||
<LinkButton size="lg" onClick={onClick} href={buttonLink} icon={buttonIcon} className={ctaElementClassName}>
|
||||
<LinkButton
|
||||
size="lg"
|
||||
onClick={onClick}
|
||||
href={buttonLink}
|
||||
icon={buttonIcon}
|
||||
className={ctaElementClassName}
|
||||
aria-label={`Call to action button ${buttonTitle}`}
|
||||
>
|
||||
{buttonTitle}
|
||||
</LinkButton>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user