Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0045751 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | minor | have not tried | 2021-01-19 12:54 | 2021-01-27 17:07 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0045751: jest tests in org.openbravo.retail.asyncpayprovider module does not work in jest script mode (i.e. in context of pos2) | |||||||
Description | Running jest test of this module in strict mode as it is done as part of pos2 module fails. Those tests should be fixed to work fine in strict mode. Example error: Test suite failed to run ReferenceError: enyo is not defined 4 | (function() { 5 | var e = "enyo.js"; > 6 | enyo = window.enyo || {}, enyo.locateScript = function(e) { | ^ 7 | var t = document.getElementsByTagName("script"); 8 | for (var n = t.length - 1, r, i, s = e.length; n >= 0 && (r = t[n]); n--) if (!r.located) { 9 | i = r.getAttribute("src") || ""; at modules/org.openbravo.mobile.core/web/org.openbravo.mobile.core/build/enyo.js:6:5 at Object.<anonymous> (modules/org.openbravo.mobile.core/web/org.openbravo.mobile.core/build/enyo.js:4:1) at Object.<anonymous> (modules/org.openbravo.retail.asyncpayprovider/web-test/rootasyncpay.js:19:1) at Object.<anonymous> (modules/org.openbravo.retail.asyncpayprovider/web-test/managemessages.test.js:13:1) | |||||||
Steps To Reproduce | Run jest for this module inside pos2 environment or run jest in strict mode as explained in 45019 | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0125805) hgbot (developer) 2021-01-27 15:37 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.asyncpayprovider/-/merge_requests/6 [^] |
(0125809) hgbot (developer) 2021-01-27 17:06 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.asyncpayprovider [^] Changeset: 430f5bc88f54ab0e02fdbbd87760d690a2290aa5 Author: Ranjith S R <ranjith@qualiantech.com> Date: 2021-01-27T11:39:56+05:30 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.asyncpayprovider/-/commit/430f5bc88f54ab0e02fdbbd87760d690a2290aa5 [^] Fixed ISSUE-45751: Removed enyo dependent from jest test * Disabled jest which depends on enyo --- M web-test/inputanykey.test.js M web-test/inputconfirmation.test.js M web-test/inputdigit.test.js M web-test/inputfunctionkey.test.js M web-test/inputmenuentry.test.js M web-test/rootasyncpay.js --- |
(0125810) hgbot (developer) 2021-01-27 17:06 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.asyncpayprovider/-/merge_requests/6 [^] |
(0125811) marvintm (viewer) 2021-01-27 17:07 |
Tests have been disabled for now. We will refactor them to make them compatible with jest strict mode and reenable them later |
![]() |
|||
Date Modified | Username | Field | Change |
2021-01-19 12:54 | shuehner | New Issue | |
2021-01-19 12:54 | shuehner | Assigned To | => Retail |
2021-01-19 12:54 | shuehner | OBNetwork customer | => No |
2021-01-19 12:54 | shuehner | Triggers an Emergency Pack | => No |
2021-01-19 12:54 | shuehner | Relationship added | related to 0045019 |
2021-01-19 14:01 | javietxe | Issue Monitored: javietxe | |
2021-01-25 11:27 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2021-01-25 11:27 | ranjith_qualiantech_com | Status | new => scheduled |
2021-01-26 18:31 | shuehner | Issue Monitored: shuehner | |
2021-01-27 15:37 | hgbot | Merge Request Status | => open |
2021-01-27 15:37 | hgbot | Note Added: 0125805 | |
2021-01-27 17:03 | hgbot | Merge Request Status | open => approved |
2021-01-27 17:06 | marvintm | Relationship added | related to 0045796 |
2021-01-27 17:06 | hgbot | Resolution | open => fixed |
2021-01-27 17:06 | hgbot | Status | scheduled => closed |
2021-01-27 17:06 | hgbot | Note Added: 0125809 | |
2021-01-27 17:06 | hgbot | Note Added: 0125810 | |
2021-01-27 17:07 | marvintm | Note Added: 0125811 |
Copyright © 2000 - 2009 MantisBT Group |