Commit c15d8be4 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'xanf-vtu-v1-isEmpty' into 'master'

Upgrading VTU to v1: Remove deprecated `isEmpty` call

See merge request gitlab-org/gitlab!50515
parents 13711666 30df1808
...@@ -37,7 +37,7 @@ describe('Job Sidebar Details Container', () => { ...@@ -37,7 +37,7 @@ describe('Job Sidebar Details Container', () => {
it('should render an empty container', () => { it('should render an empty container', () => {
createWrapper(); createWrapper();
expect(wrapper.isEmpty()).toBe(true); expect(wrapper.html()).toBe('');
}); });
}); });
...@@ -55,7 +55,6 @@ describe('Job Sidebar Details Container', () => { ...@@ -55,7 +55,6 @@ describe('Job Sidebar Details Container', () => {
await store.dispatch('receiveJobSuccess', { [detail]: job[detail] }); await store.dispatch('receiveJobSuccess', { [detail]: job[detail] });
const detailsRow = findAllDetailsRow(); const detailsRow = findAllDetailsRow();
expect(wrapper.isEmpty()).toBe(false);
expect(detailsRow).toHaveLength(1); expect(detailsRow).toHaveLength(1);
expect(detailsRow.at(0).text()).toBe(value); expect(detailsRow.at(0).text()).toBe(value);
}); });
...@@ -65,7 +64,6 @@ describe('Job Sidebar Details Container', () => { ...@@ -65,7 +64,6 @@ describe('Job Sidebar Details Container', () => {
await store.dispatch('receiveJobSuccess', { tags }); await store.dispatch('receiveJobSuccess', { tags });
const tagsComponent = findJobTags(); const tagsComponent = findJobTags();
expect(wrapper.isEmpty()).toBe(false);
expect(tagsComponent.text()).toBe('Tags: tag'); expect(tagsComponent.text()).toBe('Tags: tag');
}); });
}); });
...@@ -91,7 +89,7 @@ describe('Job Sidebar Details Container', () => { ...@@ -91,7 +89,7 @@ describe('Job Sidebar Details Container', () => {
await store.dispatch('receiveJobSuccess', { metadata }); await store.dispatch('receiveJobSuccess', { metadata });
const detailsRow = findAllDetailsRow(); const detailsRow = findAllDetailsRow();
expect(wrapper.isEmpty()).toBe(true); expect(wrapper.html()).toBe('');
expect(detailsRow.exists()).toBe(false); expect(detailsRow.exists()).toBe(false);
}); });
...@@ -100,7 +98,6 @@ describe('Job Sidebar Details Container', () => { ...@@ -100,7 +98,6 @@ describe('Job Sidebar Details Container', () => {
await store.dispatch('receiveJobSuccess', { metadata }); await store.dispatch('receiveJobSuccess', { metadata });
const detailsRow = findAllDetailsRow(); const detailsRow = findAllDetailsRow();
expect(wrapper.isEmpty()).toBe(false);
expect(detailsRow).toHaveLength(1); expect(detailsRow).toHaveLength(1);
expect(detailsRow.at(0).text()).toBe('Timeout: 1m 40s'); expect(detailsRow.at(0).text()).toBe('Timeout: 1m 40s');
}); });
......
...@@ -72,7 +72,7 @@ describe('~/releases/components/releases_pagination_graphql.vue', () => { ...@@ -72,7 +72,7 @@ describe('~/releases/components/releases_pagination_graphql.vue', () => {
}); });
it('does not render anything', () => { it('does not render anything', () => {
expect(wrapper.isEmpty()).toBe(true); expect(wrapper.html()).toBe('');
}); });
}); });
......
...@@ -371,7 +371,7 @@ describe('Security reports app', () => { ...@@ -371,7 +371,7 @@ describe('Security reports app', () => {
// TODO: Remove this assertion as part of // TODO: Remove this assertion as part of
// https://gitlab.com/gitlab-org/gitlab/-/issues/273431 // https://gitlab.com/gitlab-org/gitlab/-/issues/273431
it('initially renders nothing', () => { it('initially renders nothing', () => {
expect(wrapper.isEmpty()).toBe(true); expect(wrapper.html()).toBe('');
}); });
}); });
...@@ -415,7 +415,7 @@ describe('Security reports app', () => { ...@@ -415,7 +415,7 @@ describe('Security reports app', () => {
// TODO: Remove this assertion as part of // TODO: Remove this assertion as part of
// https://gitlab.com/gitlab-org/gitlab/-/issues/273431 // https://gitlab.com/gitlab-org/gitlab/-/issues/273431
it('renders nothing', () => { it('renders nothing', () => {
expect(wrapper.isEmpty()).toBe(true); expect(wrapper.html()).toBe('');
}); });
}); });
}); });
......
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