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
If this works,
protractor.promise.all([text1, text2, text3]).then(function (values) {
expect(values[0] + values[1] + values[2]).toMatch(/expression/);
});
I think you can write this as follows;
protractor.promise.all([text1, text2, text3]).then(function (values) {
expect(values.join('')).toMatch(/expression/);
});
And it's scalable. :)