diff --git a/test/core/js/modules/webcaosdb.js.js b/test/core/js/modules/webcaosdb.js.js index f838e35f5a8e70e0e1032a89e09885444c3fb250..534dc86c485ccfac184bb05bac17d595addaa3d6 100644 --- a/test/core/js/modules/webcaosdb.js.js +++ b/test/core/js/modules/webcaosdb.js.js @@ -1262,7 +1262,7 @@ QUnit.test("initFreeSearch", function (assert) { assert.equal(queryForm.getRoleNameFacet(), "RECORD"); - window.localStorage["role_name_facet_select"] = "Sample"; + window.localStorage["role_name_facet_option"] = "Sample"; assert.ok(queryForm.initFreeSearch(form, "Person, Experiment, Sample"), "initialized"); // after initialization @@ -1270,7 +1270,7 @@ QUnit.test("initFreeSearch", function (assert) { assert.equal(queryForm.getRoleNameFacetSelect().tagName, "SELECT", "role_name_facet_select is SELECT"); assert.equal(form.find("select").length, 1, "select is present"); - assert.equal(queryForm.getRoleNameFacet(), "Person"); + assert.equal(queryForm.getRoleNameFacet(), "Sample", "previously selected option is selected"); form.find("select")[0].value = "Experiment"; assert.equal(queryForm.getRoleNameFacet(), "Experiment");