diff --git a/.github/workflows/test_and_release.yml b/.github/workflows/test_and_release.yml index 6dab44c..0d46aa3 100644 --- a/.github/workflows/test_and_release.yml +++ b/.github/workflows/test_and_release.yml @@ -64,6 +64,7 @@ jobs: run: | pip install .[dev] pip install -r tests/requirements.txt + playwright install - name: Install OSMesa for Linux if: matrix.config.os == 'ubuntu-latest' @@ -72,7 +73,7 @@ jobs: - name: Run Tests run: | # Run the tests with coverage so we get a coverage report too - coverage run --source . -m pytest ./tests --firefox --headless --html=report-${{ matrix.config.name }}-${{ matrix.python-version }}.html + coverage run --source . -m pytest ./tests # Print the coverage report coverage report -m @@ -85,9 +86,9 @@ jobs: with: name: pytest-results-${{ matrix.config.name }} path: | - visual_baseline/**/*.png + tests/refs/*.yml + tests/refs/**/*.png assets/** - report-*.html retention-days: 1 release: @@ -120,4 +121,4 @@ jobs: - name: Publish package distributions to PyPI if: steps.release.outputs.released == 'true' - uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/tests/conftest.py b/tests/conftest.py index eb539e9..b74bfa9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -6,11 +6,9 @@ HELPER = FixtureHelper(ROOT_PATH) -@pytest.fixture() -def baseline_image(): - HELPER.remove_page_urls() - yield - HELPER.remove_page_urls() +@pytest.fixture +def ref_dir() -> Path: + return Path(__file__).parent / "refs" @pytest.fixture diff --git a/tests/refs/test_rendering_int64.yml b/tests/refs/test_rendering_int64.yml new file mode 100644 index 0000000..ec9b9b3 --- /dev/null +++ b/tests/refs/test_rendering_int64.yml @@ -0,0 +1,6 @@ +- document: + - banner: + - button + - text: Int64 Validation 1 + - main: + - img \ No newline at end of file diff --git a/tests/refs/test_rendering_int64/ref1.png b/tests/refs/test_rendering_int64/ref1.png new file mode 100644 index 0000000..a946c4e Binary files /dev/null and b/tests/refs/test_rendering_int64/ref1.png differ diff --git a/tests/refs/test_rendering_int64/ref2.png b/tests/refs/test_rendering_int64/ref2.png new file mode 100644 index 0000000..970c893 Binary files /dev/null and b/tests/refs/test_rendering_int64/ref2.png differ diff --git a/tests/refs/test_rendering_lut.yml b/tests/refs/test_rendering_lut.yml new file mode 100644 index 0000000..4bf99b7 --- /dev/null +++ b/tests/refs/test_rendering_lut.yml @@ -0,0 +1,6 @@ +- document: + - banner: + - button + - text: PyVista Lookup Table N Colors 1 + - main: + - img \ No newline at end of file diff --git a/tests/refs/test_rendering_lut/ref1.png b/tests/refs/test_rendering_lut/ref1.png new file mode 100644 index 0000000..75e5db5 Binary files /dev/null and b/tests/refs/test_rendering_lut/ref1.png differ diff --git a/tests/refs/test_rendering_lut/ref2.png b/tests/refs/test_rendering_lut/ref2.png new file mode 100644 index 0000000..a981a25 Binary files /dev/null and b/tests/refs/test_rendering_lut/ref2.png differ diff --git a/tests/refs/test_rendering_volume.yml b/tests/refs/test_rendering_volume.yml new file mode 100644 index 0000000..6ab5ffe --- /dev/null +++ b/tests/refs/test_rendering_volume.yml @@ -0,0 +1,6 @@ +- document: + - banner: + - button + - text: VTK Volume Rendering 1 + - main: + - img \ No newline at end of file diff --git a/tests/refs/test_rendering_volume/ref1.png b/tests/refs/test_rendering_volume/ref1.png new file mode 100644 index 0000000..76fd1c0 Binary files /dev/null and b/tests/refs/test_rendering_volume/ref1.png differ diff --git a/tests/refs/test_rendering_volume/ref2.png b/tests/refs/test_rendering_volume/ref2.png new file mode 100644 index 0000000..bf526f4 Binary files /dev/null and b/tests/refs/test_rendering_volume/ref2.png differ diff --git a/tests/requirements.txt b/tests/requirements.txt index 3b8e26c..dc0a9ca 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -4,4 +4,5 @@ trame-vuetify vtk==9.4.2 pyvista[all]==0.45.2 pytest-asyncio +pytest-playwright coverage diff --git a/tests/skip_test_volume_rendering.py b/tests/skip_test_volume_rendering.py deleted file mode 100644 index f9bf62a..0000000 --- a/tests/skip_test_volume_rendering.py +++ /dev/null @@ -1,28 +0,0 @@ -import asyncio -from pathlib import Path -import pytest -from seleniumbase import SB -from trame_client.utils.testing import set_browser_size, baseline_comparison - - -BASELINE_TEST = ( - Path(__file__).parent.parent - / "visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline.png" -) - - -@pytest.mark.parametrize("server_path", ["examples/validation/VolumeRendering.py"]) -@pytest.mark.asyncio -async def test_rendering(server, baseline_image): - with SB() as sb: - url = f"http://127.0.0.1:{server.port}/" - sb.open(url) - set_browser_size(sb, 600, 300) - sb.assert_exact_text("1", ".readyCount") - sb.check_window(name="init", level=3) - - # Try to make sure the remote rendering has the proper size - await asyncio.sleep(0.1) - - # Grab and compare baseline - baseline_comparison(sb, BASELINE_TEST, 0.1) diff --git a/tests/test_big_int.py b/tests/test_big_int.py index eaa328a..f583dfc 100644 --- a/tests/test_big_int.py +++ b/tests/test_big_int.py @@ -1,23 +1,30 @@ from pathlib import Path -import pytest -from seleniumbase import SB +import time -from trame_client.utils.testing import set_browser_size, baseline_comparison +from playwright.sync_api import expect, sync_playwright +import pytest -BASELINE_TEST = ( - Path(__file__).parent.parent - / "visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/baseline.png" +from trame_client.utils.testing import ( + assert_screenshot_matches, + assert_snapshot_matches, ) @pytest.mark.parametrize("server_path", ["examples/validation/PyVistaInt64.py"]) -def test_rendering(server, baseline_image): - with SB() as sb: +def test_rendering(server, ref_dir: Path): + with sync_playwright() as p: + browser = p.chromium.launch() + page = browser.new_page() + url = f"http://127.0.0.1:{server.port}/" - sb.open(url) - set_browser_size(sb, 600, 300) - sb.assert_exact_text("1", ".readyCount") - sb.check_window(name="init", level=3) + page.goto(url) + + page.set_viewport_size({"width": 600, "height": 300}) + + # Wait for the page to get ready + time.sleep(1) + + expect(page.locator(".readyCount")).to_have_text("1") - # The CI is not rendering big int... Not sure why - baseline_comparison(sb, BASELINE_TEST, 0.1) + assert_snapshot_matches(page, ref_dir, "test_rendering_int64") + assert_screenshot_matches(page, ref_dir, "test_rendering_int64", threshold=0.1) diff --git a/tests/test_remote_rendering.py b/tests/test_remote_rendering.py index e28999f..bfc2f04 100644 --- a/tests/test_remote_rendering.py +++ b/tests/test_remote_rendering.py @@ -1,21 +1,30 @@ from pathlib import Path -import pytest -from seleniumbase import SB -from trame_client.utils.testing import set_browser_size, baseline_comparison +import time +from playwright.sync_api import expect, sync_playwright +import pytest -BASELINE_TEST = ( - Path(__file__).parent.parent - / "visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/baseline.png" +from trame_client.utils.testing import ( + assert_screenshot_matches, + assert_snapshot_matches, ) @pytest.mark.parametrize("server_path", ["examples/validation/PyVistaLookupTable.py"]) -def test_rendering(server, baseline_image): - with SB() as sb: +def test_rendering(server, ref_dir: Path): + with sync_playwright() as p: + browser = p.chromium.launch() + page = browser.new_page() + url = f"http://127.0.0.1:{server.port}/" - sb.open(url) - set_browser_size(sb, 600, 300) - sb.assert_exact_text("1", ".readyCount") - sb.check_window(name="init", level=3) - baseline_comparison(sb, BASELINE_TEST, 0.1) + page.goto(url) + + page.set_viewport_size({"width": 600, "height": 300}) + + # Wait for the page to get ready + time.sleep(1) + + expect(page.locator(".readyCount")).to_have_text("1") + + assert_snapshot_matches(page, ref_dir, "test_rendering_lut") + assert_screenshot_matches(page, ref_dir, "test_rendering_lut", threshold=0.1) diff --git a/tests/test_volume_rendering.py b/tests/test_volume_rendering.py new file mode 100644 index 0000000..05fa10a --- /dev/null +++ b/tests/test_volume_rendering.py @@ -0,0 +1,30 @@ +from pathlib import Path +import time + +from playwright.sync_api import expect, sync_playwright +import pytest + +from trame_client.utils.testing import ( + assert_screenshot_matches, + assert_snapshot_matches, +) + + +@pytest.mark.parametrize("server_path", ["examples/validation/VolumeRendering.py"]) +def test_rendering(server, ref_dir: Path): + with sync_playwright() as p: + browser = p.chromium.launch() + page = browser.new_page() + + url = f"http://127.0.0.1:{server.port}/" + page.goto(url) + + page.set_viewport_size({"width": 600, "height": 300}) + + # Try to make sure the remote rendering has the proper size + time.sleep(1) + + expect(page.locator(".readyCount")).to_have_text("1") + + assert_snapshot_matches(page, ref_dir, "test_rendering_volume") + assert_screenshot_matches(page, ref_dir, "test_rendering_volume", threshold=0.1) diff --git a/visual_baseline/.gitignore b/visual_baseline/.gitignore deleted file mode 100644 index 2bcf1cf..0000000 --- a/visual_baseline/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -baseline.png -baseline_diff*.png diff --git a/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/baseline_ref_0.png b/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/baseline_ref_0.png deleted file mode 100644 index c2167b0..0000000 Binary files a/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/baseline_ref_0.png and /dev/null differ diff --git a/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/baseline_ref_1.png b/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/baseline_ref_1.png deleted file mode 100644 index 8a22821..0000000 Binary files a/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/baseline_ref_1.png and /dev/null differ diff --git a/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/baseline_ref_2.png b/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/baseline_ref_2.png deleted file mode 100644 index 2d9d7bb..0000000 Binary files a/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/baseline_ref_2.png and /dev/null differ diff --git a/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/tags_level_1.txt b/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/tags_level_1.txt deleted file mode 100644 index 65f0e5a..0000000 --- a/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/tags_level_1.txt +++ /dev/null @@ -1 +0,0 @@ -[["noscript"], ["strong"], ["div"], ["div"], ["header"], ["div"], ["button"], ["span"], ["i"], ["div"], ["div"], ["div"], ["main"], ["div"], ["div"], ["div"], ["div"], ["div"], ["canvas"], ["div"], ["div"], ["div"], ["canvas"], ["img"], ["footer"], ["div"], ["svg"], ["circle"], ["circle"], ["div"], ["a"], ["div"], ["span"], ["i"], ["a"], ["script"], ["script"]] \ No newline at end of file diff --git a/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/tags_level_2.txt b/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/tags_level_2.txt deleted file mode 100644 index 83908a3..0000000 --- a/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/tags_level_2.txt +++ /dev/null @@ -1 +0,0 @@ -[["noscript", []], ["strong", []], ["div", ["class", "data-app", "id"]], ["div", ["class"]], ["header", ["class", "data-booted", "style"]], ["div", ["class", "style"]], ["button", ["class", "type"]], ["span", ["class"]], ["i", ["aria-hidden", "class"]], ["div", ["class"]], ["div", ["class"]], ["div", ["class"]], ["main", ["class", "data-booted", "style"]], ["div", ["class"]], ["div", ["class"]], ["div", ["class"]], ["div", ["style"]], ["div", ["style"]], ["canvas", ["height", "style", "width"]], ["div", ["class"]], ["div", ["style"]], ["div", ["style"]], ["canvas", ["height", "style", "width"]], ["img", ["src", "style"]], ["footer", ["class", "data-booted", "style"]], ["div", ["aria-valuemax", "aria-valuemin", "aria-valuenow", "class", "role", "style"]], ["svg", ["style", "viewbox", "xmlns"]], ["circle", ["class", "cx", "cy", "fill", "r", "stroke-dasharray", "stroke-dashoffset", "stroke-width"]], ["circle", ["class", "cx", "cy", "fill", "r", "stroke-dasharray", "stroke-dashoffset", "stroke-width"]], ["div", ["class"]], ["a", ["class", "href", "target"]], ["div", ["class"]], ["span", ["class"]], ["i", ["aria-expanded", "aria-haspopup", "aria-hidden", "class", "style"]], ["a", ["class", "href", "target"]], ["script", ["src", "type"]], ["script", ["src", "type"]]] \ No newline at end of file diff --git a/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/tags_level_3.txt b/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/tags_level_3.txt deleted file mode 100644 index a65885a..0000000 --- a/visual_baseline/test_rendering[examples/validation/PyVistaInt64.py]/init/tags_level_3.txt +++ /dev/null @@ -1 +0,0 @@ -[["noscript", []], ["strong", []], ["div", [["class", ["v-application", "v-application--is-ltr", "theme--light"]], ["data-app", "true"], ["id", "app"]]], ["div", [["class", ["v-application--wrap"]]]], ["header", [["class", ["v-sheet", "theme--light", "v-toolbar", "v-app-bar", "v-app-bar--fixed"]], ["data-booted", "true"], ["style", "height: 56px; margin-top: 0px; transform: translateY(0px); left: 0px; right: 0px;"]]], ["div", [["class", ["v-toolbar__content"]], ["style", "height: 56px;"]]], ["button", [["class", ["v-app-bar__nav-icon", "v-btn", "v-btn--icon", "v-btn--round", "theme--light", "v-size--default"]], ["type", "button"]]], ["span", [["class", ["v-btn__content"]]]], ["i", [["aria-hidden", "true"], ["class", ["v-icon", "notranslate", "mdi", "mdi-menu", "theme--light"]]]], ["div", [["class", ["v-toolbar__title"]]]], ["div", [["class", ["spacer"]]]], ["div", [["class", ["readyCount"]]]], ["main", [["class", ["v-main"]], ["data-booted", "true"], ["style", "padding: 56px 0px 0px;"]]], ["div", [["class", ["v-main__wrap"]]]], ["div", [["class", ["container", "pa-0", "fill-height", "container--fluid"]]]], ["div", [["class", ["fill-height", "col"]]]], ["div", [["style", "position: relative; width: 100%; height: 100%;"]]], ["div", [["style", "position: absolute; width: 100%; height: 100%; overflow: hidden; cursor: default; touch-action: none; user-select: none;"]]], ["canvas", [["height", "220"], ["style", "width: 100%; display: block;"], ["width", "276"]]], ["div", [["class", ["fill-height", "col"]]]], ["div", [["style", "position: relative; width: 100%; height: 100%; z-index: 0;"]]], ["div", [["style", "position: absolute; width: 100%; height: 100%; overflow: hidden; cursor: pointer; touch-action: none; user-select: none;"]]], ["canvas", [["height", "220"], ["style", "width: 100%; display: block;"], ["width", "276"]]], ["img", [["src", "blob:http://127.0.0.1:53153/946bcf25-3967-4124-8303-1180446f6855"], ["style", "position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; z-index: -1;"]]], ["footer", [["class", ["v-footer", "my-0", "py-0", "v-sheet", "theme--light", "v-footer--fixed"]], ["data-booted", "true"], ["style", "left: 0px; right: 0px; bottom: 0px; display: none;"]]], ["div", [["aria-valuemax", "100"], ["aria-valuemin", "0"], ["aria-valuenow", "0"], ["class", ["v-progress-circular", "ml-n3", "mr-1"]], ["role", "progressbar"], ["style", "height: 16px; width: 16px; color: rgb(4, 169, 77); caret-color: rgb(4, 169, 77);"]]], ["svg", [["style", "transform: rotate(0deg);"], ["viewbox", "24.615384615384617 24.615384615384617 49.23076923076923 49.23076923076923"], ["xmlns", "http://www.w3.org/2000/svg"]]], ["circle", [["class", ["v-progress-circular__underlay"]], ["cx", "49.23076923076923"], ["cy", "49.23076923076923"], ["fill", "transparent"], ["r", "20"], ["stroke-dasharray", "125.664"], ["stroke-dashoffset", "0"], ["stroke-width", "9.230769230769232"]]], ["circle", [["class", ["v-progress-circular__overlay"]], ["cx", "49.23076923076923"], ["cy", "49.23076923076923"], ["fill", "transparent"], ["r", "20"], ["stroke-dasharray", "125.664"], ["stroke-dashoffset", "125.66370614359172px"], ["stroke-width", "9.230769230769232"]]], ["div", [["class", ["v-progress-circular__info"]]]], ["a", [["class", ["grey--text", "lighten-1--text", "text-caption", "text-decoration-none"]], ["href", "https://kitware.github.io/trame/"], ["target", "_blank"]]], ["div", [["class", ["spacer"]]]], ["span", [["class", ["v-tooltip", "v-tooltip--top"]]]], ["i", [["aria-expanded", "false"], ["aria-haspopup", "true"], ["aria-hidden", "true"], ["class", ["v-icon", "notranslate", "mr-4", "mdi", "mdi-help-circle", "theme--light"]], ["style", "font-size: 12px;"]]], ["a", [["class", ["grey--text", "lighten-1--text", "text-caption", "text-decoration-none"]], ["href", "https://www.kitware.com/"], ["target", "_blank"]]], ["script", [["src", "__trame_vuetify/trame-vuetify.umd.min.js"], ["type", "text/javascript"]]], ["script", [["src", "__trame_vtk/trame-vtk.js"], ["type", "text/javascript"]]]] \ No newline at end of file diff --git a/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/baseline_ref_0.png b/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/baseline_ref_0.png deleted file mode 100644 index 2e849ac..0000000 Binary files a/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/baseline_ref_0.png and /dev/null differ diff --git a/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/baseline_ref_1.png b/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/baseline_ref_1.png deleted file mode 100644 index 69094fa..0000000 Binary files a/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/baseline_ref_1.png and /dev/null differ diff --git a/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/baseline_ref_2.png b/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/baseline_ref_2.png deleted file mode 100644 index 6d7bfc6..0000000 Binary files a/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/baseline_ref_2.png and /dev/null differ diff --git a/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/tags_level_1.txt b/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/tags_level_1.txt deleted file mode 100644 index 65f0e5a..0000000 --- a/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/tags_level_1.txt +++ /dev/null @@ -1 +0,0 @@ -[["noscript"], ["strong"], ["div"], ["div"], ["header"], ["div"], ["button"], ["span"], ["i"], ["div"], ["div"], ["div"], ["main"], ["div"], ["div"], ["div"], ["div"], ["div"], ["canvas"], ["div"], ["div"], ["div"], ["canvas"], ["img"], ["footer"], ["div"], ["svg"], ["circle"], ["circle"], ["div"], ["a"], ["div"], ["span"], ["i"], ["a"], ["script"], ["script"]] \ No newline at end of file diff --git a/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/tags_level_2.txt b/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/tags_level_2.txt deleted file mode 100644 index bd33e00..0000000 --- a/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/tags_level_2.txt +++ /dev/null @@ -1 +0,0 @@ -[["noscript", []], ["strong", []], ["div", ["class", "data-app", "id"]], ["div", ["class"]], ["header", ["class", "data-booted", "style"]], ["div", ["class", "style"]], ["button", ["class", "type"]], ["span", ["class"]], ["i", ["aria-hidden", "class"]], ["div", ["class"]], ["div", ["class"]], ["div", ["class"]], ["main", ["class", "data-booted", "style"]], ["div", ["class"]], ["div", ["class"]], ["div", ["class", "style"]], ["div", ["style"]], ["div", ["style"]], ["canvas", ["height", "style", "width"]], ["div", ["class", "style"]], ["div", ["style"]], ["div", ["style"]], ["canvas", ["height", "style", "width"]], ["img", ["src", "style"]], ["footer", ["class", "data-booted", "style"]], ["div", ["aria-valuemax", "aria-valuemin", "aria-valuenow", "class", "role", "style"]], ["svg", ["style", "viewbox", "xmlns"]], ["circle", ["class", "cx", "cy", "fill", "r", "stroke-dasharray", "stroke-dashoffset", "stroke-width"]], ["circle", ["class", "cx", "cy", "fill", "r", "stroke-dasharray", "stroke-dashoffset", "stroke-width"]], ["div", ["class"]], ["a", ["class", "href", "target"]], ["div", ["class"]], ["span", ["class"]], ["i", ["aria-expanded", "aria-haspopup", "aria-hidden", "class", "style"]], ["a", ["class", "href", "target"]], ["script", ["src", "type"]], ["script", ["src", "type"]]] \ No newline at end of file diff --git a/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/tags_level_3.txt b/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/tags_level_3.txt deleted file mode 100644 index a371fac..0000000 --- a/visual_baseline/test_rendering[examples/validation/PyVistaLookupTable.py]/init/tags_level_3.txt +++ /dev/null @@ -1 +0,0 @@ -[["noscript", []], ["strong", []], ["div", [["class", ["v-application", "v-application--is-ltr", "theme--light"]], ["data-app", "true"], ["id", "app"]]], ["div", [["class", ["v-application--wrap"]]]], ["header", [["class", ["v-sheet", "theme--light", "v-toolbar", "v-app-bar", "v-app-bar--fixed"]], ["data-booted", "true"], ["style", "height: 56px; margin-top: 0px; transform: translateY(0px); left: 0px; right: 0px;"]]], ["div", [["class", ["v-toolbar__content"]], ["style", "height: 56px;"]]], ["button", [["class", ["v-app-bar__nav-icon", "v-btn", "v-btn--icon", "v-btn--round", "theme--light", "v-size--default"]], ["type", "button"]]], ["span", [["class", ["v-btn__content"]]]], ["i", [["aria-hidden", "true"], ["class", ["v-icon", "notranslate", "mdi", "mdi-menu", "theme--light"]]]], ["div", [["class", ["v-toolbar__title"]]]], ["div", [["class", ["spacer"]]]], ["div", [["class", ["readyCount"]]]], ["main", [["class", ["v-main"]], ["data-booted", "true"], ["style", "padding: 56px 0px 0px;"]]], ["div", [["class", ["v-main__wrap"]]]], ["div", [["class", ["container", "pa-0", "fill-height", "container--fluid"]]]], ["div", [["class", ["container", "pa-0", "fill-height", "container--fluid"]], ["style", "width: 50%;"]]], ["div", [["style", "position: relative; width: 100%; height: 100%;"]]], ["div", [["style", "position: absolute; width: 100%; height: 100%; overflow: hidden; cursor: default; touch-action: none; user-select: none;"]]], ["canvas", [["height", "244"], ["style", "width: 100%; display: block;"], ["width", "300"]]], ["div", [["class", ["container", "pa-0", "fill-height", "container--fluid"]], ["style", "width: 50%;"]]], ["div", [["style", "position: relative; width: 100%; height: 100%; z-index: 0;"]]], ["div", [["style", "position: absolute; width: 100%; height: 100%; overflow: hidden; cursor: pointer; touch-action: none; user-select: none;"]]], ["canvas", [["height", "244"], ["style", "width: 100%; display: block;"], ["width", "300"]]], ["img", [["src", "blob:http://127.0.0.1:53227/eeecc515-3520-41ab-a79f-b3763ab94547"], ["style", "position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; z-index: -1;"]]], ["footer", [["class", ["v-footer", "my-0", "py-0", "v-sheet", "theme--light", "v-footer--fixed"]], ["data-booted", "true"], ["style", "left: 0px; right: 0px; bottom: 0px; display: none;"]]], ["div", [["aria-valuemax", "100"], ["aria-valuemin", "0"], ["aria-valuenow", "0"], ["class", ["v-progress-circular", "ml-n3", "mr-1"]], ["role", "progressbar"], ["style", "height: 16px; width: 16px; color: rgb(4, 169, 77); caret-color: rgb(4, 169, 77);"]]], ["svg", [["style", "transform: rotate(0deg);"], ["viewbox", "24.615384615384617 24.615384615384617 49.23076923076923 49.23076923076923"], ["xmlns", "http://www.w3.org/2000/svg"]]], ["circle", [["class", ["v-progress-circular__underlay"]], ["cx", "49.23076923076923"], ["cy", "49.23076923076923"], ["fill", "transparent"], ["r", "20"], ["stroke-dasharray", "125.664"], ["stroke-dashoffset", "0"], ["stroke-width", "9.230769230769232"]]], ["circle", [["class", ["v-progress-circular__overlay"]], ["cx", "49.23076923076923"], ["cy", "49.23076923076923"], ["fill", "transparent"], ["r", "20"], ["stroke-dasharray", "125.664"], ["stroke-dashoffset", "125.66370614359172px"], ["stroke-width", "9.230769230769232"]]], ["div", [["class", ["v-progress-circular__info"]]]], ["a", [["class", ["grey--text", "lighten-1--text", "text-caption", "text-decoration-none"]], ["href", "https://kitware.github.io/trame/"], ["target", "_blank"]]], ["div", [["class", ["spacer"]]]], ["span", [["class", ["v-tooltip", "v-tooltip--top"]]]], ["i", [["aria-expanded", "false"], ["aria-haspopup", "true"], ["aria-hidden", "true"], ["class", ["v-icon", "notranslate", "mr-4", "mdi", "mdi-help-circle", "theme--light"]], ["style", "font-size: 12px;"]]], ["a", [["class", ["grey--text", "lighten-1--text", "text-caption", "text-decoration-none"]], ["href", "https://www.kitware.com/"], ["target", "_blank"]]], ["script", [["src", "__trame_vuetify/trame-vuetify.umd.min.js"], ["type", "text/javascript"]]], ["script", [["src", "__trame_vtk/trame-vtk.js"], ["type", "text/javascript"]]]] \ No newline at end of file diff --git a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_0.png b/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_0.png deleted file mode 100644 index df3b8ab..0000000 Binary files a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_0.png and /dev/null differ diff --git a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_1.png b/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_1.png deleted file mode 100644 index 67111a4..0000000 Binary files a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_1.png and /dev/null differ diff --git a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_2.png b/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_2.png deleted file mode 100644 index 8509415..0000000 Binary files a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_2.png and /dev/null differ diff --git a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_3.png b/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_3.png deleted file mode 100644 index e05db25..0000000 Binary files a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_3.png and /dev/null differ diff --git a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_4.png b/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_4.png deleted file mode 100644 index 987c270..0000000 Binary files a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/baseline_ref_4.png and /dev/null differ diff --git a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/tags_level_1.txt b/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/tags_level_1.txt deleted file mode 100644 index 65f0e5a..0000000 --- a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/tags_level_1.txt +++ /dev/null @@ -1 +0,0 @@ -[["noscript"], ["strong"], ["div"], ["div"], ["header"], ["div"], ["button"], ["span"], ["i"], ["div"], ["div"], ["div"], ["main"], ["div"], ["div"], ["div"], ["div"], ["div"], ["canvas"], ["div"], ["div"], ["div"], ["canvas"], ["img"], ["footer"], ["div"], ["svg"], ["circle"], ["circle"], ["div"], ["a"], ["div"], ["span"], ["i"], ["a"], ["script"], ["script"]] \ No newline at end of file diff --git a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/tags_level_2.txt b/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/tags_level_2.txt deleted file mode 100644 index bd33e00..0000000 --- a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/tags_level_2.txt +++ /dev/null @@ -1 +0,0 @@ -[["noscript", []], ["strong", []], ["div", ["class", "data-app", "id"]], ["div", ["class"]], ["header", ["class", "data-booted", "style"]], ["div", ["class", "style"]], ["button", ["class", "type"]], ["span", ["class"]], ["i", ["aria-hidden", "class"]], ["div", ["class"]], ["div", ["class"]], ["div", ["class"]], ["main", ["class", "data-booted", "style"]], ["div", ["class"]], ["div", ["class"]], ["div", ["class", "style"]], ["div", ["style"]], ["div", ["style"]], ["canvas", ["height", "style", "width"]], ["div", ["class", "style"]], ["div", ["style"]], ["div", ["style"]], ["canvas", ["height", "style", "width"]], ["img", ["src", "style"]], ["footer", ["class", "data-booted", "style"]], ["div", ["aria-valuemax", "aria-valuemin", "aria-valuenow", "class", "role", "style"]], ["svg", ["style", "viewbox", "xmlns"]], ["circle", ["class", "cx", "cy", "fill", "r", "stroke-dasharray", "stroke-dashoffset", "stroke-width"]], ["circle", ["class", "cx", "cy", "fill", "r", "stroke-dasharray", "stroke-dashoffset", "stroke-width"]], ["div", ["class"]], ["a", ["class", "href", "target"]], ["div", ["class"]], ["span", ["class"]], ["i", ["aria-expanded", "aria-haspopup", "aria-hidden", "class", "style"]], ["a", ["class", "href", "target"]], ["script", ["src", "type"]], ["script", ["src", "type"]]] \ No newline at end of file diff --git a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/tags_level_3.txt b/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/tags_level_3.txt deleted file mode 100644 index 8e3ffb0..0000000 --- a/visual_baseline/test_rendering[examples/validation/VolumeRendering.py]/init/tags_level_3.txt +++ /dev/null @@ -1 +0,0 @@ -[["noscript", []], ["strong", []], ["div", [["class", ["v-application", "v-application--is-ltr", "theme--light"]], ["data-app", "true"], ["id", "app"]]], ["div", [["class", ["v-application--wrap"]]]], ["header", [["class", ["v-sheet", "theme--light", "v-toolbar", "v-app-bar", "v-app-bar--fixed"]], ["data-booted", "true"], ["style", "height: 56px; margin-top: 0px; transform: translateY(0px); left: 0px; right: 0px;"]]], ["div", [["class", ["v-toolbar__content"]], ["style", "height: 56px;"]]], ["button", [["class", ["v-app-bar__nav-icon", "v-btn", "v-btn--icon", "v-btn--round", "theme--light", "v-size--default"]], ["type", "button"]]], ["span", [["class", ["v-btn__content"]]]], ["i", [["aria-hidden", "true"], ["class", ["v-icon", "notranslate", "mdi", "mdi-menu", "theme--light"]]]], ["div", [["class", ["v-toolbar__title"]]]], ["div", [["class", ["spacer"]]]], ["div", [["class", ["readyCount"]]]], ["main", [["class", ["v-main"]], ["data-booted", "true"], ["style", "padding: 56px 0px 0px;"]]], ["div", [["class", ["v-main__wrap"]]]], ["div", [["class", ["container", "pa-0", "fill-height", "container--fluid"]]]], ["div", [["class", ["container", "pa-0", "fill-height", "container--fluid"]], ["style", "width: 50%;"]]], ["div", [["style", "position: relative; width: 100%; height: 100%;"]]], ["div", [["style", "position: absolute; width: 100%; height: 100%; overflow: hidden; cursor: default; touch-action: none; user-select: none;"]]], ["canvas", [["height", "244"], ["style", "width: 100%; display: block;"], ["width", "300"]]], ["div", [["class", ["container", "pa-0", "fill-height", "container--fluid"]], ["style", "width: 50%;"]]], ["div", [["style", "position: relative; width: 100%; height: 100%; z-index: 0;"]]], ["div", [["style", "position: absolute; width: 100%; height: 100%; overflow: hidden; cursor: pointer; touch-action: none; user-select: none;"]]], ["canvas", [["height", "244"], ["style", "width: 100%; display: block;"], ["width", "300"]]], ["img", [["src", "blob:http://127.0.0.1:53303/e70d4283-9ae8-4fe2-afff-3ff4d781e190"], ["style", "position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; z-index: -1;"]]], ["footer", [["class", ["v-footer", "my-0", "py-0", "v-sheet", "theme--light", "v-footer--fixed"]], ["data-booted", "true"], ["style", "left: 0px; right: 0px; bottom: 0px; display: none;"]]], ["div", [["aria-valuemax", "100"], ["aria-valuemin", "0"], ["aria-valuenow", "0"], ["class", ["v-progress-circular", "ml-n3", "mr-1"]], ["role", "progressbar"], ["style", "height: 16px; width: 16px; color: rgb(4, 169, 77); caret-color: rgb(4, 169, 77);"]]], ["svg", [["style", "transform: rotate(0deg);"], ["viewbox", "24.615384615384617 24.615384615384617 49.23076923076923 49.23076923076923"], ["xmlns", "http://www.w3.org/2000/svg"]]], ["circle", [["class", ["v-progress-circular__underlay"]], ["cx", "49.23076923076923"], ["cy", "49.23076923076923"], ["fill", "transparent"], ["r", "20"], ["stroke-dasharray", "125.664"], ["stroke-dashoffset", "0"], ["stroke-width", "9.230769230769232"]]], ["circle", [["class", ["v-progress-circular__overlay"]], ["cx", "49.23076923076923"], ["cy", "49.23076923076923"], ["fill", "transparent"], ["r", "20"], ["stroke-dasharray", "125.664"], ["stroke-dashoffset", "125.66370614359172px"], ["stroke-width", "9.230769230769232"]]], ["div", [["class", ["v-progress-circular__info"]]]], ["a", [["class", ["grey--text", "lighten-1--text", "text-caption", "text-decoration-none"]], ["href", "https://kitware.github.io/trame/"], ["target", "_blank"]]], ["div", [["class", ["spacer"]]]], ["span", [["class", ["v-tooltip", "v-tooltip--top"]]]], ["i", [["aria-expanded", "false"], ["aria-haspopup", "true"], ["aria-hidden", "true"], ["class", ["v-icon", "notranslate", "mr-4", "mdi", "mdi-help-circle", "theme--light"]], ["style", "font-size: 12px;"]]], ["a", [["class", ["grey--text", "lighten-1--text", "text-caption", "text-decoration-none"]], ["href", "https://www.kitware.com/"], ["target", "_blank"]]], ["script", [["src", "__trame_vuetify/trame-vuetify.umd.min.js"], ["type", "text/javascript"]]], ["script", [["src", "__trame_vtk/trame-vtk.js"], ["type", "text/javascript"]]]] \ No newline at end of file