How can I verify specific text within an unordered list using Protractor? Here is a sample of the code
<ul class="list-unstyled">
<li ng-repeat="field in parsedTemplate.fields" class="ng-scope">
<span col="col-sm-4" class="ng-binding">Invite (Guest)</span>
<span class="col-sm-6 ng-binding">Type (Primary Guest or Companion)
</span></li>
<li ng-repeat="field in parsedTemplate.fields" class="ng-scope">
<span col="col-sm-4" class="ng-binding">Guest</span>
<span class="col-sm-6 ng-binding">Last Name</span></li>
<li ng-repeat="field in parsedTemplate.fields" class="ng-scope">
<span col="col-sm-4" class="ng-binding">Guest</span>
After that, an Excel spreadsheet is generated and that text needs to be verified as well. It will be the same column names as the list items but the contents will change. Is there a way to verify both without creating duplicate tests?