Skip to content

Commit

Permalink
Tests: Fix checkout fields not always being populated
Browse files Browse the repository at this point in the history
  • Loading branch information
n7studios committed Sep 17, 2024
1 parent 833fdd8 commit fd3127b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/_support/Helper/Acceptance/WooCommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ public function wooCommerceCheckoutWithProduct($I, $productID, $productName, $em
switch ($useLegacyCheckout) {
// Legacy Checkout Shortcode.
case true:
$I->waitForElementVisible('#billing_first_name');
$I->fillField('#billing_first_name', 'First');
$I->fillField('#billing_last_name', 'Last');
$I->fillField('#billing_address_1', 'Address Line 1');
Expand All @@ -662,6 +663,7 @@ public function wooCommerceCheckoutWithProduct($I, $productID, $productName, $em

// Checkout Block.
case false:
$I->waitForElementVisible('#billing-first_name');
$I->fillField('#billing-first_name', 'First');
$I->fillField('#billing-last_name', 'Last');
$I->fillField('#billing-address_1', 'Address Line 1');
Expand Down

0 comments on commit fd3127b

Please sign in to comment.