GitLab Commit is coming up on August 3-4. Learn how to innovate together using GitLab, the DevOps platform. Register for free: gitlabcommitvirtual2021.com

Commit 267b51ec authored by Asier Lostalé's avatar Asier Lostalé
Browse files

related to FR-46363: update Openbravo logos

"Powered by Openbravo" logo has been updated. Before community and
professional instances had different logos, now both have the same.
Tests activating the instance checked the logo was correct, now this
check has no sense anymore.

This commit removes those checks.
parent 7f17279a
......@@ -11,7 +11,7 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo S.L.U.
* All portions are Copyright (C) 2010-2012 Openbravo S.L.U.
* All portions are Copyright (C) 2010-2021 Openbravo S.L.U.
* All Rights Reserved.
* Contributor(s):
* Leo Arias <leo.arias@openbravo.com>.
......@@ -510,24 +510,6 @@ public class MainPage implements Page {
tabSetMain.verifyOpenTab(title);
}
/**
* Verify that a Community Logo is present.
*
*/
public void verifyCommunityLogo() {
logger.info("Verifying Openbravo community logo.");
navigationBar.verifyCommunityLogo();
}
/**
* Verify that a Professional Logo is present.
*
*/
public void verifyProfessionalLogo() {
logger.info("Verifying Openbravo professional logo.");
navigationBar.verifyProfessionalLogo();
}
/**
* Verify that a Your Company Logo is present.
*
......
......@@ -11,7 +11,7 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo S.L.U.
* All portions are Copyright (C) 2010-2012 Openbravo S.L.U.
* All portions are Copyright (C) 2010-2021 Openbravo S.L.U.
* All Rights Reserved.
* Contributor(s):
* Leo Arias <leo.arias@openbravo.com>,
......@@ -51,14 +51,10 @@ public class NavigationBar {
/** Registry key of the end session button. */
private static final String REGISTRY_KEY_BUTTON_QUIT = "org.openbravo.client.application.navigationbarcomponents.QuitButton";
/** Registry key of the openbravo logo. */
private static final String REGISTRY_KEY_OPENBRAVO_LOGO = "org.openbravo.client.application.openbravologo";
/** Registry key of the company logo. */
private static final String REGISTRY_KEY_COMPANY_LOGO = "org.openbravo.client.application.companylogo";
/* The path to the images that will be used to compare the ones got from the application */
private static final String IDENTIFIER_OPENBRAVO_COMMUNITY_FILE = "GetOpenbravoLogo_Community.png";
private static final String IDENTIFIER_OPENBRAVO_PROFESSIONAL_FILE = "GetOpenbravoLogo_Professional.png";
private static final String IDENTIFIER_COMPANY_FILE = "ShowImageLogo.png";
/* Component elements. */
......@@ -78,8 +74,6 @@ public class NavigationBar {
private final Button buttonQuit;
/** The YourCompany logo. */
private final Image yourCompanyLogo;
/** The Openbravo logo. */
private final Image openbravoLogo;
/**
* Enumerator with the available view launchers.
......@@ -112,7 +106,6 @@ public class NavigationBar {
this.componentUserProfile = new UserProfile();
this.buttonQuit = new Button(TestRegistry.getObjectString(REGISTRY_KEY_BUTTON_QUIT));
this.yourCompanyLogo = new Image(TestRegistry.getObjectString(REGISTRY_KEY_COMPANY_LOGO));
this.openbravoLogo = new Image(TestRegistry.getObjectString(REGISTRY_KEY_OPENBRAVO_LOGO));
}
/**
......@@ -307,26 +300,4 @@ public class NavigationBar {
yourCompanyLogo.verifyImage(TestFiles.getRelativeFilePath(IDENTIFIER_COMPANY_FILE));
}
}
/**
* Checks if the Community logo is present.
*
*/
public void verifyCommunityLogo() {
if (openbravoLogo.isPresent()) {
openbravoLogo.verifyImage(TestFiles.getRelativeFilePath(IDENTIFIER_OPENBRAVO_COMMUNITY_FILE));
}
}
/**
* Checks if the Community logo is present.
*
*/
public void verifyProfessionalLogo() {
if (openbravoLogo.isPresent()) {
openbravoLogo
.verifyImage(TestFiles.getRelativeFilePath(IDENTIFIER_OPENBRAVO_PROFESSIONAL_FILE));
}
}
}
......@@ -11,7 +11,7 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo S.L.U.
* All portions are Copyright (C) 2010-2012 Openbravo S.L.U.
* All portions are Copyright (C) 2010-2021 Openbravo S.L.U.
* All Rights Reserved.
* Contributor(s):
* Leo Arias <leo.arias@openbravo.com>.
......@@ -96,9 +96,6 @@ public class ADMbb_SetupInstance extends OpenbravoERPTest {
*/
@Test
public void instanceShouldBeSetUp() {
mainPage.verifyCommunityLogo();
logger.info("** End of test case [ADMb020] Deactivate Instance. **");
logger.info("** Start of test case [ADMb030] Activate Instance. **");
InstanceActivation.activateInstanceOnline(mainPage, activateOnlineData);
// TODO Verify the value in the field Instance Purpose.
......
......@@ -11,7 +11,7 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo S.L.U.
* All portions are Copyright (C) 2010-2012 Openbravo S.L.U.
* All portions are Copyright (C) 2010-2021 Openbravo S.L.U.
* All Rights Reserved.
* Contributor(s):
* Leo Arias <leo.arias@openbravo.com>.
......@@ -58,8 +58,6 @@ public class ADMbc_SetupInstance extends OpenbravoERPTest {
*/
@Test
public void instanceShouldBeSetUp() {
mainPage.verifyProfessionalLogo();
logger.info("** End of test case [ADMb030] Activate Instance. **");
ModuleManagement.InstalledModules.enableAllModules(mainPage);
logger.info("** Start of test case [ADMb040] Enable Heartbeat. **");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment