Skip to content

Commit

Permalink
Backport 1.10.x: UI/ Fix test selector #15132 (#15168)
Browse files Browse the repository at this point in the history
* update test selector

* fix test

* fix test
  • Loading branch information
hellobontempo committed Apr 27, 2022
1 parent f6f1d4b commit 1065ddd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/lib/core/addon/templates/components/alert-banner.hbs
@@ -1,4 +1,4 @@
<div data-test-flash-message="true">
<div data-test-alert-banner>
<div class="columns is-mobile is-variable is-1">
<div class="column is-narrow message-icon">
<Icon class={{this.alertType.glyphClass}} aria-hidden="true" @name={{this.alertType.glyph}} />
Expand Down
2 changes: 1 addition & 1 deletion ui/tests/acceptance/client-history-test.js
Expand Up @@ -270,7 +270,7 @@ module('Acceptance | clients history tab', function (hooks) {
await visit('/vault/clients/history');
assert.equal(currentURL(), '/vault/clients/history', 'clients/history URL is correct');
assert.dom(SELECTORS.activeTab).hasText('History', 'history tab is active');
assert.dom('[data-test-flash-message] .message-actions').containsText(`You upgraded to Vault 1.9.0`);
assert.dom('[data-test-alert-banner] .message-actions').containsText(`You upgraded to Vault 1.9.0`);
});

test('Shows empty if license start date is current month', async function (assert) {
Expand Down
4 changes: 3 additions & 1 deletion ui/tests/acceptance/settings/mount-secret-backend-test.js
Expand Up @@ -89,7 +89,9 @@ module('Acceptance | settings/mount-secret-backend', function (hooks) {
await page.enableEngine();
await page.selectType('kv');
await page.next().path(path).submit();
assert.dom('.alert-banner-message-body').containsText(`path is already in use at ${path}`);
assert
.dom('[data-test-alert-banner] .alert-banner-message-body')
.containsText(`path is already in use at ${path}`);
assert.equal(currentRouteName(), 'vault.cluster.settings.mount-secret-backend');

await page.secretList();
Expand Down

0 comments on commit 1065ddd

Please sign in to comment.