feat(app): phone onboarding (server, then password) kept across launches; a known server opens straight into the app; a refused session asks for the password
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:pipelines_app/application/app_session.dart';
|
||||
|
||||
void main() {
|
||||
test('a known server opens the app instead of the connection screen', () {
|
||||
final fresh = AppSession(endpoint: null);
|
||||
final known = AppSession(endpoint: null, knownServer: true);
|
||||
addTearDown(fresh.dispose);
|
||||
addTearDown(known.dispose);
|
||||
expect(fresh.everConnected, isFalse);
|
||||
expect(known.everConnected, isTrue);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user