jasmine-jquery
jasmine-jquery copied to clipboard
Improves error messages for toHaveText and toContainElement matchers
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
+1
Any update on this? It's been over a year and this is extremely useful