Commit fcb5d0dd authored by Miguel Rincon's avatar Miguel Rincon

Merge branch 'jnnkl-table-lite-ci-lint' into 'master'

Replace GlTable with GlTablelite for CI Lint Table

See merge request gitlab-org/gitlab!75365
parents 08f06466 f320b664
<script> <script>
import { GlAlert, GlLink, GlSprintf, GlTable } from '@gitlab/ui'; import { GlAlert, GlLink, GlSprintf, GlTableLite } from '@gitlab/ui';
import { __ } from '~/locale'; import { __ } from '~/locale';
import CiLintResultsParam from './ci_lint_results_param.vue'; import CiLintResultsParam from './ci_lint_results_param.vue';
import CiLintResultsValue from './ci_lint_results_value.vue'; import CiLintResultsValue from './ci_lint_results_value.vue';
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
GlAlert, GlAlert,
GlLink, GlLink,
GlSprintf, GlSprintf,
GlTable, GlTableLite,
CiLintWarnings, CiLintWarnings,
CiLintResultsValue, CiLintResultsValue,
CiLintResultsParam, CiLintResultsParam,
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
@dismiss="isWarningDismissed = true" @dismiss="isWarningDismissed = true"
/> />
<gl-table <gl-table-lite
v-if="shouldShowTable" v-if="shouldShowTable"
:items="jobs" :items="jobs"
:fields="$options.fields" :fields="$options.fields"
...@@ -142,6 +142,6 @@ export default { ...@@ -142,6 +142,6 @@ export default {
<template #cell(value)="{ item }"> <template #cell(value)="{ item }">
<ci-lint-results-value :item="item" :dry-run="dryRun" /> <ci-lint-results-value :item="item" :dry-run="dryRun" />
</template> </template>
</gl-table> </gl-table-lite>
</div> </div>
</template> </template>
import { GlTable, GlLink } from '@gitlab/ui'; import { GlTableLite, GlLink } from '@gitlab/ui';
import { shallowMount, mount } from '@vue/test-utils'; import { shallowMount, mount } from '@vue/test-utils';
import { capitalizeFirstCharacter } from '~/lib/utils/text_utility'; import { capitalizeFirstCharacter } from '~/lib/utils/text_utility';
import CiLintResults from '~/pipeline_editor/components/lint/ci_lint_results.vue'; import CiLintResults from '~/pipeline_editor/components/lint/ci_lint_results.vue';
...@@ -24,7 +24,7 @@ describe('CI Lint Results', () => { ...@@ -24,7 +24,7 @@ describe('CI Lint Results', () => {
}); });
}; };
const findTable = () => wrapper.find(GlTable); const findTable = () => wrapper.find(GlTableLite);
const findByTestId = (selector) => () => wrapper.find(`[data-testid="ci-lint-${selector}"]`); const findByTestId = (selector) => () => wrapper.find(`[data-testid="ci-lint-${selector}"]`);
const findAllByTestId = (selector) => () => const findAllByTestId = (selector) => () =>
wrapper.findAll(`[data-testid="ci-lint-${selector}"]`); wrapper.findAll(`[data-testid="ci-lint-${selector}"]`);
......
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