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:
nigeljamesstevenson 2023-08-03 22:01:52 +01:00 committed by GitHub
parent 3c07a03943
commit d2fb10fcae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Update locator to reduce flakiness when running tests against a JN site

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
include post_ID in HPOS order edit screen

View File

@ -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