Cómo dar la siguiente línea en el protractor
expect(invoice.getText()).toMatch('This is\s+my URL');
Elated Eagle
expect(invoice.getText()).toMatch('This is\s+my URL');
invoice.getText().then(function (text) {
expect(text.replace(/\n/, '')).toBe('This is my URL');
})