diff --git a/src/apps/billboard/tests/integrated/test_views.py b/src/apps/billboard/tests/integrated/test_views.py index fa2890f..44eecf7 100644 --- a/src/apps/billboard/tests/integrated/test_views.py +++ b/src/apps/billboard/tests/integrated/test_views.py @@ -310,7 +310,10 @@ class NoteEquipTitleViewTest(TestCase): def test_doff_returns_200(self): response = self.client.post("/billboard/note/stargazer/doff") self.assertEqual(response.status_code, 200) - self.assertEqual(response.json(), {"ok": True}) + data = response.json() + self.assertTrue(data["ok"]) + self.assertEqual(data["greeting"], "Welcome,") + self.assertEqual(data["title"], "Earthman") def test_don_requires_login(self): self.client.logout() diff --git a/src/functional_tests/test_applet_my_notes.py b/src/functional_tests/test_applet_my_notes.py index 2574243..76e65b2 100644 --- a/src/functional_tests/test_applet_my_notes.py +++ b/src/functional_tests/test_applet_my_notes.py @@ -431,6 +431,8 @@ class NoteEquipTitleTest(FunctionalTest): note_item = self.wait_for( lambda: self.browser.find_element(By.CSS_SELECTOR, ".note-item") ) + # Click the note to lock it — makes DON/DOFF opacity:1 and interactable + note_item.click() don_btn = note_item.find_element(By.CSS_SELECTOR, ".btn-equip") doff_btn = note_item.find_element(By.CSS_SELECTOR, ".btn-unequip")