diff --git a/tests/e2e/utils/customer.js b/tests/e2e/utils/customer.js index 8d247f18..1cc7ed68 100644 --- a/tests/e2e/utils/customer.js +++ b/tests/e2e/utils/customer.js @@ -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.