ui: chore - fix CI test-suite (#13799)

* fix linting issue

* Update datacenter selector page-object to not include separator.

* change non-valid li to div for singe dc name
This commit is contained in:
Michael Klein 2022-07-19 15:06:11 +02:00 committed by GitHub
parent 2acc4faca1
commit 7bfe4dd020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -27,6 +27,7 @@
</menu.Separator>
{{#each menu.items as |item|}}
<menu.Item
data-test-dc-item
aria-current={{if (eq @dc.Name item.Name) 'true'}}
class={{class-map
(array 'is-local' item.Local)
@ -55,7 +56,9 @@
</disclosure.Menu>
</DisclosureMenu>
{{else}}
<li class="dc-name" data-test-datacenter-single>{{@dcs.firstObject.Name}}</li>
<div class="dc-name" data-test-datacenter-single>
{{@dcs.firstObject.Name}}
</div>
{{/if}}
</li>

View File

@ -50,7 +50,7 @@ export default (collection, clickable, attribute, is, authForm, emptyState) => s
':checked',
'[data-test-nspace-menu] > input[type="checkbox"]'
);
page.navigation.dcs = collection('[data-test-datacenter-menu] li', {
page.navigation.dcs = collection('[data-test-datacenter-menu] [data-test-dc-item]', {
name: clickable('a'),
});
return page;

View File

@ -1,7 +1,6 @@
import { module, skip, test } from 'qunit';
import { module, skip } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import { render } from '@ember/test-helpers';
module('Integration | Component | hashicorp consul', function(hooks) {
setupRenderingTest(hooks);