ExtensionAdministrationPage adminPage = ExtensionAdministrationPage.gotoPage().clickAddExtensionsSection();
ExtensionPane extensionPane =
adminPage.getSearchBar().clickAdvancedSearch().search(extensionId, newVersion).getExtension(0);
Assert.assertEquals("remote-installed", extensionPane.getStatus());
Assert.assertEquals("Version 1.3 is installed", extensionPane.getStatusMessage());
extensionPane = extensionPane.upgrade();
// Check the upgrade plan.
List<DependencyPane> upgradePlan = extensionPane.openProgressSection().getJobPlan();
Assert.assertEquals(1, upgradePlan.size());
Assert.assertEquals(extensionId, upgradePlan.get(0).getName());