Update locator to reduce flakiness when running tests against an external site (#39375)
* Update locator to reduce flakiness when running tests against an external site * changelog update
This commit is contained in:
parent
3c07a03943
commit
d2fb10fcae
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
Update locator to reduce flakiness when running tests against a JN site
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
include post_ID in HPOS order edit screen
|
|
@ -346,9 +346,9 @@ test.describe( 'Checkout page', () => {
|
|||
|
||||
await page.locator( 'text=Place order' ).click();
|
||||
|
||||
await expect( page.locator( 'h1.entry-title' ) ).toContainText(
|
||||
'Order received'
|
||||
);
|
||||
await expect(
|
||||
page.getByRole( 'heading', { name: 'Order received' } )
|
||||
).toBeVisible();
|
||||
|
||||
// get order ID from the page
|
||||
const orderReceivedText = await page
|
||||
|
|
Loading…
Reference in New Issue