I have a Google Polymer Project that I am trying to implement functional testing with Intern, which can be found here:
The code I'm trying to test is in the Shadow DOM, as the page uses a variety of web components. The main goal of the test is to fill in a form and post the data. The structure of the code is as follows:
<app>
#shadow-root
<login-form>
#shadow-root
<card>
#shadow-root
<paper-input>
#shadow-root
<iron-input>
email
</iron-input>
</paper-input>
<paper-input>
#shadow-root
<iron-input>
password
</iron-input>
</paper-input>
<paper-button>
submit
</paper-button>
</card>
</login-form>
</app>
Where "#shadow-root" implies how the code is represented in a browser.
I have used
document.querySelector('app').document.querySelector('login-form')...etc
to access the specific elements, but cannot work out a way to click the elements, type in the fields, and click on the submit button upon completion. Is there any way to do this in Intern?