diff --git a/ui/admin/tests/acceptance/targets/host-sources-test.js b/ui/admin/tests/acceptance/targets/host-sources-test.js index 3873ac80f7..69cf5b315f 100644 --- a/ui/admin/tests/acceptance/targets/host-sources-test.js +++ b/ui/admin/tests/acceptance/targets/host-sources-test.js @@ -284,7 +284,7 @@ module('Acceptance | targets | host-sources', function (hooks) { await click('tbody label'); await click('form [type="submit"]'); - assert.dom(commonSelectors.MODAL_WARNING).exists; + assert.dom(commonSelectors.MODAL_WARNING).isVisible(); await click(commonSelectors.MODAL_WARNING_CONFIRM_BTN); assert.strictEqual( @@ -320,7 +320,7 @@ module('Acceptance | targets | host-sources', function (hooks) { await click('tbody label'); await click('form [type="submit"]'); - assert.dom(commonSelectors.MODAL_WARNING).exists; + assert.dom(commonSelectors.MODAL_WARNING).isVisible(); await click(commonSelectors.MODAL_WARNING_CANCEL_BTN); assert.strictEqual( diff --git a/ui/admin/tests/acceptance/targets/update-test.js b/ui/admin/tests/acceptance/targets/update-test.js index 83c01ce7d0..ca029faf7d 100644 --- a/ui/admin/tests/acceptance/targets/update-test.js +++ b/ui/admin/tests/acceptance/targets/update-test.js @@ -136,7 +136,7 @@ module('Acceptance | targets | update', function (hooks) { await click(`[href="${urls.targets}"]`); - assert.dom(commonSelectors.MODAL_WARNING).exists; + assert.dom(commonSelectors.MODAL_WARNING).isVisible(); await click(commonSelectors.MODAL_WARNING_CONFIRM_BTN); @@ -156,7 +156,7 @@ module('Acceptance | targets | update', function (hooks) { assert.strictEqual(currentURL(), urls.target); await click(`[href="${urls.targets}"]`); - assert.dom(commonSelectors.MODAL_WARNING).exists; + assert.dom(commonSelectors.MODAL_WARNING).isVisible(); await click(commonSelectors.MODAL_WARNING_CANCEL_BTN); assert.strictEqual(currentURL(), urls.target); @@ -209,7 +209,7 @@ module('Acceptance | targets | update', function (hooks) { await fillIn('[name="address"]', '0.0.0.0'); await click('[type="submit"]'); - assert.dom(commonSelectors.MODAL_WARNING).exists; + assert.dom(commonSelectors.MODAL_WARNING).isVisible(); await click(commonSelectors.MODAL_WARNING_CONFIRM_BTN); assert.strictEqual( @@ -254,7 +254,7 @@ module('Acceptance | targets | update', function (hooks) { await fillIn('[name="address"]', '0.0.0.0'); await click('[type="submit"]'); - assert.dom(commonSelectors.MODAL_WARNING).exists; + assert.dom(commonSelectors.MODAL_WARNING).isVisible(); await click(commonSelectors.MODAL_WARNING_CANCEL_BTN); assert.strictEqual(