@@ -77,9 +77,9 @@ export class Scenario {
7777 await this . db . user . updateMany ( { where : { email : 'admin@localhost' } , data : { password : adminHash , aiDataConsentAt : new Date ( ) , confirmBeforeImport : false , gradeRecognitionMode : 'fixed' , fixedGradeSemester : null , enableSvgAnimation : false } } ) ;
7878 await this . db . user . updateMany ( { where : { email : 'setup-admin@localhost' } , data : { password : defaultHash , aiDataConsentAt : new Date ( ) } } ) ;
7979 this . user = await this . db . user . create ( { data : { email : `a-${ this . id } @example.test` , password : passwordHash , name : 'E2E 学生 A' ,
80- educationStage : 'junior_high' , enrollmentYear : 2025 , fixedGradeSemester : '初二上' , enableSvgAnimation : false , aiDataConsentAt : new Date ( ) } } ) ;
80+ educationStage : 'junior_high' , enrollmentYear : 2025 , fixedGradeSemester : '初二上' , enableSvgAnimation : false , aiDataConsentAt : new Date ( ) , confirmBeforeImport : false } } ) ;
8181 this . otherUser = await this . db . user . create ( { data : { email : `b-${ this . id } @example.test` , password : passwordHash , name : 'E2E 学生 B' ,
82- educationStage : 'junior_high' , enrollmentYear : 2025 , fixedGradeSemester : '初二上' , enableSvgAnimation : false , aiDataConsentAt : new Date ( ) } } ) ;
82+ educationStage : 'junior_high' , enrollmentYear : 2025 , fixedGradeSemester : '初二上' , enableSvgAnimation : false , aiDataConsentAt : new Date ( ) , confirmBeforeImport : false } } ) ;
8383 this . book = await this . db . subject . create ( { data : { name : '数学' , stage : 'junior_high' , subjectKey : 'math' , userId : this . user . id } } ) ;
8484 const entries = await Promise . all ( [ 'a' , 'b' , 'other' ] . map ( ( key , order ) => this . db . paperGroup . create ( { data : {
8585 userId : this . user . id , key, name : [ 'A卷' , 'B卷' , '其他' ] [ order ] , order,
@@ -112,7 +112,7 @@ export class Scenario {
112112 const email = this . user . email ;
113113 await this . db . user . delete ( { where : { id : this . user . id } } ) ;
114114 this . user = await this . db . user . create ( { data : { email, password : passwordHash , name : 'E2E 恢复账号' ,
115- educationStage : 'junior_high' , enrollmentYear : 2025 , fixedGradeSemester : '初二上' , enableSvgAnimation : false , aiDataConsentAt : new Date ( ) } } ) ;
115+ educationStage : 'junior_high' , enrollmentYear : 2025 , fixedGradeSemester : '初二上' , enableSvgAnimation : false , aiDataConsentAt : new Date ( ) , confirmBeforeImport : false } } ) ;
116116 }
117117
118118 async records ( ) { return this . db . practiceRecord . findMany ( { where : { userId : this . user . id } , orderBy : { createdAt : 'asc' } } ) ; }
0 commit comments