Skip to content

Commit

Permalink
Update e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Apr 12, 2024
1 parent f023257 commit 68903c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/specs/site-editor/hybrid-theme.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test.describe( 'Hybrid theme', () => {
);

await expect(
page.getByRole( 'link', { name: 'header' } )
page.getByText( 'header', { exact: true } )
).toBeVisible();
} );

Expand All @@ -29,7 +29,7 @@ test.describe( 'Hybrid theme', () => {
'postType=wp_template_part&path=/wp_template_part/all'
);

const templatePart = page.getByRole( 'link', { name: 'header' } );
const templatePart = page.getByText( 'header', { exact: true } );

await expect( templatePart ).toBeVisible();
await templatePart.click();
Expand Down

0 comments on commit 68903c8

Please sign in to comment.