Skip to content

Commit

Permalink
Fix flaky 'Keep styles on block transforms' e2e test (WordPress#51593)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored and sethrubenstein committed Jul 13, 2023
1 parent b4ecf1f commit 4a56811
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ test.describe( 'Keep styles on block transforms', () => {
page,
editor,
} ) => {
await editor.openDocumentSettingsSidebar();
await editor.canvas.click( 'role=button[name="Add default block"i]' );
await page.keyboard.type( '## Heading' );
await editor.openDocumentSettingsSidebar();
await page.click( 'role=button[name="Color Text styles"i]' );
await page.click( 'role=button[name="Color: Luminous vivid orange"i]' );

Expand Down Expand Up @@ -44,7 +44,7 @@ test.describe( 'Keep styles on block transforms', () => {
title: 'test',
} );
} );
// Create a paragraph block with some content.
await editor.openDocumentSettingsSidebar();
await editor.canvas.click( 'role=button[name="Add default block"i]' );
await page.keyboard.type( 'Line 1 to be made large' );
await page.keyboard.press( 'Enter' );
Expand Down Expand Up @@ -77,7 +77,7 @@ test.describe( 'Keep styles on block transforms', () => {
page,
editor,
} ) => {
// Create a paragraph block with some content.
await editor.openDocumentSettingsSidebar();
await editor.canvas.click( 'role=button[name="Add default block"i]' );
await page.keyboard.type( 'Line 1 to be made large' );
await page.click( 'role=radio[name="Large"i]' );
Expand Down

0 comments on commit 4a56811

Please sign in to comment.