TF-3341 Integration test web socket for mobile

This commit is contained in:
DatDang
2024-12-17 17:13:14 +07:00
committed by Dat H. Pham
parent ea58e3297b
commit 48a035edc9
6 changed files with 179 additions and 10 deletions
@@ -0,0 +1,25 @@
import '../../base/test_base.dart';
import '../../scenarios/login_with_basic_auth_scenario.dart';
import '../../scenarios/web_socket_update_ui_scenario.dart';
void main() {
TestBase().runPatrolTest(
description: 'Should see thread view updated per web socket message',
test: ($) async {
final loginWithBasicAuthScenario = LoginWithBasicAuthScenario($,
username: const String.fromEnvironment('USERNAME'),
hostUrl: const String.fromEnvironment('BASIC_AUTH_URL'),
email: const String.fromEnvironment('BASIC_AUTH_EMAIL'),
password: const String.fromEnvironment('PASSWORD'),
);
final webSocketUpdateUiScenario = WebSocketUpdateUiScenario($,
loginWithBasicAuthScenario: loginWithBasicAuthScenario,
subject: 'web socket subject',
content: 'web socket content',
);
await webSocketUpdateUiScenario.execute();
}
);
}