Skip to content

Commit

Permalink
Fix test for font family combobox
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Nov 21, 2024
1 parent 135c33b commit a10e2e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e/specs/site-editor/font-library.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,8 @@ test.describe( 'Font Library', () => {
await page
.getByRole( 'button', { name: 'Headings', exact: true } )
.click();
await page
.getByRole( 'combobox', { name: 'Font' } )
.selectOption( 'Exo 2' );
await page.getByRole( 'combobox', { name: 'Font' } ).click();
await page.getByRole( 'option', { name: 'Exo 2' } ).click();
await expect(
editor.canvas.locator( '.is-root-container h1' )
).toHaveCSS( 'font-family', '"Exo 2"' );
Expand Down

0 comments on commit a10e2e9

Please sign in to comment.