Skip to content

Commit

Permalink
change exists to isVisible()
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenolivia committed Dec 17, 2024
1 parent 91e3ec7 commit 38dfa52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ui/admin/tests/acceptance/targets/host-sources-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions ui/admin/tests/acceptance/targets/update-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 38dfa52

Please sign in to comment.