Skip to content

Commit

Permalink
Merge branch 'topic-dashboard-test' of github.com:proy30/impactx into…
Browse files Browse the repository at this point in the history
… topic-dashboard-test
  • Loading branch information
proy30 committed Oct 3, 2024
2 parents 0236e1a + 7fc0ebf commit c687a3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/python/impactx/dashboard/Analyze/plotsMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ async def print_lines():
ctrl.terminal_print(line)
ctrl.terminal_print("Simulation complete.")


asyncio.create_task(print_lines())


Expand All @@ -176,7 +175,7 @@ def on_filtered_data_change(**kwargs):

@ctrl.add("run_simulation")
def run_simulation_and_store():
state.simulation_complete = True,
state.simulation_complete = (True,)
state.plot_options = available_plot_options(simulationClicked=True)
run_simulation_impactX()
update_plot()
Expand Down
4 changes: 3 additions & 1 deletion tests/python/dashboard/test_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def test_dashboard():
sb.click("#Run_route")
sb.click("#run_simulation_button")

assert check_until_visible(sb, "#simulation_complete"), "Simulation did not complete successfully."
assert check_until_visible(
sb, "#simulation_complete"
), "Simulation did not complete successfully."

finally:
if app_process is not None:
Expand Down

0 comments on commit c687a3c

Please sign in to comment.