repositoryAdminPage.setDefaultIdPrefix(IDPREFIX);
repositoryAdminPage.clickUpdateButton();
// Create extension
ExtensionsPage extensionsPage = ExtensionsPage.gotoPage();
ExtensionInlinePage extensionInline = extensionsPage.contributeExtension(this.baseExtension.getName());
Assert.assertEquals(this.baseExtension.getName(), extensionInline.getName());
extensionInline.setDescription(this.baseExtension.getDescription());
extensionInline.setInstallation("extension installation");
extensionInline.setLicenseName(this.baseLicense.getName());
extensionInline.setSource("http://source");
extensionInline.setSummary(this.baseExtension.getSummary());
extensionInline.setType(this.baseExtension.getType());
ExtensionPage extensionPage = extensionInline.clickSaveAndView();
// Test summary
getUtil().findElementsWithoutWaiting(getDriver(),
By.xpath("//tt[text()=\"" + this.baseExtension.getSummary() + "\"]"));
Assert.assertFalse(extensionPage.isValidExtension());
// Add versions
// TODO: add XR UI to manipulate versions
getRepositoryTestUtils().addVersionObject(this.baseExtension);
getRepositoryTestUtils().addVersionObject(
this.baseExtension,
"10.0",
getUtil().getAttachmentURL("Extension", this.baseExtension.getName(),
this.baseExtension.getFile().getName()));
getRepositoryTestUtils().addVersionObject(this.baseExtension, "2.0",
"attach:" + this.baseExtension.getFile().getName());
// Add dependencies
// TODO: add XR UI to manipulate dependencies
getRepositoryTestUtils().addDependencies(this.baseExtension, "10.0");
// Add attachment
getRepositoryTestUtils().attachFile(this.baseExtension);
// Check livetable
extensionsPage = ExtensionsPage.gotoPage();
ExtensionsLiveTableElement livetable = extensionsPage.getLiveTable();
livetable.filterName(this.baseExtension.getName());
extensionPage = livetable.clickExtensionName(this.baseExtension.getName());