Skip to content

Commit 0014ab8

Browse files
committed
be more specific one more time
1 parent a38432f commit 0014ab8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/e2e/helpers/cleanup.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ async function cleanUpPlannerTasks( { page, context, baseUrl } ) {
2323
const todoItems = page.locator( SELECTORS.TODO_ITEM );
2424
while ( ( await todoItems.count() ) > 0 ) {
2525
const firstItem = todoItems.first();
26-
const trash = firstItem.locator( '.trash' );
26+
const trash = firstItem.locator(
27+
'.prpl-suggested-task-actions-wrapper .trash'
28+
);
2729

2830
try {
2931
console.log(
@@ -57,7 +59,9 @@ async function cleanUpPlannerTasks( { page, context, baseUrl } ) {
5759
);
5860
while ( ( await completedItems.count() ) > 0 ) {
5961
const firstCompleted = completedItems.first();
60-
const trash = firstCompleted.locator( '.trash' );
62+
const trash = firstCompleted.locator(
63+
'.prpl-suggested-task-points-wrapper .trash'
64+
);
6165

6266
try {
6367
console.log(

0 commit comments

Comments
 (0)