Skip to content

Commit 18658df

Browse files
committed
Fix test helper for bulk editing
1 parent 11b87ba commit 18658df

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/_support/Helper/Acceptance/WPBulkEdit.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,16 @@ public function bulkEdit($I, $postType, $postIDs, $configuration, $noticePostTyp
4141
}
4242
}
4343

44-
// Scroll to Stock Quantity.
45-
$I->scrollTo('select.change_stock');
44+
switch ( $noticePostType ) {
45+
case 'coupon':
46+
// Scroll to Bulk Edit label.
47+
$I->scrollTo('#bulk-edit-legend');
48+
break;
49+
default:
50+
// Scroll to Stock Quantity.
51+
$I->scrollTo('select.change_stock');
52+
break;
53+
}
4654

4755
// Click Update.
4856
$I->click('Update');

0 commit comments

Comments
 (0)