@@ -396,4 +396,34 @@ test.describe('Planning ToDo tests', () => {
396
396
await sidebarPage . checkIfPlanerSidebarTabIsOpen ( true )
397
397
} )
398
398
} )
399
+
400
+ test ( 'Moving ToDo in scheduler panel' , async ( { page } ) => {
401
+ const planningNavigationMenuPage = new PlanningNavigationMenuPage ( page )
402
+ await planningNavigationMenuPage . clickOnButtonToDoAll ( )
403
+ const toDoName = `ToDo to moving in scheduler panel ${ generateId ( ) } `
404
+ const planningPage = new PlanningPage ( page )
405
+ const unplannedCategory = 'Unplanned'
406
+ const defaultSubCategory = 'Without project'
407
+ await test . step ( `New ToDo in "${ unplannedCategory } " category "${ defaultSubCategory } " subcategory` , async ( ) => {
408
+ await planningPage . createNewToDoFromInput ( toDoName )
409
+ await planningNavigationMenuPage . checkToDoCategory ( toDoName , unplannedCategory , defaultSubCategory )
410
+ } )
411
+ const projectName = 'Second Project'
412
+ await test . step ( `ToDo joined to project change "${ projectName } " subcategory` , async ( ) => {
413
+ await planningPage . openToDoByName ( toDoName )
414
+ await planningPage . addEventToSpace ( projectName )
415
+ await planningNavigationMenuPage . checkToDoCategory ( toDoName , unplannedCategory , projectName )
416
+ } )
417
+ const scheduledCategory = 'Scheduled'
418
+ await test . step ( `Scheduled ToDo to "${ scheduledCategory } " category` , async ( ) => {
419
+ await planningPage . openToDoByName ( toDoName )
420
+ await planningPage . clickButtonCreateAddSlot ( )
421
+ await planningNavigationMenuPage . checkToDoCategory ( toDoName , scheduledCategory , projectName )
422
+ } )
423
+ const completedCategory = 'Done'
424
+ await test . step ( `completed ToDo move to "${ completedCategory } " category` , async ( ) => {
425
+ await planningPage . markDoneInToDos ( toDoName )
426
+ await planningNavigationMenuPage . checkToDoCategory ( toDoName , completedCategory , projectName )
427
+ } )
428
+ } )
399
429
} )
0 commit comments