Commit d2d4fcc2 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'xanf-vtu-30-html' into 'master'

Update tests to respect html() changes

Closes #191270

See merge request gitlab-org/gitlab!22299
parents 7a0b1cac 089c407e
...@@ -52,7 +52,7 @@ describe('GeoDesigns', () => { ...@@ -52,7 +52,7 @@ describe('GeoDesigns', () => {
}); });
it('is hidden', () => { it('is hidden', () => {
expect(findGlPagination().html()).toBeUndefined(); expect(findGlPagination().isEmpty()).toBe(true);
}); });
}); });
......
...@@ -51,7 +51,7 @@ describe('BlockingMergeRequestsReport', () => { ...@@ -51,7 +51,7 @@ describe('BlockingMergeRequestsReport', () => {
props.mr.blockingMergeRequests.visible_merge_requests = {}; props.mr.blockingMergeRequests.visible_merge_requests = {};
createComponent(props); createComponent(props);
expect(wrapper.html()).toBeUndefined(); expect(wrapper.isEmpty()).toBe(true);
}); });
it('passes merged MRs as resolved issues and anything else as unresolved ', () => { it('passes merged MRs as resolved issues and anything else as unresolved ', () => {
......
...@@ -30,7 +30,7 @@ describe('DiscussionNotesRepliesWrapper', () => { ...@@ -30,7 +30,7 @@ describe('DiscussionNotesRepliesWrapper', () => {
}); });
it('renders children directly', () => { it('renders children directly', () => {
expect(wrapper.html()).toEqual(`<ul>${TEST_CHILDREN}</ul>`); expect(wrapper.element.outerHTML).toEqual(`<ul>${TEST_CHILDREN}</ul>`);
}); });
}); });
...@@ -45,7 +45,7 @@ describe('DiscussionNotesRepliesWrapper', () => { ...@@ -45,7 +45,7 @@ describe('DiscussionNotesRepliesWrapper', () => {
const notes = wrapper.find('li.discussion-collapsible ul.notes'); const notes = wrapper.find('li.discussion-collapsible ul.notes');
expect(notes.exists()).toBe(true); expect(notes.exists()).toBe(true);
expect(notes.html()).toEqual(`<ul class="notes">${TEST_CHILDREN}</ul>`); expect(notes.element.outerHTML).toEqual(`<ul class="notes">${TEST_CHILDREN}</ul>`);
}); });
}); });
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment