From 4c9ad85553d92df751d94236c4089a46d139af9e Mon Sep 17 00:00:00 2001 From: Parthib Roy Date: Fri, 22 Nov 2024 14:42:09 -0800 Subject: [PATCH] Adjust testing for updated ui --- tests/python/dashboard/test_dashboard.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/python/dashboard/test_dashboard.py b/tests/python/dashboard/test_dashboard.py index 186e9a216..6dc32c5d9 100644 --- a/tests/python/dashboard/test_dashboard.py +++ b/tests/python/dashboard/test_dashboard.py @@ -36,12 +36,14 @@ def test_dashboard(): wait_for_ready(sb, ".trame__loader", TIMEOUT) # Adjust beam properties - sb.click("#particle_shape") - sb.click("div.v-list-item:nth-of-type(2)") set_input_value(sb, "npart", 10000) set_input_value(sb, "kin_energy", 2.0e3) set_input_value(sb, "bunch_charge_C", 1.0e-9) + # Change distribution type to "Quadratic" + sb.click("#selected_distribution_type") + sb.click("div.v-list-item__title:contains('Quadratic Form')") + # Adjust beam distribution set_input_value(sb, "selected_distribution", "Waterbag") set_input_value(sb, "lambdaX", 3.9984884770e-5)