Skip to content

Commit

Permalink
Fix billing-state option select in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Martyn Jones committed Aug 8, 2024
1 parent 884854d commit 3f3bbba
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 3f3bbba

Please sign in to comment.