Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix Checkout template E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tarhi-saad committed Sep 28, 2023
1 parent 52018a6 commit c6cc89e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test.describe( 'Test the checkout template', async () => {
await expect(
page
.frameLocator( 'iframe[title="Editor canvas"i]' )
.locator( 'h2:has-text("Checkout")' )
.locator( 'h1:has-text("Checkout")' )
.first()
).toBeVisible();
} );
Expand All @@ -38,12 +38,12 @@ test.describe( 'Test the checkout template', async () => {
await editor.page.getByRole( 'button', { name: /Checkout/i } ).click();
await editorUtils.enterEditMode();
await expect(
editor.canvas.locator( 'h2:has-text("Checkout")' ).first()
editor.canvas.locator( 'h1:has-text("Checkout")' ).first()
).toBeVisible();
await editor.openDocumentSettingsSidebar();
await page.getByRole( 'button', { name: 'Edit template' } ).click();
await expect(
editor.canvas.locator( 'h2:has-text("Checkout")' ).first()
editor.canvas.locator( 'h1:has-text("Checkout")' ).first()
).toBeVisible();
} );

Expand All @@ -53,7 +53,7 @@ test.describe( 'Test the checkout template', async () => {
await expect(
admin.page
.frameLocator( 'iframe[title="Editor canvas"i]' )
.locator( 'h2:has-text("Checkout")' )
.locator( 'h1:has-text("Checkout")' )
.first()
).toBeVisible();
} );
Expand Down

0 comments on commit c6cc89e

Please sign in to comment.