Make the selector a bit more strict to avoid collision (#36499)
This commit is contained in:
commit
4b8e24cc9f
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
Made e2e selectors more robust
|
|
@ -233,7 +233,7 @@ test.describe( 'WooCommerce Orders > Refund and restock an order item', () => {
|
|||
|
||||
// Update the order
|
||||
await page.click( 'button.save_order' );
|
||||
await expect( page.locator( 'div.notice-success' ) ).toContainText(
|
||||
await expect( page.locator( 'div.updated.notice-success' ) ).toContainText(
|
||||
'Order updated.'
|
||||
);
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@ test.describe.serial( 'Import Products from a CSV file', () => {
|
|||
|
||||
// verify the error message if you go without providing CSV file
|
||||
await page.click( 'button[value="Continue"]' );
|
||||
await expect( page.locator( 'div.error' ) ).toContainText(
|
||||
await expect( page.locator( 'div.error.inline' ) ).toContainText(
|
||||
errorMessage
|
||||
);
|
||||
} );
|
||||
|
|
Loading…
Reference in New Issue