-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d725067
commit ad4600f
Showing
2 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
backend/tests/integration/tests/playwright/test_playwright.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import os | ||
|
||
import pytest | ||
|
||
from tests.integration.common_utils.managers.user import UserManager | ||
from tests.integration.common_utils.test_models import DATestUser | ||
|
||
|
||
@pytest.mark.skipif( | ||
os.getenv("PYTEST_IGNORE_SKIP") is None, | ||
reason="Skipped by default unless env var exists", | ||
) | ||
def test_playwright_setup(reset: None) -> None: | ||
"""Not really a test, just using this to automate setup for playwright tests.""" | ||
|
||
# Creating an admin user (first user created is automatically an admin) | ||
admin_user: DATestUser = UserManager.create(name="admin_user") | ||
assert admin_user |