I have never written unit tests in jasmine to test an HTML element and I'm hoping to get an answer as well as some resources on the topic.
Here's the code:
<div class="ui-g-4 patientName">
<h1><b [innerText]="header.patient.name || na"></b>,</h1>
<div class="patientInfo">
<h3><b [innerText]="header.patient.sex || na"></b></h3>
<h3><b [innerText]="(header.patient.dateOfBirth | date) || na"></b></h3>
</div>
</div>
As you can see I have a 'h1' and 2 'h3'. On the patient.dateOfBirth I also use a pipe for the filter of date.
As I said before, I've never written tests for this kind of thing and have no idea where to start. If you know of resources, links or examples feel free to post so I can read more about it. If you feel like writing the 'describe' and the 'it(should...' with descriptions I'd appreciate it as well.
Thanks