Skip to content

Commit ef189af

Browse files
committed
tests: try to fix volume rendering
1 parent 89df689 commit ef189af

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

examples/validation/VolumeRendering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
with vuetify.VContainer(
9898
fluid=True, classes="pa-0 fill-height", style="width: 50%;"
9999
):
100-
remote = VtkRemoteView(renWin)
100+
VtkRemoteView(renWin, ctx_name="remote")
101101

102102
# hide footer
103103
layout.footer.hide()

tests/test_volume_rendering.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import asyncio
12
from pathlib import Path
23
import pytest
34
from seleniumbase import SB
@@ -11,11 +12,17 @@
1112

1213

1314
@pytest.mark.parametrize("server_path", ["examples/validation/VolumeRendering.py"])
14-
def test_rendering(server, baseline_image):
15+
@pytest.mark.asyncio
16+
async def test_rendering(server, baseline_image):
1517
with SB() as sb:
1618
url = f"http://127.0.0.1:{server.port}/"
1719
sb.open(url)
1820
set_browser_size(sb, 600, 300)
1921
sb.assert_exact_text("1", ".readyCount")
2022
sb.check_window(name="init", level=3)
23+
24+
# Try to make sure the remote rendering has the proper size
25+
await asyncio.sleep(0.1)
26+
27+
# Grab and compare baseline
2128
baseline_comparison(sb, BASELINE_TEST, 0.1)

0 commit comments

Comments
 (0)