Commit 7bb5ef78 authored by Yakubov, Sergey's avatar Yakubov, Sergey
Browse files

stub for component tests

parent 0234e83d
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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:
@@ -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,
                )
@@ -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:
@@ -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,
                )

+3 −0
Original line number Diff line number Diff line
@@ -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")
@@ -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")
@@ -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")
+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