ensure WP database is upgraded for current WP version

This commit is contained in:
Ron Rennick 2018-12-18 16:02:57 -04:00
parent e2f34928d3
commit 6079e1f541
1 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,13 @@ test.describe( 'Check for functional theme', function() {
wpLogin.login( config.get( 'users.admin.username' ), config.get( 'users.admin.password' ) ); wpLogin.login( config.get( 'users.admin.username' ), config.get( 'users.admin.password' ) );
} ); } );
// Update the database to the current version of WP
test.it( 'update WordPress database', () => {
const updateArgs = { url: manager.getPageUrl( '/wp-admin/upgrade.php?step=upgrade_db' ), visit: true };
const themes = new WPAdmin( driver, updateArgs );
} );
// Check theme status after conditionally attempting to revert to the default theme // Check theme status after conditionally attempting to revert to the default theme
test.it( 'have working theme', () => { test.it( 'have working theme', () => {
const themesArgs = { url: manager.getPageUrl( '/wp-admin/themes.php' ), visit: true }; const themesArgs = { url: manager.getPageUrl( '/wp-admin/themes.php' ), visit: true };