adds title to modal background test selector -- fixes add secondary replication test (#17354)

This commit is contained in:
Jordan Reimer 2022-09-28 15:56:46 -06:00 committed by GitHub
parent e307450c63
commit e5fea11a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<EmberWormhole @to="modal-wormhole">
<div class="{{this.modalClass}} {{if this.isActive 'is-active'}}" aria-modal="true" data-test-modal-div>
<div class="modal-background" role="button" {{on "click" @onClose}} data-test-modal-background></div>
<div class="modal-background" role="button" {{on "click" @onClose}} data-test-modal-background={{@title}}></div>
<div class="modal-card">
<header class="modal-card-head">
<h2 class="modal-card-title title is-5" data-test-modal-title>

View File

@ -277,7 +277,7 @@ module('Acceptance | Enterprise | replication', function (hooks) {
assert.dom('#modal-wormhole').exists();
assert.equal(modalDefaultTtl, '1800s', 'shows the correct TTL of 1800s');
// click off the modal to make sure you don't just have to click on the copy-close button to copy the token
await click('[data-test-modal-background]');
await click('[data-test-modal-background="Copy your token"]');
// add another secondary not using the default ttl
await click('[data-test-secondary-add]');
@ -292,7 +292,7 @@ module('Acceptance | Enterprise | replication', function (hooks) {
await settled();
let modalTtl = document.querySelector('[data-test-row-value="TTL"]').innerText;
assert.equal(modalTtl, '180s', 'shows the correct TTL of 180s');
await click('[data-test-modal-background]');
await click('[data-test-modal-background="Copy your token"]');
// confirm you were redirected to the secondaries page
assert.equal(