mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 10:50:37 -06:00
add selector for code editor (#33554)
This commit is contained in:
parent
759a0cd71b
commit
cedac5f4d4
@ -192,4 +192,7 @@ export const Components = {
|
||||
DataLinksContextMenu: {
|
||||
singleLink: 'Data link',
|
||||
},
|
||||
CodeEditor: {
|
||||
container: 'Code editor container',
|
||||
},
|
||||
};
|
||||
|
@ -1,4 +1,6 @@
|
||||
import React from 'react';
|
||||
|
||||
import { selectors } from '@grafana/e2e-selectors';
|
||||
import { withTheme } from '../../themes';
|
||||
import { Themeable } from '../../types';
|
||||
import { Monaco, MonacoEditor as MonacoEditorType, CodeEditorProps, MonacoOptions } from './types';
|
||||
@ -124,7 +126,7 @@ class UnthemedCodeEditor extends React.PureComponent<Props> {
|
||||
}
|
||||
|
||||
return (
|
||||
<div onBlur={this.onBlur}>
|
||||
<div onBlur={this.onBlur} aria-label={selectors.components.CodeEditor.container}>
|
||||
<MonacoEditor
|
||||
width={width}
|
||||
height={height}
|
||||
|
Loading…
Reference in New Issue
Block a user