Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
fix more FE tests
Dieser Commit ist enthalten in:
Ursprung
d297ccd35b
Commit
a7d1d5a9fb
2 geänderte Dateien mit 12 neuen und 10 gelöschten Zeilen
|
@ -260,11 +260,11 @@ acceptance("Admin | Custom Wizard Unsubscribed", function (needs) {
|
||||||
await click(
|
await click(
|
||||||
".wizard-custom-step .wizard-text-editor .d-editor button.link"
|
".wizard-custom-step .wizard-text-editor .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");
|
||||||
let urlText = await query(
|
let urlText = await query(
|
||||||
".wizard-custom-step .wizard-text-editor .d-editor-preview-wrapper a"
|
".wizard-custom-step .wizard-text-editor .d-editor-preview-wrapper a"
|
||||||
).innerHTML.trim();
|
).innerHTML.trim();
|
||||||
|
@ -276,24 +276,26 @@ acceptance("Admin | Custom Wizard Unsubscribed", function (needs) {
|
||||||
await click(
|
await click(
|
||||||
".wizard-custom-step .wizard-text-editor .d-editor button.local-dates"
|
".wizard-custom-step .wizard-text-editor .d-editor button.local-dates"
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
exists(".discourse-local-dates-create-modal .modal-body"),
|
exists(".d-modal.discourse-local-dates-create-modal"),
|
||||||
"Insert date-time modal visible"
|
"Insert date-time modal visible"
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
!exists(
|
!exists(
|
||||||
".discourse-local-dates-create-modal.modal-body .advanced-options"
|
".discourse-local-dates-create-modal .d-modal__body .advanced-options"
|
||||||
),
|
),
|
||||||
"Advanced mode not visible"
|
"Advanced mode not visible"
|
||||||
);
|
);
|
||||||
await click(".modal-footer button.advanced-mode-btn");
|
await click(".d-modal__footer button.advanced-mode-btn");
|
||||||
assert.ok(
|
assert.ok(
|
||||||
exists(
|
exists(
|
||||||
".discourse-local-dates-create-modal .modal-body .advanced-options"
|
".discourse-local-dates-create-modal .d-modal__body .advanced-options"
|
||||||
),
|
),
|
||||||
"Advanced mode is visible"
|
"Advanced mode is visible"
|
||||||
);
|
);
|
||||||
await click(".modal-footer button.btn-primary");
|
await click(".d-modal__footer button.btn-primary");
|
||||||
assert.ok(
|
assert.ok(
|
||||||
exists(
|
exists(
|
||||||
".wizard-custom-step .wizard-text-editor .d-editor-preview-wrapper span.discourse-local-date"
|
".wizard-custom-step .wizard-text-editor .d-editor-preview-wrapper span.discourse-local-date"
|
||||||
|
|
|
@ -68,7 +68,7 @@ acceptance("Field | Fields", function (needs) {
|
||||||
"This is a link to "
|
"This is a link to "
|
||||||
);
|
);
|
||||||
assert.ok(
|
assert.ok(
|
||||||
!exists(".insert-link.modal-body"),
|
!exists(".d-modal.insert-hyperlink-modal"),
|
||||||
"no hyperlink modal by default"
|
"no hyperlink modal by default"
|
||||||
);
|
);
|
||||||
await click(
|
await click(
|
||||||
|
|
Laden …
In neuem Issue referenzieren