feat: release undergraduate integration 0.7.0
This commit is contained in:
@@ -31,6 +31,26 @@ void main() {
|
||||
session = UndergraduateSession();
|
||||
});
|
||||
tearDown(() => session.dispose());
|
||||
test(
|
||||
'activating a loading browser never probes the previous blank document',
|
||||
() async {
|
||||
await session.openTimetable();
|
||||
var probes = 0;
|
||||
platform.web.javascript = (_) async {
|
||||
probes++;
|
||||
return underEvidence('about:blank', authenticated: false);
|
||||
};
|
||||
session.setReadingActive(true);
|
||||
await flushSchoolEvents();
|
||||
expect(probes, 0);
|
||||
platform.web.javascript = (_) async => underEvidence(platform.web.url!);
|
||||
platform.delegate.started(platform.web.url!);
|
||||
platform.delegate.finished(platform.web.url!);
|
||||
await flushSchoolEvents();
|
||||
expect(session.busy, isFalse);
|
||||
expect(session.message, UndergraduateSession.manualMessage);
|
||||
},
|
||||
);
|
||||
test(
|
||||
'manual session is lazy and never captures until the student taps import',
|
||||
() async {
|
||||
|
||||
Reference in New Issue
Block a user