mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
e2e: creates a separate package for selectors (#23858)
* Initial commit * Chore: fixes after merge * Chore: removes todos * Chore: uncomment test * Chore: adds missing externals to rollup config * Refactor: selectors is master for everything * Docs: updates Docs * Chore: adds e2e-selectors to publish
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { ButtonHTMLAttributes } from 'react';
|
||||
import { IconButton } from '@grafana/ui';
|
||||
import { e2e } from '@grafana/e2e';
|
||||
import { selectors } from '@grafana/e2e-selectors';
|
||||
|
||||
export interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
|
||||
surface: 'dashboard' | 'panel' | 'header';
|
||||
@@ -14,7 +14,7 @@ export const BackButton: React.FC<Props> = ({ surface, onClick }) => {
|
||||
tooltipPlacement="bottom"
|
||||
size="xxl"
|
||||
surface={surface}
|
||||
aria-label={e2e.components.BackButton.selectors.backArrow}
|
||||
aria-label={selectors.components.BackButton.backArrow}
|
||||
onClick={onClick}
|
||||
/>
|
||||
);
|
||||
|
Reference in New Issue
Block a user