Skip to content

Commit 034e32d

Browse files
authored
Merge pull request #2098 from codalab/playwrightFixes
Playwright fixes
2 parents 58745e6 + bdbccf1 commit 034e32d

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
- run:
7878
name: "Tests: Run end-to-end (E2E) tests"
7979
command: |
80-
cd tests && CI="true" $HOME/.local/bin/uv run pytest test_auth.py test_account_creation.py test_competition.py test_submission.py
80+
cd tests && CI=True $HOME/.local/bin/uv run pytest test_auth.py test_account_creation.py test_competition.py test_submission.py
8181
no_output_timeout: 30m
8282

8383
# Example to run specific set of tests (for debugging individual tests from a batch of tests)

.env_circleci

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ WORKER_CONNECTION_TIMEOUT=100000000 # milliseconds
1414

1515
FLOWER_BASIC_AUTH=root:password-you-should-change
1616

17-
SELENIUM_HOSTNAME=selenium
18-
1917
DJANGO_SETTINGS_MODULE=settings.test
2018

2119
# Minio local storage example

src/settings/test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,4 @@
2020
DEBUG_TOOLBAR_CONFIG = {
2121
"SHOW_TOOLBAR_CALLBACK": lambda request: False
2222
}
23-
24-
SELENIUM_HOSTNAME = os.environ.get("SELENIUM_HOSTNAME", "localhost")
25-
2623
IS_TESTING = True

tests/test_submission.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_v18(page: Page):
101101

102102

103103
# Skip this test if in the CI
104-
@pytest.mark.skipif(ci, reason="Works locally but fails in the CI for some reason")
104+
@pytest.mark.skipif(ci, reason="Works locally but fails in the CI because of CELERY_TASK_ALWAYS_EAGER = True")
105105
def test_v2_multiTask(page: Page) -> None:
106106
page.goto("/")
107107
page.get_by_role("link", name=" Benchmarks/Competitions").click()
@@ -139,7 +139,7 @@ def test_v2_multiTask(page: Page) -> None:
139139
).to_be_visible()
140140
# The ID on the leaderboard can be one of the children instead of the parent so we try them all
141141
found = False
142-
for count in range(0, 4):
142+
for count in range(0, 5):
143143
try:
144144
submission_ID_str = int(submission_Id[0]) + count
145145
logger.info("Looked for ID : " + str(submission_ID_str))
@@ -155,7 +155,7 @@ def test_v2_multiTask(page: Page) -> None:
155155

156156

157157
# Skip this test if in the CI
158-
@pytest.mark.skipif(ci, reason="Works locally but fails in the CI for some reason")
158+
@pytest.mark.skipif(ci, reason="Works locally but fails in the CI because of CELERY_TASK_ALWAYS_EAGER = True")
159159
def test_v2_multiTaskFactSheet(page: Page) -> None:
160160
page.goto("/")
161161
page.get_by_role("link", name=" Benchmarks/Competitions").click()
@@ -199,7 +199,7 @@ def test_v2_multiTaskFactSheet(page: Page) -> None:
199199
).to_be_visible()
200200
# The ID on the leaderboard can be one of the children instead of the parent so we try them all
201201
found = False
202-
for count in range(0, 4):
202+
for count in range(0, 5):
203203
try:
204204
submission_ID_str = int(submission_Id[0]) + count
205205
logger.debug("Looked for ID : " + str(submission_ID_str))

0 commit comments

Comments
 (0)