grafana/e2e: Update add dashboard flow (#58360)

* Update variable editor e2e flow

- Use correct selector for Variables
- Add variable query form
- Add label for variable apply button

* Use data-testid instead of aria-label

* Add jsdoc
This commit is contained in:
Andreas Christou
2022-11-08 17:15:21 +00:00
committed by GitHub
parent 3e92a2dc77
commit ed64133943
3 changed files with 83 additions and 4 deletions

View File

@@ -204,7 +204,11 @@ export class VariableEditorEditorUnConnected extends PureComponent<Props, State>
Run query
{loading && <Icon className="spin-clockwise" name="sync" size="sm" style={{ marginLeft: '2px' }} />}
</Button>
<Button variant="primary" onClick={this.onApply}>
<Button
variant="primary"
onClick={this.onApply}
data-testid={selectors.pages.Dashboard.Settings.Variables.Edit.General.applyButton}
>
Apply
</Button>
</HorizontalGroup>