Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Aug 24, 2024
1 parent 746e388 commit e635fbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from aiidalab_widgets_base.utils.loaders import load_css


def test_load_css_stylesheet():
"""Test `load_css_stylesheet` function."""
def test_load_css():
"""Test `load_css` utility."""
css_dir = Path("aiidalab_widgets_base/static/styles")
load_css(css_path=css_dir)
load_css(css_path=css_dir / "global.css")
3 changes: 1 addition & 2 deletions tests_notebooks/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from selenium.webdriver.common.keys import Keys


def test_load_css_stylesheet(selenium_driver):
"""Test `load_css_stylesheet` function."""
def test_loaded_css(selenium_driver):
driver = selenium_driver("test_notebooks/test_notebook.ipynb")
element = driver.find_element(By.CLASS_NAME, "for-testing-purposes")
assert element.value_of_css_property("color") == "rgba(255, 0, 0, 1)"
Expand Down

0 comments on commit e635fbb

Please sign in to comment.