From edebc8a84ccaf797e1bba56928fd00287d09ae34 Mon Sep 17 00:00:00 2001 From: harderthan Date: Sun, 7 Jan 2024 13:37:29 +0900 Subject: [PATCH] update name of ui window --- exts/stride.simulator/stride/simulator/extension.py | 2 +- .../stride/simulator/tests/test_hello_world.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exts/stride.simulator/stride/simulator/extension.py b/exts/stride.simulator/stride/simulator/extension.py index 71d270e..211cdca 100644 --- a/exts/stride.simulator/stride/simulator/extension.py +++ b/exts/stride.simulator/stride/simulator/extension.py @@ -20,7 +20,7 @@ def on_startup(self, ext_id): self._count = 0 - self._window = ui.Window("My Window", width=300, height=300) + self._window = ui.Window("Stride Simulator", width=300, height=300) with self._window.frame: with ui.VStack(): label = ui.Label("") diff --git a/exts/stride.simulator/stride/simulator/tests/test_hello_world.py b/exts/stride.simulator/stride/simulator/tests/test_hello_world.py index 5703bda..91e48af 100644 --- a/exts/stride.simulator/stride/simulator/tests/test_hello_world.py +++ b/exts/stride.simulator/stride/simulator/tests/test_hello_world.py @@ -30,11 +30,11 @@ async def test_hello_public_function(self): async def test_window_button(self): # Find a label in our window - label = ui_test.find("My Window//Frame/**/Label[*]") + label = ui_test.find("Stride Simulator//Frame/**/Label[*]") # Find buttons in our window - add_button = ui_test.find("My Window//Frame/**/Button[*].text=='Add'") - reset_button = ui_test.find("My Window//Frame/**/Button[*].text=='Reset'") + add_button = ui_test.find("Stride Simulator//Frame/**/Button[*].text=='Add'") + reset_button = ui_test.find("Stride Simulator//Frame/**/Button[*].text=='Reset'") # Click reset button await reset_button.click()