Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-3541

kogito-apps-ui-packages is failing to build

XMLWordPrintable

    • 2020 Week 40-42 (from Sep 28)

      The "kogito-apps-ui-packages" module is failing to build (some tests are failing running yarn). This module is part of Kogito Apps repository.

      [INFO] @kogito-apps/task-console: Summary of all failing tests
      [INFO] @kogito-apps/task-console: FAIL src/components/Organisms/TaskInbox/tests/TaskInbox.test.tsx
      [INFO] @kogito-apps/task-console:   ● TaskInbox tests › test sorting -> with direction
      [INFO] @kogito-apps/task-console:     Method “props” is meant to be run on 1 node. 0 found instead.
      [INFO] @kogito-apps/task-console:       308 |     await wait(10);
      [INFO] @kogito-apps/task-console:       309 |     wrapper = wrapper.update();
      [INFO] @kogito-apps/task-console:     > 310 |     expect(wrapper.find('DataTable').props()['sortBy']).toEqual({
      [INFO] @kogito-apps/task-console:           |                                      ^
      [INFO] @kogito-apps/task-console:       311 |       index: 3,
      [INFO] @kogito-apps/task-console:       312 |       direction: 'asc'
      [INFO] @kogito-apps/task-console:       313 |     });
      [INFO] @kogito-apps/task-console:       at ReactWrapper.single (../../node_modules/enzyme/src/ReactWrapper.js:1168:13)
      [INFO] @kogito-apps/task-console:       at ReactWrapper.props (../../node_modules/enzyme/src/ReactWrapper.js:710:17)
      [INFO] @kogito-apps/task-console:       at src/components/Organisms/TaskInbox/tests/TaskInbox.test.tsx:310:38
      [INFO] @kogito-apps/task-console:       at step (src/components/Organisms/TaskInbox/tests/TaskInbox.test.tsx:44:23)
      [INFO] @kogito-apps/task-console:       at Object.next (src/components/Organisms/TaskInbox/tests/TaskInbox.test.tsx:25:53)
      [INFO] @kogito-apps/task-console:       at fulfilled (src/components/Organisms/TaskInbox/tests/TaskInbox.test.tsx:16:58)
      [INFO] @kogito-apps/task-console: Test Suites: 1 failed, 21 passed, 22 total
      [INFO] @kogito-apps/task-console: Tests:       1 failed, 72 passed, 73 total
      

      This error is related to KOGITO-3339. More about this trace in here.

      More errors:

      [INFO] @kogito-apps/task-console:   ● TaskDetails testing › Snapshot testing with potential groups and potential user
      [INFO] @kogito-apps/task-console:     expect(received).toMatchSnapshot()
      [INFO] @kogito-apps/task-console:     Snapshot name: `TaskDetails testing Snapshot testing with potential groups and potential user 1`
      [INFO] @kogito-apps/task-console:     - Snapshot  - 2
      [INFO] @kogito-apps/task-console:     + Received  + 2
      [INFO] @kogito-apps/task-console:     @@ -382,11 +382,11 @@
      [INFO] @kogito-apps/task-console:                           withTitle={false}
      [INFO] @kogito-apps/task-console:                         >
      [INFO] @kogito-apps/task-console:                           <time
      [INFO] @kogito-apps/task-console:                             dateTime={"2020-02-19T11:11:56.282Z"}
      [INFO] @kogito-apps/task-console:                           >
      [INFO] @kogito-apps/task-console:     -                       7 months ago
      [INFO] @kogito-apps/task-console:     +                       8 months ago
      [INFO] @kogito-apps/task-console:                           </time>
      [INFO] @kogito-apps/task-console:                         </t>
      [INFO] @kogito-apps/task-console:                       </p>
      [INFO] @kogito-apps/task-console:                     </Text>
      [INFO] @kogito-apps/task-console:                   </div>
      [INFO] @kogito-apps/task-console:     @@ -442,11 +442,11 @@
      [INFO] @kogito-apps/task-console:                           withTitle={false}
      [INFO] @kogito-apps/task-console:                         >
      [INFO] @kogito-apps/task-console:                           <time
      [INFO] @kogito-apps/task-console:                             dateTime={"2020-02-19T11:11:56.282Z"}
      [INFO] @kogito-apps/task-console:                           >
      [INFO] @kogito-apps/task-console:     -                       7 months ago
      [INFO] @kogito-apps/task-console:     +                       8 months ago
      [INFO] @kogito-apps/task-console:                           </time>
      [INFO] @kogito-apps/task-console:                         </t>
      [INFO] @kogito-apps/task-console:                       </p>
      [INFO] @kogito-apps/task-console:                     </Text>
      [INFO] @kogito-apps/task-console:                   </div>
      [INFO] @kogito-apps/task-console:       155 |       'TaskDetails'
      [INFO] @kogito-apps/task-console:       156 |     );
      [INFO] @kogito-apps/task-console:     > 157 |     expect(wrapper).toMatchSnapshot();
      [INFO] @kogito-apps/task-console:           |                     ^
      [INFO] @kogito-apps/task-console:       158 |     const potentialGroups = getFormGroup(wrapper, 'potential_groups');
      [INFO] @kogito-apps/task-console:       159 |     const potentialUsers = getFormGroup(wrapper, 'potential_users');
      [INFO] @kogito-apps/task-console:       160 |     expect(potentialGroups.exists()).toBeTruthy();
      [INFO] @kogito-apps/task-console:       at Object.<anonymous> (src/components/Organisms/TaskDetails/tests/TaskDetails.test.tsx:157:21)
      [INFO] @kogito-apps/task-console: Snapshot Summary
      [INFO] @kogito-apps/task-console:  › 5 snapshots failed from 1 test suite. Inspect your code changes or run `yarn test -u` to update them.
      [INFO] @kogito-apps/task-console: Test Suites: 1 failed, 21 passed, 22 total
      [INFO] @kogito-apps/task-console: Tests:       5 failed, 68 passed, 73 total
      [INFO] @kogito-apps/task-console: Snapshots:   5 failed, 50 passed, 55 total
      

      Which is related to KOGITO-2690.

              jcarvaja@redhat.com Jose Carvajal Hilario
              jcarvaja@redhat.com Jose Carvajal Hilario
              Dominik Hanak Dominik Hanak
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: