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

Adapt Element's tests for nuxeo js client 3.6.1

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.3.2-SNAPSHOT
    • Fix Version/s: 2.2.8, 2.3.2
    • Component/s: Testing

      Description

      Since NXJS-137, the request sent by the client looks like:

      /api/v1/user/Administrator
      

      instead of

      /api/v1/repo/default/user/Administrator
      

      As a direct result, we need to adapt all our mocked response in tests.

      Tests are now failing on qa:

      08:31:53 + ./node_modules/.bin/polymer test -l chrome --plugin sauce --job-name nuxeo-ui-elements-master --build-number 764
      08:31:55 Creating Sauce Connect tunnel
      08:31:55 Sauce Connect log: /tmp/wct118325-1198-jql1s1.m19zk0rudi/sc.log
      08:32:26 Sauce tunnel active: b0aceb52-f52c-4ca5-9978-f0f7a90b5805
      08:32:38 Windows 10 chrome 63     Beginning tests via http://localhost:8081/components/nuxeo-ui-elements/generated-index.html?cli_browser_id=0
      08:32:40 [BABEL] Note: The code generator has deoptimised the styling of "unknown" as it exceeds the max of "500KB".
      08:32:46 [BABEL] Note: The code generator has deoptimised the styling of "unknown" as it exceeds the max of "500KB".
      08:32:48 Windows 10 firefox 57    Beginning tests via http://localhost:8081/components/nuxeo-ui-elements/generated-index.html?cli_browser_id=1
      08:32:48 Windows 8.1 IE 11        Beginning tests via http://localhost:8081/components/nuxeo-ui-elements/generated-index.html?cli_browser_id=3
      08:32:51 Windows 10 chrome 63     Tests failed: Error thrown outside of test function: Not Found
      08:32:51   <unknown> at /components/nuxeo/dist/nuxeo.js:2202
      08:32:55 Windows 10 firefox 57    Tests failed: Error thrown outside of test function: Not Found
      08:32:55    http/</< at /components/nuxeo/dist/nuxeo.js:2340
      08:32:58 macOS 10.13 safari 11    Beginning tests via http://localhost:8081/components/nuxeo-ui-elements/generated-index.html?cli_browser_id=4
      08:33:03 Windows 8.1 IE 11        Tests failed: Error thrown outside of test function: Not Found
      08:33:03          Ta at /components/webcomponentsjs/webcomponents-lite.js:42
      08:33:03          eb at /components/webcomponentsjs/webcomponents-lite.js:41
      08:33:03          db at /components/webcomponentsjs/webcomponents-lite.js:40
      08:33:03          Aa at /components/webcomponentsjs/webcomponents-lite.js:38
      08:33:08 Windows 10 microsoftedge 15 Beginning tests via http://localhost:8081/components/nuxeo-ui-elements/generated-index.html?cli_browser_id=2
      08:33:10 macOS 10.13 safari 11    Tests failed: Error thrown outside of test function: Not Found
      08:33:10   <unknown> at /components/nuxeo/dist/nuxeo.js:2202
      08:33:16 Android GoogleAPI Emulator 7.1 Beginning tests via http://localhost:8081/components/nuxeo-ui-elements/generated-index.html?cli_browser_id=6
      08:33:16 chrome failed to maximize
      08:33:21 Windows 10 microsoftedge 15 Tests failed: Error thrown outside of test function: Not Found
      08:33:21   Anonymous function at /components/nuxeo/dist/nuxeo.js:2340
      08:33:21 Android GoogleAPI Emulator 7.1 Tests failed: Error thrown outside of test function: Not Found
      08:33:21   <unknown> at /components/nuxeo/dist/nuxeo.js:2202
      08:34:24 iOS 11.1 ipad            Beginning tests via http://localhost:8081/components/nuxeo-ui-elements/generated-index.html?cli_browser_id=5
      08:34:25 ipad failed to maximize
      08:34:35 iOS 11.1 ipad            Tests failed: Error thrown outside of test function: Not Found
      08:34:35   <unknown> at /components/nuxeo/dist/nuxeo.js:2202
      08:34:38 Test run ended in failure: Error thrown outside of test function: Not Found
      08:34:38   <unknown> at /components/nuxeo/dist/nuxeo.js:2202, Error thrown outside of test function: Not Found
      08:34:38    http/</< at /components/nuxeo/dist/nuxeo.js:2340, Error thrown outside of test function: Not Found
      08:34:38          Ta at /components/webcomponentsjs/webcomponents-lite.js:42
      08:34:38          eb at /components/webcomponentsjs/webcomponents-lite.js:41
      08:34:38          db at /components/webcomponentsjs/webcomponents-lite.js:40
      08:34:38          Aa at /components/webcomponentsjs/webcomponents-lite.js:38, Error thrown outside of test function: Not Found
      08:34:38   Anonymous function at /components/nuxeo/dist/nuxeo.js:2340
      08:34:38 
      08:34:38 Windows 10 chrome 63 (error)          
      08:34:38 Windows 10 firefox 57 (error)         
      08:34:38 Windows 10 microsoftedge 15 (error)   
      08:34:38 Windows 8.1 IE 11 (error)             
      08:34:38 macOS 10.13 safari 11 (error)         
      08:34:38 iOS 11.1 ipad (error)                 
      08:34:38 Android GoogleAPI Emulator 7.1 (error)
      08:34:38 
      08:34:38 Error: Error thrown outside of test function: Not Found
      08:34:38   <unknown> at /components/nuxeo/dist/nuxeo.js:2202, Error thrown outside of test function: Not Found
      08:34:38    http/</< at /components/nuxeo/dist/nuxeo.js:2340, Error thrown outside of test function: Not Found
      08:34:38          Ta at /components/webcomponentsjs/webcomponents-lite.js:42
      08:34:38          eb at /components/webcomponentsjs/webcomponents-lite.js:41
      08:34:38          db at /components/webcomponentsjs/webcomponents-lite.js:40
      08:34:38          Aa at /components/webcomponentsjs/webcomponents-lite.js:38, Error thrown outside of test function: Not Found
      08:34:38   Anonymous function at /components/nuxeo/dist/nuxeo.js:2340
      08:34:38 
      08:34:38 error:   cli runtime exception: Error: Error thrown outside of test function: Not Found
      08:34:38   <unknown> at /components/nuxeo/dist/nuxeo.js:2202, Error thrown outside of test function: Not Found
      08:34:38    http/</< at /components/nuxeo/dist/nuxeo.js:2340, Error thrown outside of test function: Not Found
      08:34:38          Ta at /components/webcomponentsjs/webcomponents-lite.js:42
      08:34:38          eb at /components/webcomponentsjs/webcomponents-lite.js:41
      08:34:38          db at /components/webcomponentsjs/webcomponents-lite.js:40
      08:34:38          Aa at /components/webcomponentsjs/webcomponents-lite.js:38, Error thrown outside of test function: Not Found
      08:34:38   Anonymous function at /components/nuxeo/dist/nuxeo.js:2340
      08:34:38 error:   Error: Error thrown outside of test function: Not Found
      08:34:38   <unknown> at /components/nuxeo/dist/nuxeo.js:2202, Error thrown outside of test function: Not Found
      08:34:38    http/</< at /components/nuxeo/dist/nuxeo.js:2340, Error thrown outside of test function: Not Found
      08:34:38          Ta at /components/webcomponentsjs/webcomponents-lite.js:42
      08:34:38          eb at /components/webcomponentsjs/webcomponents-lite.js:41
      08:34:38          db at /components/webcomponentsjs/webcomponents-lite.js:40
      08:34:38          Aa at /components/webcomponentsjs/webcomponents-lite.js:38, Error thrown outside of test function: Not Found
      08:34:38   Anonymous function at /components/nuxeo/dist/nuxeo.js:2340
      08:34:38     at /opt/jenkins/workspace/master/nuxeo-ui-elements-master/node_modules/polymer-cli/node_modules/web-component-tester/runner/steps.js:170:27
      08:34:38     at next (native)
      08:34:38     at fulfilled (/opt/jenkins/workspace/master/nuxeo-ui-elements-master/node_modules/polymer-cli/node_modules/web-component-tester/runner/steps.js:4:58)
      08:34:38     at process._tickCallback (internal/process/next_tick.js:103:7)
      

        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 - 15 minutes
                  15m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.