@@ -22,13 +22,13 @@ test.describe( 'PRPL Task Snooze', () => {
2222
2323 // Find a task that's not completed or snoozed
2424 const taskToSnooze = initialTasks . find (
25- ( task ) => task . task_id === snoozeTaskId
25+ ( task ) => task . post_name === snoozeTaskId
2626 ) ;
2727
2828 if ( taskToSnooze ) {
2929 // Hover over the task to show actions
3030 const taskElement = page . locator (
31- `li[data-task-id="${ taskToSnooze . task_id } "]`
31+ `li[data-task-id="${ taskToSnooze . post_name } "]`
3232 ) ;
3333 await taskElement . hover ( ) ;
3434
@@ -47,7 +47,7 @@ test.describe( 'PRPL Task Snooze', () => {
4747 // Select 1 week duration by clicking the label
4848 await page . evaluate ( ( taskToBeSnoozed ) => {
4949 const radio = document . querySelector (
50- `li[data-task-id="${ taskToBeSnoozed . task_id } "] .prpl-snooze-duration-radio-group input[type="radio"][value="1-week"]`
50+ `li[data-task-id="${ taskToBeSnoozed . post_name } "] .prpl-snooze-duration-radio-group input[type="radio"][value="1-week"]`
5151 ) ;
5252 const label = radio . closest ( 'label' ) ;
5353 label . click ( ) ;
@@ -67,7 +67,7 @@ test.describe( 'PRPL Task Snooze', () => {
6767 ) ;
6868 const updatedTasks = await updatedResponse . json ( ) ;
6969 const updatedTask = updatedTasks . find (
70- ( task ) => task . task_id === taskToSnooze . task_id
70+ ( task ) => task . post_name === taskToSnooze . post_name
7171 ) ;
7272 expect ( updatedTask . post_status ) . toBe ( 'future' ) ;
7373 }
0 commit comments