Skip to content

Commit

Permalink
fix test selector (#15132)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellobontempo committed Apr 22, 2022
1 parent 28ac1a8 commit ca9f175
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 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 @@ -274,7 +274,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.historyActiveTab).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
Expand Up @@ -44,7 +44,7 @@ module('Integration | Component | replication-dashboard', function (hooks) {
assert.dom('[data-test-table-rows]').exists();
assert.dom('[data-test-selectable-card-container="secondary"]').exists();
assert.dom('[data-test-replication-doc-link]').exists();
assert.dom('[data-test-flash-message]').doesNotExist('no flash message is displayed on render');
assert.dom('[data-test-alert-banner]').doesNotExist('no flash message is displayed on render');
});

test('it updates the dashboard when the replication mode has changed', async function (assert) {
Expand Down

0 comments on commit ca9f175

Please sign in to comment.