Skip to content

Commit

Permalink
Fix E2E test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Mar 9, 2020
1 parent 0bc76c9 commit a2340eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/e2e-tests/specs/editor/various/rich-text.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* WordPress dependencies
*/
import {
clickButton,
createNewPost,
getEditedPostContent,
insertBlock,
Expand All @@ -22,7 +23,8 @@ describe( 'RichText', () => {
//
// See: https://github.com/WordPress/gutenberg/issues/3091
await insertBlock( 'Heading' );
await page.click( '[aria-label="Heading 3"]' );
await page.click( '[aria-label="Change heading level"]' );
await clickButton( 'Heading 3' );

expect( await getEditedPostContent() ).toMatchSnapshot();
} );
Expand Down

0 comments on commit a2340eb

Please sign in to comment.