feat(mobile): Add integration tests (#1359)

This commit is contained in:
Matthias Rupp 2023-01-22 04:43:28 +01:00 committed by GitHub
parent e5d798581c
commit f4c90426a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 246 additions and 15 deletions

View file

@ -223,6 +223,11 @@ class ServerEndpointInput extends StatelessWidget {
parsedUrl.host.isEmpty) {
return 'login_form_err_invalid_url'.tr();
}
if (!parsedUrl.scheme.startsWith("https")) {
return 'login_form_err_http_insecure'.tr();
}
return null;
}
@ -234,6 +239,7 @@ class ServerEndpointInput extends StatelessWidget {
labelText: 'login_form_endpoint_url'.tr(),
border: const OutlineInputBorder(),
hintText: 'login_form_endpoint_hint'.tr(),
errorMaxLines: 4
),
validator: _validateInput,
autovalidateMode: AutovalidateMode.always,