Skip to content

Commit

Permalink
update name of ui window
Browse files Browse the repository at this point in the history
  • Loading branch information
harderthan committed Jan 7, 2024
1 parent 67a10cc commit edebc8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion exts/stride.simulator/stride/simulator/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit edebc8a

Please sign in to comment.