Fix #2114 - Cleanup the test folder + automation (#2143)

* Fix #2114 - Cleanup the test folder + automation
* Merged both test and tests into a single folder
This commit is contained in:
Andrea Giammarchi
2024-08-08 17:08:59 +02:00
committed by GitHub
parent f4c4edeb29
commit 9f46234f71
104 changed files with 193 additions and 221 deletions

View File

@@ -0,0 +1,15 @@
import pytest
from js import document, localStorage
@pytest.fixture(autouse=True)
def before_tests():
"""
Ensure browser storage is always reset to empty. Remove the app
placeholder. Reset the page title.
"""
localStorage.clear()
# app_placeholder = document.querySelector("pyper-app")
# if app_placeholder:
# app_placeholder.remove()
document.querySelector("title").innerText = "Web API PyTest Suite"