Polymer Tutorial - a comprehensive example for web components

UP: TOC

This chapter describes the installation of web components tester

cd /directory of bower.json/ sudo npm install -g web-component-tester dtrace-provider@0.6.0 install /usr/local/lib/node_modules/web-component-tester/node_modules/wct-local/node_modules/launchpad/node_modules/restify/node_modules/dtrace-provider > node scripts/install.js > dtrace-provider@0.8.0 install /usr/local/lib/node_modules/web-component-tester/node_modules/wct-local/node_modules/launchpad/node_modules/restify/node_modules/bunyan/node_modules/dtrace-provider > node scripts/install.js > sauce-connect-launcher@1.1.1 postinstall /usr/local/lib/node_modules/web-component-tester/node_modules/wct-sauce/node_modules/sauce-connect-launcher > node scripts/install.js || nodejs scripts/install.js > wct-sauce@1.8.6 postinstall /usr/local/lib/node_modules/web-component-tester/node_modules/wct-sauce > node scripts/postinstall.js Prefetching the Sauce Connect binary. Missing Sauce Connect local proxy, downloading dependency This will only happen once. Downloading 4.59MB Archive checksum verified. Unzipping /usr/local/lib/node_modules/web-component-tester/node_modules/wct-sauce/node_modules/sauce-connect-launcher/sc/sc-4.4.2-linux.tar.gz Removing /usr/local/lib/node_modules/web-component-tester/node_modules/wct-sauce/node_modules/sauce-connect-launcher/sc/sc-4.4.2-linux.tar.gz Sauce Connect downloaded correctly > wct-local@2.0.13 postinstall /usr/local/lib/node_modules/web-component-tester/node_modules/wct-local > node scripts/postinstall.js ---------- selenium-standalone installation starting ---------- --- selenium install: from: https://selenium-release.storage.googleapis.com/3.0/selenium-server-standalone-3.0.1.jar to: /usr/local/lib/node_modules/web-component-tester/node_modules/wct-local/node_modules/selenium-standalone/.selenium/selenium-server/3.0.1-server.jar --- chrome install: from: https://chromedriver.storage.googleapis.com/2.25/chromedriver_linux64.zip to: /usr/local/lib/node_modules/web-component-tester/node_modules/wct-local/node_modules/selenium-standalone/.selenium/chromedriver/2.25-x64-chromedriver --- firefox install: from: https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz to: /usr/local/lib/node_modules/web-component-tester/node_modules/wct-local/node_modules/selenium-standalone/.selenium/geckodriver/0.11.1-x64-geckodriver ----- selenium-standalone installation finished ----- /usr/local/bin/wct -> /usr/local/lib/node_modules/web-component-tester/bin/wct /usr/local/bin/wct-st -> /usr/local/lib/node_modules/web-component-tester/bin/wct-st web-component-tester@5.0.0 /usr/local/lib/node_modules/web-component-tester ├── sinon-chai@2.8.0 ├── server-destroy@1.0.1 ├── stacky@1.3.1 ├── async@1.5.2 ├── cleankill@1.0.3 ├── test-fixture@1.1.1 ├── chalk@1.1.3 (escape-string-regexp@1.0.5, supports-color@2.0.0, ansi-styles@2.2.1, has-ansi@2.0.0, strip-ansi@3.0.1) ├── serve-waterfall@1.1.1 (parseurl@1.3.1) ├── nomnom@1.8.1 (underscore@1.6.0, chalk@0.4.0) ├── glob@5.0.15 (path-is-absolute@1.0.1, inherits@2.0.3, once@1.4.0, inflight@1.0.6, minimatch@3.0.3) ├── send@0.11.1 (destroy@1.0.3, ms@0.7.0, fresh@0.2.4, range-parser@1.0.3, escape-html@1.0.1, depd@1.0.1, mime@1.2.11, debug@2.1.3, on-finished@2.2.1, etag@1.5.1) ├── resolve@1.2.0 ├── body-parser@1.15.2 (content-type@1.0.2, bytes@2.4.0, depd@1.1.0, qs@6.2.0, on-finished@2.3.0, raw-body@2.1.7, http-errors@1.5.1, debug@2.2.0, iconv-lite@0.4.13, type-is@1.6.14) ├── findup-sync@0.2.1 (glob@4.3.5) ├── express@4.14.0 (escape-html@1.0.3, array-flatten@1.1.1, cookie-signature@1.0.6, content-type@1.0.2, merge-descriptors@1.0.1, methods@1.1.2, range-parser@1.2.0, etag@1.7.0, vary@1.1.0, fresh@0.3.0, parseurl@1.3.1, encodeurl@1.0.1, serve-static@1.11.1, utils-merge@1.0.0, content-disposition@0.5.1, cookie@0.3.1, path-to-regexp@0.1.7, depd@1.1.0, qs@6.2.0, on-finished@2.3.0, finalhandler@0.5.0, debug@2.2.0, proxy-addr@1.1.2, send@0.14.1, type-is@1.6.14, accepts@1.3.3) ├── promisify-node@0.4.0 (object-assign@4.1.0, nodegit-promise@4.0.0) ├── chai@3.5.0 (assertion-error@1.0.2, type-detect@1.0.0, deep-eql@0.1.3) ├── sinon@1.17.6 (formatio@1.1.1, samsam@1.1.2, lolex@1.3.2, util@0.10.3) ├── update-notifier@0.6.3 (is-npm@1.0.0, semver-diff@2.1.0, boxen@0.3.1, configstore@2.1.0, latest-version@2.0.0) ├── mocha@3.2.0 (escape-string-regexp@1.0.5, browser-stdout@1.3.0, diff@1.4.0, growl@1.9.2, json3@3.3.2, supports-color@3.1.2, commander@2.9.0, debug@2.2.0, lodash.create@3.1.1, mkdirp@0.5.1, glob@7.0.5) ├── socket.io@1.7.2 (object-assign@4.1.0, socket.io-adapter@0.5.0, has-binary@0.1.7, debug@2.3.3, socket.io-parser@2.3.1, engine.io@1.8.2, socket.io-client@1.7.2) ├── multer@1.2.1 (object-assign@3.0.0, append-field@0.1.0, xtend@4.0.1, on-finished@2.3.0, type-is@1.6.14, concat-stream@1.5.2, mkdirp@0.5.1, busboy@0.2.13) ├── lodash@3.10.1 ├── wd@0.3.12 (vargs@0.1.0, q@1.4.1, async@1.0.0, underscore.string@3.0.3, request@2.55.0, archiver@0.14.4, lodash@3.9.3) ├── accessibility-developer-tools@2.11.0 ├── wct-sauce@1.8.6 (uuid@2.0.3, temp@0.8.3, request@2.79.0, sauce-connect-launcher@1.1.1) └── wct-local@2.0.13 (@types/which@1.0.28, @types/freeport@1.0.20, @types/chalk@0.4.31, freeport@1.0.5, @types/node@6.0.52, which@1.2.12, @types/express@4.0.34, selenium-standalone@5.9.0, launchpad@0.5.4) wct Installing and starting Selenium server for local browsers Selenium server running on port 36110 Web server running on port 2000 and serving from /logikfabrik/lfp1 firefox 50 Beginning tests via http://localhost:2000/components/lfp1/generated-index.html?cli_browser_id=0 firefox failed to maximize firefox 50 ✖ test/my-view1.html » my-view1 tests » Number in circle should be 1 circle is null at at my-view1.html:42:0 firefox 50 ✖ test/my-view1.html » my-view1 tests » Number in circle should be 1 circle is null at at my-view1.html:42:0 firefox 50 Tests failed: 2 failed tests Test run ended in failure: 2 failed tests firefox 50 (0/0/2) Error: 2 failed test UP: TOC