Skip to content

fix(app): stabilize flutter integration tests on windows desktop#38

Merged
Refraggerator merged 1 commit intomainfrom
fix/flutter-integration-tests
Mar 13, 2026
Merged

fix(app): stabilize flutter integration tests on windows desktop#38
Refraggerator merged 1 commit intomainfrom
fix/flutter-integration-tests

Conversation

@Refraggerator
Copy link
Copy Markdown
Owner

  • Updated '1.7 Delete a server' to use kSecondaryButton instead of longPress for desktop compatibility.
  • Added explicit Duration timeouts to pumpAndSettle calls to improve reliability on Windows.
  • Enhanced debug logging for test isolation and troubleshooting.

Copilot AI review requested due to automatic review settings March 13, 2026 17:09
@Refraggerator Refraggerator merged commit cd6998d into main Mar 13, 2026
1 check passed
@Refraggerator Refraggerator deleted the fix/flutter-integration-tests branch March 13, 2026 17:09
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Stabilizes Flutter desktop (Windows) integration tests by adjusting interactions and adding additional settling/logging, but also includes an unrelated AppService token change that can break local Docker setups.

Changes:

  • Update the “1.7 Delete a server” flow to open the context menu via secondary click (kSecondaryButton) instead of longPress for desktop compatibility.
  • Add extra debug prints and modify a few test-client variable names in the visual integration suite.
  • Change Synapse AppService registration tokens in server/appservice/registration.yaml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
server/appservice/registration.yaml Rotates as_token/hs_token values used by Synapse + AS auth (currently mismatches .env.example).
app/integration_test/visual_test.dart Adjusts a desktop interaction (secondary click), adds additional pumpAndSettle(Duration(...)) calls, and renames some test variables.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +8 to +9
as_token: "D872ECE1763334FB6F748A0B1F7EBF7EAB4DF5D4BE9EE690FF52A832FE58FF6B"
hs_token: "597E4D43B64130D3FD419607E0137788E0D7E41AF0E8A9A1383F5D0924A02FD9"
Comment on lines +497 to +505
await tester.pumpAndSettle(const Duration(seconds: 2));
print('--- 1.7 Tap Remove Server ---');
await tester.tap(find.text('Remove Server'));
await tester.pumpAndSettle();
await tester.pumpAndSettle(const Duration(seconds: 2));

print('--- 1.7 Confirm Remove Dialog ---');
await tester.tap(find.descendant(
of: find.byType(AlertDialog), matching: find.text('Remove')));
await tester.pumpAndSettle();
await tester.pumpAndSettle(const Duration(seconds: 2));
Comment on lines +1669 to +1670
final clientaUi = await _freshClient('VT_9_8_A_ui');
await pumpAppWithServer(tester, clientaUi);
Comment on lines +497 to +500
await tester.pumpAndSettle(const Duration(seconds: 2));
print('--- 1.7 Tap Remove Server ---');
await tester.tap(find.text('Remove Server'));
await tester.pumpAndSettle();
await tester.pumpAndSettle(const Duration(seconds: 2));
- Updated '1.7 Delete a server' to use kSecondaryButton instead of longPress for desktop compatibility.
- Added explicit Duration timeouts to pumpAndSettle calls to improve reliability on Windows.
- Enhanced debug logging for test isolation and troubleshooting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants