Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update name of ui window #11

Merged
merged 1 commit into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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