fix test selector (#15132)

This commit is contained in:
claire bontempo 2022-04-22 11:44:45 -07:00 committed by GitHub
parent 11c1b49277
commit 2907464b96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View File

@ -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}} />

View File

@ -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) {

View File

@ -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();

View File

@ -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) {