Loading src/nova/trame/view/components/execution_buttons.py +4 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ class ExecutionButtons: disabled=(f"{self.id}.run_disabled",), prepend_icon="mdi-play", classes="mr-4", id=f"{self.id}_run", click=self.run, ) if self.stop_btn: Loading @@ -70,6 +71,7 @@ class ExecutionButtons: disabled=(f"{self.id}.stop_disabled",), loading=(f"{self.id}.stop_in_progress",), classes="mr-4", id=f"{self.id}_stop", prepend_icon="mdi-stop", click=self.stop, ) Loading @@ -80,6 +82,7 @@ class ExecutionButtons: loading=(f"{self.id}.cancel_in_progress",), prepend_icon="mdi-cancel", classes="mr-4", id=f"{self.id}_cancel", click=self.cancel, ) if self.download_btn: Loading @@ -87,6 +90,7 @@ class ExecutionButtons: "Download Results", disabled=(f"{self.id}.download_disabled",), loading=(f"{self.id}.download_in_progress",), id=f"{self.id}.download", click=self.download, ) Loading src/nova/trame/view/components/progress_bar.py +3 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ class ProgressBar: height="25", model_value=(f"{self.id}.progress", "0"), striped=True, id=f"{self.id}_show_progress", v_show=(f"{self.id}.show_progress",), ): html.H5(v_text=f"{self.id}.details") Loading @@ -46,6 +47,7 @@ class ProgressBar: model_value="100", striped=False, color="error", id=f"{self.id}_show_failed", v_show=(f"{self.id}.show_failed",), ): html.H5(v_text=f"{self.id}.details", classes="text-white") Loading @@ -54,6 +56,7 @@ class ProgressBar: model_value="100", striped=False, color="primary", id=f"{self.id}_show_ok", v_show=(f"{self.id}.show_ok",), ): html.H5(v_text=f"{self.id}.details", classes="text-white") tests/test_tool_components.py 0 → 100644 +10 −0 Original line number Diff line number Diff line """Unit tests for LocalStorageManager.""" from selenium.webdriver import Firefox def test_tool_components(driver: Firefox) -> None: # todo: add tests here - emulate run button click in the gallery app, # check that progress bar appears, check content of the output and error windows # click cancel - check progress bas disappears assert 1 == 1 Loading
src/nova/trame/view/components/execution_buttons.py +4 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ class ExecutionButtons: disabled=(f"{self.id}.run_disabled",), prepend_icon="mdi-play", classes="mr-4", id=f"{self.id}_run", click=self.run, ) if self.stop_btn: Loading @@ -70,6 +71,7 @@ class ExecutionButtons: disabled=(f"{self.id}.stop_disabled",), loading=(f"{self.id}.stop_in_progress",), classes="mr-4", id=f"{self.id}_stop", prepend_icon="mdi-stop", click=self.stop, ) Loading @@ -80,6 +82,7 @@ class ExecutionButtons: loading=(f"{self.id}.cancel_in_progress",), prepend_icon="mdi-cancel", classes="mr-4", id=f"{self.id}_cancel", click=self.cancel, ) if self.download_btn: Loading @@ -87,6 +90,7 @@ class ExecutionButtons: "Download Results", disabled=(f"{self.id}.download_disabled",), loading=(f"{self.id}.download_in_progress",), id=f"{self.id}.download", click=self.download, ) Loading
src/nova/trame/view/components/progress_bar.py +3 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ class ProgressBar: height="25", model_value=(f"{self.id}.progress", "0"), striped=True, id=f"{self.id}_show_progress", v_show=(f"{self.id}.show_progress",), ): html.H5(v_text=f"{self.id}.details") Loading @@ -46,6 +47,7 @@ class ProgressBar: model_value="100", striped=False, color="error", id=f"{self.id}_show_failed", v_show=(f"{self.id}.show_failed",), ): html.H5(v_text=f"{self.id}.details", classes="text-white") Loading @@ -54,6 +56,7 @@ class ProgressBar: model_value="100", striped=False, color="primary", id=f"{self.id}_show_ok", v_show=(f"{self.id}.show_ok",), ): html.H5(v_text=f"{self.id}.details", classes="text-white")
tests/test_tool_components.py 0 → 100644 +10 −0 Original line number Diff line number Diff line """Unit tests for LocalStorageManager.""" from selenium.webdriver import Firefox def test_tool_components(driver: Firefox) -> None: # todo: add tests here - emulate run button click in the gallery app, # check that progress bar appears, check content of the output and error windows # click cancel - check progress bas disappears assert 1 == 1