From 3f3bbba40815045da34c6dbc34885870423df834 Mon Sep 17 00:00:00 2001 From: Martyn Jones Date: Thu, 8 Aug 2024 06:12:17 +0100 Subject: [PATCH] Fix billing-state option select in e2e tests --- tests/e2e/utils/customer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.