SearchResultsPane searchResults = adminPage.getSearchBar().search("alice");
Assert.assertNull(searchResults.getExtension(extensionId));
new SimpleSearchPane().getRepositorySelect().selectByVisibleText("All Extensions");
adminPage = new ExtensionAdministrationPage();
adminPage.waitUntilPageIsLoaded();
// The value of the search input must be preserved when we switch the repository.
Assert.assertEquals("alice", adminPage.getSearchBar().getSearchInput().getAttribute("value"));
Assert.assertNotNull(adminPage.getSearchResults().getExtension(extensionId));
Assert.assertNull(new SimpleSearchPane().selectRepository("local").getExtension(extensionId));