I have this code and I want to check that whether each element has either "Company" or "Individual".
This code fails. If the element has only "Company", jasmine looks for "Individual" as well. If the element has one of the options it should pass but it doesn't
$$('div.modal').then(function (list) {
list.forEach(function (elm) {
expect(elm.getText()).toContain('Company' || 'Individual');
})
})