Questions tagged [wct]

Web-Components-Tester is a unit-test harness that makes testing your Polymer Web components a breeze!

33 questions
7
votes
1 answer

Unit testing dynamically-rendered elements in Polymer

Overview DOM elements that are dynamically-rendered within dom-if, dom-repeat seem to be rendered asynchronously thus making unit-testing a bit of a pain. The Polymer Component template(is='dom-if', if='{{!defaultPrintAll}}') …
nicholaswmin
  • 21,686
  • 15
  • 91
  • 167
5
votes
2 answers

How to measure common coverage for Polymer components + .js files?

How to measure common coverage for Polymer components with all .js files in solution (for non-component tests QUnit is used)? I tried karma-coverage, but it works only for .js files.
4
votes
1 answer

Code coverage of Polymer Application with WCT

I have the sapplication developed in Polymer and unit testing with WCT. I want to generate the code coverage report for that. I tried with the istanbul(web-component-tester-istanbul), but it is not supporting it, I am using Polymer Version 1.2. And…
Anita Mehta
  • 625
  • 2
  • 13
  • 30
3
votes
0 answers

Cannot read property 'match' of undefined at testing polymer

I'm trying to run tests using polymer CLI in the command line using $ polymer test, but i'm getting this error: TypeError: Cannot read property 'match' of undefined error: cli runtime exception: TypeError: Cannot read property 'match' of…
mumumilk
  • 170
  • 2
  • 7
3
votes
0 answers

WCT script failing outside test with : 'Error thrown outside of test function'

I have a custom polymer element which creates another polymer element in its properties. The code is as such : Polymer({ is: 'pg-create-ad-new', properties:{ creative: { type: "String" }, storyId: { type: "String", value: ()=>{ …
3
votes
1 answer

Polymer Webcomponent Tester (WCT) XVFB unable to connect to selenium

I am getting this error on ubuntu when we use XVFB to load WCT test. The test goes through fine the first time however, when we run the second time it fails. Looks like its missing HTMLunit Driver. I tried installing unit driver but could not fix.…
Srikanth Kondaparthy
  • 3,247
  • 3
  • 16
  • 19
3
votes
0 answers