Skip to content

Commit

Permalink
Fix flaky 'Keep styles on block transforms' e2e test (#51593)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Jun 17, 2023
1 parent e3194a1 commit 53d0226
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

1 comment on commit 53d0226

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 53d0226.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5296384385
📝 Reported issues:

Please sign in to comment.