The Problem:
I have an array of promises which is resolved to an array of strings. Now the test should pass if at least one of the strings matc
Array.prototype.some()
looks like what you actually looking for.
protractor.promise.all([text1, text2, text3]).then(function (values) {
expect(values.some(v => v.match(/expression/)).toBe(true);
});
For more information https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/some