0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00

fix a FE test involving altered Composer

Dieser Commit ist enthalten in:
merefield 2023-11-16 16:33:46 +00:00
Ursprung df3e5b6494
Commit ee5ef5574f

Datei anzeigen

@ -74,11 +74,11 @@ acceptance("Field | Fields", function (needs) {
await click( await click(
".wizard-field.composer-field .wizard-field-composer .d-editor button.link" ".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(".d-modal__body.insert-link .inputs .link-url", "google.com");
await fillIn(".modal-body .link-text", "Google"); await fillIn(".d-modal__body.insert-link .inputs .link-text", "Google");
await click(".modal-footer button.btn-primary"); await click(".d-modal__footer button.btn-primary");
assert.strictEqual( assert.strictEqual(
query(".wizard-field.composer-field .wizard-field-composer textarea") query(".wizard-field.composer-field .wizard-field-composer textarea")
@ -102,9 +102,9 @@ acceptance("Field | Fields", function (needs) {
await click( await click(
".wizard-field.composer-field .wizard-field-composer .d-editor button.link" ".wizard-field.composer-field .wizard-field-composer .d-editor button.link"
); );
await fillIn(".modal-body .link-url", "google.com"); await fillIn(".d-modal__body.insert-link .inputs .link-url", "google.com");
await fillIn(".modal-body .link-text", "Google"); await fillIn(".d-modal__body.insert-link .inputs .link-text", "Google");
await click(".modal-footer button.btn-danger"); await click(".d-modal__footer button.btn-danger");
assert.strictEqual( assert.strictEqual(
query(".wizard-field.composer-field .wizard-field-composer textarea") query(".wizard-field.composer-field .wizard-field-composer textarea")