diff --git a/test/javascripts/acceptance/field-test.js b/test/javascripts/acceptance/field-test.js index f1d97130..627311ad 100644 --- a/test/javascripts/acceptance/field-test.js +++ b/test/javascripts/acceptance/field-test.js @@ -74,11 +74,11 @@ acceptance("Field | Fields", function (needs) { await click( ".wizard-field.composer-field .wizard-field-composer .d-editor button.link" ); - assert.ok(exists(".insert-link.modal-body"), "hyperlink modal visible"); + assert.ok(exists(".d-modal.insert-hyperlink-modal"), "hyperlink modal visible"); - await fillIn(".modal-body .link-url", "google.com"); - await fillIn(".modal-body .link-text", "Google"); - await click(".modal-footer button.btn-primary"); + await fillIn(".d-modal__body.insert-link .inputs .link-url", "google.com"); + await fillIn(".d-modal__body.insert-link .inputs .link-text", "Google"); + await click(".d-modal__footer button.btn-primary"); assert.strictEqual( query(".wizard-field.composer-field .wizard-field-composer textarea") @@ -102,9 +102,9 @@ acceptance("Field | Fields", function (needs) { await click( ".wizard-field.composer-field .wizard-field-composer .d-editor button.link" ); - await fillIn(".modal-body .link-url", "google.com"); - await fillIn(".modal-body .link-text", "Google"); - await click(".modal-footer button.btn-danger"); + await fillIn(".d-modal__body.insert-link .inputs .link-url", "google.com"); + await fillIn(".d-modal__body.insert-link .inputs .link-text", "Google"); + await click(".d-modal__footer button.btn-danger"); assert.strictEqual( query(".wizard-field.composer-field .wizard-field-composer textarea")