[e2e test] Fix locator for customer combobox in create order test (#45983)

This commit is contained in:
Adrian Moldovan 2024-03-27 13:48:14 +02:00 committed by GitHub
parent 271da399cc
commit 6ddbbae207
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
E2E tests: fix locator in create order tests

View File

@ -361,7 +361,9 @@ test.describe( 'WooCommerce Orders > Add new order', () => {
// Select customer
await page.getByText( 'Guest' ).click();
await page.getByRole( 'combobox' ).nth( 4 ).fill( 'sideshowbob@' );
await page
.locator( 'input[aria-owns="select2-customer_user-results"]' )
.fill( 'sideshowbob@' );
await page.getByRole( 'option', { name: 'Sideshow Bob' } ).click();
// Add a product