Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

test: expose completion state in GTK fixture

quanrudc1bf4b5e5c7
diff --git a/tests/midscene/e2e/onboarding.test.ts b/tests/midscene/e2e/onboarding.test.ts
index 97362f5..b95b0c1 100644
--- a/tests/midscene/e2e/onboarding.test.ts
+++ b/tests/midscene/e2e/onboarding.test.ts
@@ -120,7 +120,7 @@ describe('Doubao Say onboarding', () => {
'Scroll within the content if needed and click the Finish setup button.',
);
await agent.aiAct(
- 'Verify the visible feedback says Setup completed by the synthetic E2E fixture.',
+ 'Verify the Finish setup button changed to a disabled visible status saying Setup completed by the synthetic E2E fixture.',
);
});
});
diff --git a/tests/midscene/gtk_fixture.py b/tests/midscene/gtk_fixture.py
index 14cbffa..77397f7 100644
--- a/tests/midscene/gtk_fixture.py
+++ b/tests/midscene/gtk_fixture.py
@@ -44,7 +44,11 @@ def main():
GLib.timeout_add(350, finish)
def complete_setup():
- holder["control"].set_feedback("Setup completed by the synthetic E2E fixture.")
+ control = holder["control"]
+ message = "Setup completed by the synthetic E2E fixture."
+ control.set_feedback(message)
+ control._start_button.set_label(message)
+ control._start_button.set_sensitive(False)
actions = SetupActions(
test_voice=lambda: None,