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

Migrate block editor insert usage to preferences store #39632

Open
wants to merge 12 commits into
base: trunk
Choose a base branch
from
6 changes: 6 additions & 0 deletions test/e2e/specs/site-editor/activate-theme.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ test.describe( 'Activate theme', () => {
await expect( page.locator( '.edit-site-canvas-loader' ) ).toHaveCount(
0
);
// Usually `visitSiteEditor` is used to test the site editor, and it
// hides the welcome guide. Since this test uses a different flow,
// manually update the preferences here.
await editor.setPreferences( 'core/edit-site', {
welcomeGuide: false,
} );
Comment on lines +42 to +44
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test actually fails in trunk if you run it locally. It only passes in CI in trunk because other tests that run before it set welcomeGuide to false 😬

I'm not sure why it started failing on CI in this PR.

await editor.canvas.locator( 'body' ).click();
await page
.getByRole( 'region', { name: 'Editor top bar' } )
Expand Down
Loading