I have this fixture that stamps out <page-welcome>
:
<test-fixture id="fixture-one">
<template>
<page-welcome></page-welcome>
</template>
</test-fixture>
Within <page-welcome>
, I import <paper-button>
and give it a class of big-btn
. It's important this button exists on the <page-welcome>
element, so I want to test it with:
test('does the custom cmponent exist', function() {
var test = fixture('fixture-one').shadowRoot.querySelector('.big-btn');
assert.exists(test);
});
It's my understanding that I should be able to use all of the Chai API, and therefore assert.exists
should be available.
But why do I get the following error?
assert.exists is not a function