Notes |
|
(0083143)
|
hgbot
|
2016-01-05 18:26
|
|
|
|
(0083347)
|
hgbot
|
2016-01-15 12:20
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 22d168dadc71475402440f344fb6ecba8f4f4677
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Jan 15 10:47:16 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/22d168dadc71475402440f344fb6ecba8f4f4677 [^]
Fixed issue 31827: 401 errors
The problem was that the session could be killed before the synchronization
process has finished.
The solution (specially in the cashup) is to wait to the end of the
synchronization process before the confimation popup (or the POS
hardware manager popup error) is shown.
---
M web/org.openbravo.retail.posterminal/js/closecash/model/cashup-model.js
---
|
|
|
(0083369)
|
jorge-garcia
|
2016-01-18 12:59
|
|
The infrastructure of the test checks the permission when the test do a login and a logout. These checks must be done when the test starts and when the test ends.
Maybe, the solution is to change this function in MobileCoreTerminalHelper:
private void verifyThatThePermissionsHaveNotChanged() {
if (SequentialTestInfo.isTestCompatible() == false) {
return;
}
TestLogger.getLogger().debug("Verifying that the 'permissions/preferences' have not changed");
final String expectedPermissions = SequentialTestInfo.getPermissions();
final String script = String.format(""
+ "var expectedPermissions = %s;"
+ "var currentPermissions = OB.MobileApp.model.attributes.permissions;" //
+ "if (currentPermissions === expectedPermissions) {" + " return '{}';"
+ "} else if (currentPermissions === null) {" //
+ " return JSON.stringify(expectedPermissions);" //
+ "} else if (expectedPermissions === null) {" //
+ " return JSON.stringify(currentPermissions);" //
+ "} else {" //
+ " return JSON.stringify(OB.UTIL.diffJson(currentPermissions, expectedPermissions));" //
+ "}" //
, expectedPermissions); //
final String currentPermissions = (String) SeleniumHelper.executeScript(script);
assertThat(
"The preferences (permissions) have changed. If you changed the preferences within the test, restore them to the original values",
currentPermissions, equalTo("{}"));
} |
|
|
(0083370)
|
jorge-garcia
|
2016-01-18 13:25
|
|
New related issue created |
|
|
(0084206)
|
hgbot
|
2016-02-15 16:09
|
|
Repository: retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal
Changeset: 2c5ba1ce192fd9b47a1685d7c5e4155460d9cb13
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Jan 15 10:47:16 2016 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal/rev/2c5ba1ce192fd9b47a1685d7c5e4155460d9cb13 [^]
Fixed issue 31832 backport of issue 31827: 401 errors
The problem was that the session could be killed before the synchronization
process has finished.
The solution (specially in the cashup) is to wait to the end of the
synchronization process before the confimation popup (or the POS
hardware manager popup error) is shown.
---
M web/org.openbravo.retail.posterminal/js/closecash/model/cashup-model.js
---
|
|