diff --git a/test/javascripts/acceptance/field-test.js b/test/javascripts/acceptance/field-test.js index fdf99da5..265100b1 100644 --- a/test/javascripts/acceptance/field-test.js +++ b/test/javascripts/acceptance/field-test.js @@ -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")); diff --git a/test/javascripts/fixtures/wizard.js.es6 b/test/javascripts/fixtures/wizard.js.es6 index a3b83063..b3e6e520 100644 --- a/test/javascripts/fixtures/wizard.js.es6 +++ b/test/javascripts/fixtures/wizard.js.es6 @@ -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: "

Topic

", + 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",