Skip to content
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
27 changes: 27 additions & 0 deletions src/setup/global.setup.js

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you think it worths adding following preferences for core/edit-site?

{
	welcomeGuide: false,
	welcomeGuideStyles: false,
	welcomeGuidePage: false,
	welcomeGuideTemplate: false,
}

Also, there is fullscreenMode preference, do you think we should set it to a standard value for our e2e tests.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

See 2612d49 and 8549c53.

Added core/edit-site preferences, no current spec covers the site editor but might as well cover it now.

fullscreenMode added too.

Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,32 @@ export default async function globalSetup( config ) {
resetAllSettings( requestUtils ),
] );

// Disable editors welcome guides globally for all projects.
// Must be called after resetPreferences() which would otherwise overwrite this.
await requestUtils.rest( {
path: '/wp/v2/users/me',
method: 'PUT',
data: {
meta: {
persisted_preferences: {
'core/edit-post': {
welcomeGuide: false,
welcomeGuideTemplate: false,
fullscreenMode: false,
},
'core/edit-widgets': {
welcomeGuide: false,
},
'core/edit-site': {
welcomeGuide: false,
welcomeGuideStyles: false,
welcomeGuidePage: false,
welcomeGuideTemplate: false,
},
},
},
},
} );

await requestContext.dispose();
}
Loading