feat: select school terms and smooth refractive Dock motion
This commit is contained in:
@@ -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',
|
||||
() {
|
||||
|
||||
Reference in New Issue
Block a user