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>
import { GlAlert, GlLink, GlSprintf, GlTable } from '@gitlab/ui';
import { GlAlert, GlLink, GlSprintf, GlTableLite } from '@gitlab/ui';
import { __ } from '~/locale';
import CiLintResultsParam from './ci_lint_results_param.vue';
import CiLintResultsValue from './ci_lint_results_value.vue';
......@@ -36,7 +36,7 @@ export default {
GlAlert,
GlLink,
GlSprintf,
GlTable,
GlTableLite,
CiLintWarnings,
CiLintResultsValue,
CiLintResultsParam,
......@@ -129,7 +129,7 @@ export default {
@dismiss="isWarningDismissed = true"
/>
<gl-table
<gl-table-lite
v-if="shouldShowTable"
:items="jobs"
:fields="$options.fields"
......@@ -142,6 +142,6 @@ export default {
<template #cell(value)="{ item }">
<ci-lint-results-value :item="item" :dry-run="dryRun" />
</template>
</gl-table>
</gl-table-lite>
</div>
</template>
import { GlTable, GlLink } from '@gitlab/ui';
import { GlTableLite, GlLink } from '@gitlab/ui';
import { shallowMount, mount } from '@vue/test-utils';
import { capitalizeFirstCharacter } from '~/lib/utils/text_utility';
import CiLintResults from '~/pipeline_editor/components/lint/ci_lint_results.vue';
......@@ -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 findAllByTestId = (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