From d5181c258b01c6762bbce60f00899f4235ec9394 Mon Sep 17 00:00:00 2001 From: c-bata Date: Mon, 19 Aug 2024 19:11:36 +0900 Subject: [PATCH] Fix e2e tests --- e2e_tests/test_dashboard/visual_regression_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e_tests/test_dashboard/visual_regression_test.py b/e2e_tests/test_dashboard/visual_regression_test.py index 1cd1127f..7bf61356 100644 --- a/e2e_tests/test_dashboard/visual_regression_test.py +++ b/e2e_tests/test_dashboard/visual_regression_test.py @@ -27,7 +27,7 @@ def objective(trial: optuna.Trial) -> float: x2 = trial.suggest_float("x2", 0, 10) return (x1 - 2) ** 2 + (x2 - 5) ** 2 - study.optimize(objective, n_trials=50) + study.optimize(objective, n_trials=20) return study @@ -81,7 +81,7 @@ def objective(trial: optuna.Trial) -> tuple[float, float]: v1 = (x - 5) ** 2 + (y - 5) ** 2 return v0, v1 - study.optimize(objective, n_trials=50) + study.optimize(objective, n_trials=20) return study @@ -110,7 +110,7 @@ def objective(trial: optuna.Trial) -> tuple[float, float]: v1 = (x - 2) ** 2 + (y - 3) ** 2 return v0, v1 - study.optimize(objective, n_trials=50) + study.optimize(objective, n_trials=20) return study @@ -201,7 +201,7 @@ def test_study_analytics( page.goto(url) page.click(f"a[href='/dashboard/studies/{study_id}/analytics']") - page.wait_for_selector(".MuiTypography-body1") + page.wait_for_selector(".MuiTypography-body1", timeout=60 * 1000) element = page.query_selector(".MuiTypography-body1") assert element is not None