- Increase the minimum required Node.js version to v18.12.0 matching long-term support releases (#31270). Learn more about Node.js releases.
- Update promise order in
loginUser
to avoid any flakiness in the tests. - Update
activateTheme
to redirect tothemes.php
after theme activation, if theme redirects to some other page. - Update
activatePlugin
to redirect toplugins.php
after plugin activation, if plugin redirects to some other page.
- Started requiring Jest v29 instead of v27 as a peer dependency. See breaking changes in Jest 28 and in jest 29 (#47388)
- Remove all the site editor navigation panel related utils: getSiteEditorMenuItem, isSiteEditorRoot, navigateSiteEditorBack, navigateSiteEditorBackToRoot, openSiteEditorNavigationPanel, siteEditorNavigateSequence, clickSiteEditorMenuItem, closeSiteEditorNavigationPanel.
- Don't use hardcoded login credentials when requesting nonce (#44331).
- Increase the minimum Node.js version to 14 (#43141).
- Changed
setOption
to useoptions.php
, to allow setting any option (and to be more consistent withgetOption
). #39502 - Changed
setOption
to return the changed setting's previous value (to make restoring it easier). #39502 - Added a new
trashAllComments
function.
- Updated
clickMenuItem
method to use exact label matching instead of partial #39274.
- The
toggleMoreMenu
andclickMoreMenuItem
utilities no longer require a second 'context' parameter.
- The peer
jest
dependency has been updated from requiring>=26
to requiring>=27
(see Breaking Changes, #33287). - The peer
puppeteer
dependency has been replaced withpuppeteer-core
requiring version>=11
(see Breaking Changes, #36040).
- Added
createReusableBlock
function to make it easier to create a simple reusable block (#37333). - Added
getOption
andsetOption
functions to make it easier to set and reset options such as the site title and site tagline (#37139).
- Added
disablePageDialogAccept
- Disable auto-accepting dialogs enabled byenablePageDialogAccept
#35828.
- Added
createUser
anddeleteUser
- Create and delete a user account, respectively. - Added
getCurrentUser
- Determine the currently logged in user. ChangedswitchUserToAdmin
andswitchUserToTest
to use it.
- Added
deleteAllWidgets
- Delete all widgets in the widgets screen.
-
toggleScreenOption
util has been removed, sincePreferences
modal was redesigned. UsetogglePreferencesOption
instead (#28329). -
Increase the minimum Node.js version to 12 (#27934).
- Added
clickMenuItem
- clicks the item that matches the label in the opened menu.
visitAdminPage
will now throw an error (emit a test failure) when there are unexpected errors on hte page.
- Added
getPageError
function, returning a promise which resolves to an error message present in the page, if any exists.
- The disableNavigationMode utility was removed. By default, the editor is in edit mode now.
setBrowserViewport
accepts an object ofwidth
,height
values, to assign a viewport of arbitrary size.
- The util function
enableExperimentalFeatures
was removed. It is now available for internal usage in thee2e-tests
package.
- The minimum version of Gutenberg
5.6.0
or the minimum version of WordPress5.2.0
.
- WordPress 5.2: Fix a false positive build failure caused by Dashicons font file.
- WordPress 5.2: Fix a test failure for Classic Block media insertion caused by a change in tooltips text (rWP45066).
- New Function:
getAllBlockInserterItemTitles
- Returns an array of strings with all inserter item titles. - New Function:
openAllBlockInserterCategories
- Opens all block inserter categories. - New Function:
getAllBlockInserterItemTitles
- Opens the global block inserter.
- The minimum version of Gutenberg
5.3.0
or the minimum version of WordPress5.2.0
.
- Initial release. The minimum version of Gutenberg
5.2.0
or the minimum version of WordPress5.2.0
.