Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 01:10:28 +01:00
fix a FE test involving altered Composer
Dieser Commit ist enthalten in:
Ursprung
df3e5b6494
Commit
ee5ef5574f
1 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen
|
@ -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")
|
||||||
|
|
Laden …
In neuem Issue referenzieren