Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-5409

FAIL test/QuantitySelector/QuantitySelector.js

    Details

      Description

           [exec] > Task :apps:commerce:commerce-frontend-js:packageRunTest FAILED
           [exec] yarn run v1.13.0
           [exec] $ liferay-npm-scripts test
           [exec] Using NODE_ENV: "test"
           [exec] PASS test/QuantitySelector/utils/index.js
           [exec] FAIL test/QuantitySelector/QuantitySelector.js (8.082s)
           [exec]   ??? QuantitySelector ??? by default ??? calls the onUpdate callback only once if typed value did not change within 500ms
           [exec] 
           [exec]     expect(jest.fn()).toHaveBeenCalledTimes(expected)
           [exec] 
           [exec]     Expected number of calls: 1
           [exec]     Received number of calls: 0
           [exec] 
           [exec]       158 | 			await wait(
           [exec]       159 | 				() => {
           [exec]     > 160 | 					expect(onUpdateSpy).toHaveBeenCalledTimes(1);
           [exec]           | 					                    ^
           [exec]       161 | 					expect(onUpdateSpy).toHaveBeenCalledWith(1000);
           [exec]       162 | 				},
           [exec]       163 | 				{
           [exec] 
           [exec]       at test/QuantitySelector/QuantitySelector.js:160:26
           [exec]       at runExpectation (../../../node_modules/wait-for-expect/lib/index.js:48:25)
           [exec]       at Timeout.callback [as _onTimeout] (../../../node_modules/jsdom/lib/jsdom/browser/Window.js:665:19)
      

        Attachments

          Activity

            People

            Assignee:
            lorenzo.lapescara Lorenzo La Pescara
            Reporter:
            linda.sui Linda Sui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.4 CE GA1
                Master