You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/12/28 13:26:03 UTC

[GitHub] [cloudstack] weizhouapache commented on pull request #7030: UI: fix ui test errors

weizhouapache commented on PR #7030:
URL: https://github.com/apache/cloudstack/pull/7030#issuecomment-1366652732

   ubuntu 20.04 is tool old. The following succeeds on ubuntu 22.04.
   
   ```
   FAIL tests/unit/components/view/ActionButton.spec.js
     ● Components > View > ActionButton.vue › Watcher › handleShowBadge() › The handleShowBadge() is not called with an empty resource
       TypeError: object.hasOwnProperty is not a function
         273 |           }
         274 |         })
       > 275 |         const handleShowBadge = jest.spyOn(wrapper.vm, 'handleShowBadge')
             |                                      ^
         276 |         await wrapper.setProps({ resource: null })
         277 |
         278 |         expect(handleShowBadge).not.toBeCalled()
         at ModuleMockerClass.spyOn (node_modules/jest-mock/build/index.js:850:36)
         at Object.<anonymous> (tests/unit/components/view/ActionButton.spec.js:275:38)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org