jasmine-jquery icon indicating copy to clipboard operation
jasmine-jquery copied to clipboard

Improves error messages for toHaveText and toContainElement matchers

Open jwark opened this issue 9 years ago • 2 comments

Improves error messages for toHaveText and toContainElement matchers when expectation not met.

E.g.: expect($('.page-title')).toHaveText('My header');

Expected ({ 0: HTMLNode, length: 1, prevObject: ({ 0: HTMLNode, context: HTMLNode, length: 1 }), context: HTMLNode, selector: '.page-title' }) to have text 'My header'.

Expected element '<h1 class="my-class">My heading</h1>' to have text My header

jwark avatar Feb 29 '16 00:02 jwark

+1

uzikilon avatar Jun 20 '16 20:06 uzikilon

Any update on this? It's been over a year and this is extremely useful

seansellek avatar Apr 12 '17 18:04 seansellek