From 8d5dd191687a172295c2c48beebac062a27b4013 Mon Sep 17 00:00:00 2001 From: Edan Bainglass Date: Mon, 8 Jul 2024 14:49:52 +0000 Subject: [PATCH] Update tests --- tests/test_infobox.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tests/test_infobox.py b/tests/test_infobox.py index 40d9f66a7..0051c3693 100644 --- a/tests/test_infobox.py +++ b/tests/test_infobox.py @@ -1,4 +1,4 @@ -from aiidalab_qe.app.infobox import InfoBox +from aiidalab_qe.app.infobox import InAppGuide, InfoBox def test_infobox_classes(): @@ -13,3 +13,17 @@ def test_infobox_classes(): "custom-info-box", ) ) + + +def test_in_app_guide(): + """Test `InAppGuide` class.""" + guide_class = "some_guide" + in_app_guide = InAppGuide(guide_class=guide_class) + assert all( + css_class in in_app_guide._dom_classes + for css_class in ( + "info-box", + "in-app-guide", + guide_class, + ) + )