Skip to content

Commit

Permalink
FontSizePicker: fix broken font sizes override in e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Nov 3, 2022
1 parent 220e995 commit a42cdcc
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ describe( 'Font Size Picker', () => {
slug: 'tiny',
size: '11px',
},
,
{
name: 'Small',
slug: 'small',
Expand Down Expand Up @@ -158,7 +157,7 @@ describe( 'Font Size Picker', () => {
await page.keyboard.type( 'Paragraph to be made "large"' );

await openFontSizeSelectControl();
await pressKeyTimes( 'ArrowDown', 5 );
await pressKeyTimes( 'ArrowDown', 4 );
await page.keyboard.press( 'Enter' );

expect( await getEditedPostContent() ).toMatchInlineSnapshot( `
Expand All @@ -175,7 +174,7 @@ describe( 'Font Size Picker', () => {
);

await openFontSizeSelectControl();
await pressKeyTimes( 'ArrowDown', 4 );
await pressKeyTimes( 'ArrowDown', 3 );
await page.keyboard.press( 'Enter' );
expect( await getEditedPostContent() ).toMatchInlineSnapshot( `
"<!-- wp:paragraph {\\"fontSize\\":\\"medium\\"} -->
Expand All @@ -202,7 +201,7 @@ describe( 'Font Size Picker', () => {
);

await openFontSizeSelectControl();
await pressKeyTimes( 'ArrowDown', 3 );
await pressKeyTimes( 'ArrowDown', 2 );
await page.keyboard.press( 'Enter' );
expect( await getEditedPostContent() ).toMatchInlineSnapshot( `
"<!-- wp:paragraph {\\"fontSize\\":\\"small\\"} -->
Expand Down

0 comments on commit a42cdcc

Please sign in to comment.