Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1094

Reenable nuxeo-layout.test.js

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-SNAPSHOT
    • Fix Version/s: 3.0.0
    • Component/s: Layouts, Testing
    • Tags:
    • Team:
      GANG
    • Sprint:
      nxGang Sprint 11.1.26, nxGang Sprint 11.1.27, nxGang Sprint 11.1.28
    • Story Points:
      2

      Description

      Since the move to open-wc test framework (ELEMENTS-908), the nuxeo-layout.test.js is skipped.

      It is probably related to how tests are being run with webpack today and issues loading layouts.

      As a matter of fact, it is not passing on Firefox:

      fox@fox-xps:~/workspace/nuxeo-elements$ npm run test:watch -- --grep ui/test/nuxeo-layout.test.js
      
      > nuxeo-elements@3.0.0-SNAPSHOT test:watch /home/fox/workspace/nuxeo-elements
      > karma start --auto-watch=true --single-run=false "--grep" "ui/test/nuxeo-layout.test.js"
      
      Webpack bundling...
      Webpack starts watching...
      Hash: 18e88335c027181b7318
      Version: webpack 4.41.2
      Time: 427ms
      Built at: 11/21/2019 11:54:18 AM
                               Asset       Size                       Chunks             Chunk Names
                          commons.js   1.74 MiB                      commons  [emitted]  commons
      nuxeo-layout.test.322574051.js  349 bytes  nuxeo-layout.test.322574051  [emitted]  nuxeo-layout.test.322574051
                          runtime.js   14.2 KiB                      runtime  [emitted]  runtime
      Entrypoint nuxeo-layout.test.322574051 = runtime.js commons.js nuxeo-layout.test.322574051.js
      21 11 2019 11:54:18.561:WARN [karma]: No captured browser, open http://localhost:9877/
      21 11 2019 11:54:20.092:WARN [web-server]: 404: /notfound.html
      ..
      HeadlessChrome 78.0.3904 (Linux 0.0.0): Executed 2 of 2 SUCCESS (0.061 secs / 0.036 secs)
      Firefox 70.0.0 (Ubuntu 0.0.0) <nuxeo-layout> layout not found FAILED
      	Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.Firefox 70.0.0 (Ubuntu 0.0.0) <nuxeo-layout> layout not found FAILED
      	Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.Firefox 70.0.0 (Ubuntu 0.0.0) <nuxeo-layout> layout stamped with model FAILED
      	Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.Firefox 70.0.0 (Ubuntu 0.0.0) <nuxeo-layout> layout stamped with model FAILED
      	Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.Firefox 70.0.0 (Ubuntu 0.0.0): Executed 2 of 2 (2 FAILED) (4.039 secs / 4.025 secs)
      TOTAL: 2 FAILED, 2 SUCCESS
      TOTAL: 2 FAILED, 2 SUCCESS
      
      =============================== Coverage summary ===============================
      Statements   : Unknown% ( 0/0 )
      Branches     : Unknown% ( 0/0 )
      Functions    : Unknown% ( 0/0 )
      Lines        : Unknown% ( 0/0 )
      ================================================================================
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 weeks, 2 days, 40 minutes
                  2w 2d 40m