diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-12 18:14:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-12 18:14:03 +0300 |
commit | a75c69379b2cc15b8851aa61e874b06ea5856f83 (patch) | |
tree | e3927c8a1b9ed1b35543cc3a10624e55b9fbb9dc /spec/frontend/pipelines/test_reports | |
parent | 07d9675a80861fe84199e4002667f0bd57c160bf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/pipelines/test_reports')
-rw-r--r-- | spec/frontend/pipelines/test_reports/test_suite_table_spec.js | 8 | ||||
-rw-r--r-- | spec/frontend/pipelines/test_reports/test_summary_table_spec.js | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/pipelines/test_reports/test_suite_table_spec.js b/spec/frontend/pipelines/test_reports/test_suite_table_spec.js index c372ac06c35..da13df833e7 100644 --- a/spec/frontend/pipelines/test_reports/test_suite_table_spec.js +++ b/spec/frontend/pipelines/test_reports/test_suite_table_spec.js @@ -26,10 +26,10 @@ describe('Test reports suite table', () => { const noCasesMessage = () => wrapper.findByTestId('no-test-cases'); const artifactsExpiredMessage = () => wrapper.findByTestId('artifacts-expired'); - const artifactsExpiredEmptyState = () => wrapper.find(GlEmptyState); + const artifactsExpiredEmptyState = () => wrapper.findComponent(GlEmptyState); const allCaseRows = () => wrapper.findAllByTestId('test-case-row'); const findCaseRowAtIndex = (index) => wrapper.findAllByTestId('test-case-row').at(index); - const findLinkForRow = (row) => row.find(GlLink); + const findLinkForRow = (row) => row.findComponent(GlLink); const findIconForRow = (row, status) => row.find(`.ci-status-icon-${status}`); const createComponent = ({ suite = testSuite, perPage = 20, errorMessage } = {}) => { @@ -113,7 +113,7 @@ describe('Test reports suite table', () => { const filePath = `${blobPath}/${relativeFile}`; const row = findCaseRowAtIndex(0); const fileLink = findLinkForRow(row); - const button = row.find(GlButton); + const button = row.findComponent(GlButton); expect(fileLink.attributes('href')).toBe(filePath); expect(row.text()).toContain(file); @@ -134,7 +134,7 @@ describe('Test reports suite table', () => { }); it('renders a pagination component', () => { - expect(wrapper.find(GlPagination).exists()).toBe(true); + expect(wrapper.findComponent(GlPagination).exists()).toBe(true); }); }); diff --git a/spec/frontend/pipelines/test_reports/test_summary_table_spec.js b/spec/frontend/pipelines/test_reports/test_summary_table_spec.js index 0e1229f7067..cfe9ff564dc 100644 --- a/spec/frontend/pipelines/test_reports/test_summary_table_spec.js +++ b/spec/frontend/pipelines/test_reports/test_summary_table_spec.js @@ -44,7 +44,7 @@ describe('Test reports summary table', () => { describe('when test reports are supplied', () => { beforeEach(() => createComponent()); - const findErrorIcon = () => wrapper.find({ ref: 'suiteErrorIcon' }); + const findErrorIcon = () => wrapper.findComponent({ ref: 'suiteErrorIcon' }); it('renders the correct number of rows', () => { expect(noSuitesToShow().exists()).toBe(false); |