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:
Hugo Häggmark
2019-11-25 07:29:01 +01:00
committed by GitHub
parent 31f4dea3d0
commit 2c2ed8371d
39 changed files with 910 additions and 317 deletions
@@ -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>
);