I am starting to build a test suite for some of the elements in my app. At the top level I have a <my-app>
element and in its template it uses a <my-session
element to contol user logon and an <iron-media-query>
element to define how long a string to use in the app header.
In order to get better control of the behavior of these two, and am building special test versions of them and using the replace('my-session').with('test-session')
approach to alter them. I will also use the stub
function to control the interaction with the test suite.
I have read completely through the docs on the polymer web site, but I cannot find out if you have to use replace
and stub
before or after you call fixture
.
Can someone advise