diff --git a/curriculum/challenges/english/blocks/lab-bookmark-manager-app/66def5467aee701733aaf8cc.md b/curriculum/challenges/english/blocks/lab-bookmark-manager-app/66def5467aee701733aaf8cc.md index 88e71905eec..0e0e57ef9c0 100644 --- a/curriculum/challenges/english/blocks/lab-bookmark-manager-app/66def5467aee701733aaf8cc.md +++ b/curriculum/challenges/english/blocks/lab-bookmark-manager-app/66def5467aee701733aaf8cc.md @@ -265,11 +265,18 @@ When you click `#view-category-button`, you should add a `p` element with the te try { const viewCategoryButtonTest = document.getElementById("view-category-button"); const categoryDropdownTest = document.getElementById("category-dropdown"); + const categoryListSection = document.getElementById("bookmark-list-section"); + const mainSection = document.getElementById("main-section"); + const categoryList = document.getElementById("category-list"); + mainSection.classList.remove("hidden"); + categoryListSection.classList.add("hidden"); + categoryList.innerHTML = ""; setLocalStorage() categoryDropdownTest.value = "miscellaneous"; viewCategoryButtonTest.dispatchEvent(new Event("click")); - const categoryList = document.getElementById("category-list").innerHTML; - assert.strictEqual(categoryList, "

No Bookmarks Found

") + assert.strictEqual(categoryList.innerHTML,"

No Bookmarks Found

") + assert.isFalse(categoryListSection.classList.contains("hidden")); + assert.isTrue(mainSection.classList.contains("hidden")); } finally { resetLocalStorage() clearCategoryList()