Skip to content

Commit

Permalink
Merge pull request #454 from woocommerce/fix/e2e-billing-state-input
Browse files Browse the repository at this point in the history
Fix `#billing-state` option select in e2e tests
  • Loading branch information
martynmjones authored Aug 8, 2024
2 parents 884854d + 3f3bbba commit 11e35ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/utils/customer.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export async function checkout( page ) {
.fill( user.addressfirstline );
await page.getByLabel( 'City' ).fill( user.city );
await page.getByLabel( 'ZIP Code' ).fill( user.postcode );
await page.locator( '#billing-state' ).fill( user.statename );
await page.locator( '#billing-state' ).selectOption( user.statename );
}

//TODO: See if there's an alternative method to click the button without relying on waitForTimeout.
Expand Down

0 comments on commit 11e35ce

Please sign in to comment.