feat(e2e): autologin patch (dev) + 登录态路由测试脚本
- util_web devAutologin: localStorage[_test_token]=user|pass -> 登录API写Hive+dispatch currentUser - 延迟3s执行等 Flutter/Hive ready (否则 httpPost hang) - main.dart 调用 devAutologin - run_auth.js: 注入token遍历登录态路由 - 已验证: autologin API 200 OK
This commit is contained in:
@@ -43,6 +43,7 @@ void main() {
|
||||
// configureApp();
|
||||
setPathUrlStrategy();
|
||||
runApp(MyApp());
|
||||
Future.delayed(Duration(seconds: 3), () => Util.devAutologin()); // DEV e2e: 延迟 3s 等 Flutter/Hive ready
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
|
||||
Reference in New Issue
Block a user