Issue
I’m doing some automation tests with protractor and I am stuck with a case.
I want to find a mat-list-item that contains a particular text, in this case "Automation A".
Solution
element(by.xpath('//mat-list-item[contains(.,"Automation A")]'))