Openbravo Issue Tracking System - Retail Modules | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0045750 | Retail Modules | Web POS | public | 2021-01-19 12:49 | 2021-01-26 08:00 | ||||||||||||||
Reporter | shuehner | ||||||||||||||||||
Assigned To | ranjith_qualiantech_com | ||||||||||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | ||||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | |||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0045750: do not use global scope in jest tests (fix new cases) | ||||||||||||||||||
Description | Currently many jest tests are using the global scope, mainly to simulate OB object. This will not be allowed by Babel which will be required by 0044751 to support jest tests with JSX. This is clone of 44752 bug to cover new cases added since then. - org.openbravo.retail.sessions web-test/model/business-object/cashup/Cashup-processCashManagements-AddHook.test.js - org.openbravo.retail.giftcards web-test/model/business-object/cashup/Cashup-processCashManagements-ActionPreparation.test.js web-test/model/business-object/cashup/Cashup-processCashManagements-AddHook.test.js | ||||||||||||||||||
Steps To Reproduce | run tests in strict mode which does not allow global: ReferenceError: OB is not defined 9 | /* global global */ 10 | > 11 | OB = { | ^ 12 | App: { 13 | Class: {} 14 | }, | ||||||||||||||||||
Proposed Solution | Use global object instead of global scope. | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2021-01-19 12:49 | shuehner | New Issue | |||||||||||||||||
2021-01-19 12:49 | shuehner | Assigned To | => Retail | ||||||||||||||||
2021-01-19 12:49 | shuehner | Triggers an Emergency Pack | => No | ||||||||||||||||
2021-01-19 12:49 | shuehner | Issue generated from | 0044752 | ||||||||||||||||
2021-01-19 12:49 | shuehner | Relationship added | related to 0044752 | ||||||||||||||||
2021-01-19 12:55 | shuehner | Relationship added | related to 0045019 | ||||||||||||||||
2021-01-19 14:02 | javietxe | Issue Monitored: javietxe | |||||||||||||||||
2021-01-25 10:44 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||||||||||||||||
2021-01-25 11:26 | ranjith_qualiantech_com | Status | new => scheduled | ||||||||||||||||
2021-01-26 02:01 | hgbot | Note Added: 0125763 | |||||||||||||||||
2021-01-26 02:01 | hgbot | Note Added: 0125764 | |||||||||||||||||
2021-01-26 07:59 | hgbot | Note Added: 0125773 | |||||||||||||||||
2021-01-26 07:59 | hgbot | Note Added: 0125774 | |||||||||||||||||
2021-01-26 08:00 | hgbot | Resolution | open => fixed | ||||||||||||||||
2021-01-26 08:00 | hgbot | Status | scheduled => closed | ||||||||||||||||
2021-01-26 08:00 | hgbot | Note Added: 0125775 | |||||||||||||||||
2021-01-26 08:00 | hgbot | Note Added: 0125776 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|