Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Dec 4, 2024
1 parent ceeec85 commit 2ab2939
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
run: echo "JUPYTER_TOKEN=$(openssl rand -hex 32)" >> $GITHUB_ENV

- name: Run pytest
run: pytest -v --driver ${{ matrix.browser }} tests_notebooks
run: pytest -v --driver ${{ matrix.browser }} tests_notebooks -k test_notification
env:
TAG: edge

Expand Down
3 changes: 3 additions & 0 deletions home/start_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def render(self):
config_dir = Path.home() / ".aiidalab"
warning_file = config_dir / "home_app_warning.md"

print(warning_file.absolute())
print(warning_file.exists())

if warning_file.exists():
content = warning_file.read_text()
notification = self._create_notification(content)
Expand Down
2 changes: 2 additions & 0 deletions tests_notebooks/test_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def test_home_notification(selenium_driver, final_screenshot):
config_dir.mkdir(exist_ok=True)
warning_file.write_text("This is a test warning message.")

print(warning_file.absolute())

assert warning_file.exists(), "The warning file does not exist."

selenium: WebDriver = selenium_driver("start.ipynb")
Expand Down

0 comments on commit 2ab2939

Please sign in to comment.