Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky 'Keep styles on block transforms' e2e test #51593

Merged
merged 1 commit into from
Jun 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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