feat: select school terms and smooth refractive Dock motion

This commit is contained in:
Codex
2026-10-13 19:08:36 +08:00
parent 3e2d8864af
commit 50fcc70e8e
33 changed files with 1245 additions and 94 deletions
+26
View File
@@ -2,6 +2,32 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:hepan_everyday/features/school/school_login_flow.dart';
void main() {
test(
'exam redirect compares selected xq rather than only the shared path',
() {
final flow = SchoolLoginFlow();
final target = Uri.parse(
'https://yjsjy.uestc.edu.cn/pyxx/pygl/kskcxx/index?xq=72',
);
flow.begin(target);
expect(
flow.onLoaded(
target.replace(query: 'xq=72&view=student'),
authenticated: true,
),
isNull,
);
expect(
flow.onLoaded(target.replace(query: 'xq=73'), authenticated: true),
target,
);
flow.begin(target);
expect(
flow.onLoaded(target.replace(query: ''), authenticated: true),
target,
);
},
);
test(
'repeated school login bounces have a bounded automatic redirect budget',
() {