0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-21 17:00:29 +01:00

Add acceptance test

Dieser Commit ist enthalten in:
Angus McLeod 2024-06-28 15:08:57 +02:00
Ursprung 3c2b69ee1f
Commit 771fc432a1
2 geänderte Dateien mit 30 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -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) {
await visit("/w/wizard");
assert.ok(visible(".wizard-field.group-field .single-select-header"));

Datei anzeigen

@ -462,6 +462,27 @@ export default {
stepId: "step_3",
_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,
wizardId: "super_mega_fun_wizard",