From 6079e1f541b45e2ea1bf56506546316f321ac27d Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Tue, 18 Dec 2018 16:02:57 -0400 Subject: [PATCH] ensure WP database is upgraded for current WP version --- tests/e2e-tests/{config-theme.js => config-setup.js} | 7 +++++++ 1 file changed, 7 insertions(+) rename tests/e2e-tests/{config-theme.js => config-setup.js} (86%) diff --git a/tests/e2e-tests/config-theme.js b/tests/e2e-tests/config-setup.js similarity index 86% rename from tests/e2e-tests/config-theme.js rename to tests/e2e-tests/config-setup.js index 0d6c6952c55..e39b9cab2d9 100644 --- a/tests/e2e-tests/config-theme.js +++ b/tests/e2e-tests/config-setup.js @@ -30,6 +30,13 @@ test.describe( 'Check for functional theme', function() { 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 test.it( 'have working theme', () => { const themesArgs = { url: manager.getPageUrl( '/wp-admin/themes.php' ), visit: true };