Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-24 10:20:28 +01:00
Add acceptance test
Dieser Commit ist enthalten in:
Ursprung
3c2b69ee1f
Commit
771fc432a1
2 geänderte Dateien mit 30 neuen und 0 gelöschten Zeilen
|
@ -273,6 +273,15 @@ acceptance("Field | Fields", function (needs) {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("Topic", async function (assert) {
|
||||||
|
await visit("/w/wizard");
|
||||||
|
assert.ok(visible(".wizard-field.topic-field .multi-select-header"));
|
||||||
|
await click(".wizard-field.topic-field .select-kit-header");
|
||||||
|
assert.ok(
|
||||||
|
exists(".wizard-field.topic-field .topic-selector .select-kit-filter")
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
test("Group", async function (assert) {
|
test("Group", async function (assert) {
|
||||||
await visit("/w/wizard");
|
await visit("/w/wizard");
|
||||||
assert.ok(visible(".wizard-field.group-field .single-select-header"));
|
assert.ok(visible(".wizard-field.group-field .single-select-header"));
|
||||||
|
|
|
@ -462,6 +462,27 @@ export default {
|
||||||
stepId: "step_3",
|
stepId: "step_3",
|
||||||
_validState: 0,
|
_validState: 0,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "step_3_field_7",
|
||||||
|
index: 6,
|
||||||
|
type: "topic",
|
||||||
|
required: false,
|
||||||
|
value: null,
|
||||||
|
label: "<p>Topic</p>",
|
||||||
|
file_types: null,
|
||||||
|
format: null,
|
||||||
|
limit: null,
|
||||||
|
property: null,
|
||||||
|
content: null,
|
||||||
|
validations: {},
|
||||||
|
max_length: null,
|
||||||
|
char_counter: null,
|
||||||
|
preview_template: null,
|
||||||
|
tabindex: 7,
|
||||||
|
wizardId: "super_mega_fun_wizard",
|
||||||
|
stepId: "step_3",
|
||||||
|
_validState: 0,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
_validState: 0,
|
_validState: 0,
|
||||||
wizardId: "super_mega_fun_wizard",
|
wizardId: "super_mega_fun_wizard",
|
||||||
|
|
Laden …
In neuem Issue referenzieren