mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
e2e: Migrates query variable CRUD tests to new framework (#21146)
* Refactor: Adds params to visit * Refactor: Restructures exported Pages somewhat * Refactor: Moves more into new framework but holdup because of bugs in digest * Refactor: Finish migrating templating e2e tests to new framework * Refactor: Changes after merge with master * Refactor: Removes weird change * Refactor: Adds duplication test * Refactor: Adds move down and move up variable asserts * Refactor: Adds some test to value select dropdown
This commit is contained in:
@@ -1,60 +1,72 @@
|
||||
<div class="variable-link-wrapper">
|
||||
<a
|
||||
<a
|
||||
ng-click="vm.show()"
|
||||
class="variable-value-link"
|
||||
aria-label="Dashboard template variables Variable Value DropDown value link"
|
||||
aria-label="{{vm.selectors.submenuItemValueDropDownValueLinkTexts(vm.linkText)}}"
|
||||
>
|
||||
{{vm.linkText}}
|
||||
<span ng-repeat="tag in vm.selectedTags" bs-tooltip='tag.valuesText' data-placement="bottom">
|
||||
<span class="label-tag"tag-color-from-name="tag.text">
|
||||
<i class="fa fa-tag"></i>
|
||||
{{tag.text}}
|
||||
</span>
|
||||
</span>
|
||||
<i class="fa fa-caret-down" style="font-size:12px"></i>
|
||||
</a>
|
||||
{{vm.linkText}}
|
||||
<span ng-repeat="tag in vm.selectedTags" bs-tooltip="tag.valuesText" data-placement="bottom">
|
||||
<span class="label-tag" tag-color-from-name="tag.text">
|
||||
<i class="fa fa-tag"></i> {{tag.text}}
|
||||
</span>
|
||||
</span>
|
||||
<i class="fa fa-caret-down" style="font-size:12px"></i>
|
||||
</a>
|
||||
|
||||
<input type="text" class="gf-form-input" style="display: none" ng-keydown="vm.keyDown($event)" ng-model="vm.search.query" ng-change="vm.debouncedQueryChanged()" ></input>
|
||||
<input
|
||||
type="text"
|
||||
class="gf-form-input"
|
||||
style="display: none"
|
||||
ng-keydown="vm.keyDown($event)"
|
||||
ng-model="vm.search.query"
|
||||
ng-change="vm.debouncedQueryChanged()"
|
||||
/>
|
||||
|
||||
<div
|
||||
<div
|
||||
class="variable-value-dropdown"
|
||||
ng-if="vm.dropdownVisible"
|
||||
ng-class="{'multi': vm.variable.multi, 'single': !vm.variable.multi}"
|
||||
aria-label="Dashboard template variables Variable Value DropDown DropDown"
|
||||
aria-label="{{::vm.selectors.submenuItemValueDropDownDropDown}}"
|
||||
>
|
||||
<div class="variable-options-wrapper">
|
||||
<div class="variable-options-column">
|
||||
<a
|
||||
<div class="variable-options-wrapper">
|
||||
<div class="variable-options-column">
|
||||
<a
|
||||
class="variable-options-column-header"
|
||||
ng-if="vm.variable.multi"
|
||||
ng-class="{'many-selected': vm.selectedValues.length > 1}"
|
||||
bs-tooltip="'Clear selections'"
|
||||
data-placement="top"
|
||||
ng-click="vm.clearSelections()"
|
||||
aria-label="Dashboard template variables Variable Value DropDown Selected link"
|
||||
>
|
||||
<span class="variable-option-icon"></span>
|
||||
Selected ({{vm.selectedValues.length}})
|
||||
</a>
|
||||
<a
|
||||
<span class="variable-option-icon"></span>
|
||||
Selected ({{vm.selectedValues.length}})
|
||||
</a>
|
||||
<a
|
||||
class="variable-option pointer"
|
||||
ng-repeat="option in vm.search.options"
|
||||
ng-class="{'selected': option.selected, 'highlighted': $index === vm.highlightIndex}"
|
||||
ng-click="vm.selectValue(option, $event)"
|
||||
>
|
||||
<span class="variable-option-icon"></span>
|
||||
<span aria-label="Dashboard template variables Variable Value DropDown option text">{{option.text}}</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="variable-options-column" ng-if="vm.tags.length">
|
||||
<div class="variable-options-column-header text-center">
|
||||
Tags
|
||||
</div>
|
||||
<a class="variable-option-tag pointer" ng-repeat="tag in vm.tags" ng-click="vm.selectTag(tag, $event)" ng-class="{'selected': tag.selected}">
|
||||
<span class="fa fa-fw variable-option-icon"></span>
|
||||
<span class="label-tag" tag-color-from-name="tag.text">{{tag.text}} <i class="fa fa-tag"></i> </span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="variable-option-icon"></span>
|
||||
<span aria-label="{{vm.selectors.submenuItemValueDropDownOptionTexts(option.text)}}">{{option.text}}</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="variable-options-column" ng-if="vm.tags.length">
|
||||
<div class="variable-options-column-header text-center">
|
||||
Tags
|
||||
</div>
|
||||
<a
|
||||
class="variable-option-tag pointer"
|
||||
ng-repeat="tag in vm.tags"
|
||||
ng-click="vm.selectTag(tag, $event)"
|
||||
ng-class="{'selected': tag.selected}"
|
||||
>
|
||||
<span class="fa fa-fw variable-option-icon"></span>
|
||||
<span class="label-tag" tag-color-from-name="tag.text"
|
||||
>{{tag.text}} <i class="fa fa-tag"></i> </span
|
||||
>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user