From 2f6bef1fab4f1cc1d37b8a7ed123de9488d6af27 Mon Sep 17 00:00:00 2001 From: Lukas Gross Date: Mon, 1 Jul 2024 11:37:52 +0200 Subject: [PATCH 1/3] Renamed GShootStatusTags to GShootReadiness --- .../{GStatusTag.spec.js => GReadinessChip.spec.js} | 6 +++--- .../components/{GStatusTags.spec.js => GShootReadiness.js} | 6 +++--- frontend/src/components/GShootListRow.vue | 4 ++-- .../{GStatusTag.vue => Readiness/GReadinessChip.vue} | 2 +- .../{GStatusTags.vue => Readiness/GShootReadiness.vue} | 5 +++-- .../src/components/ShootDetails/GShootMonitoringCard.vue | 4 ++-- 6 files changed, 14 insertions(+), 13 deletions(-) rename frontend/__tests__/components/{GStatusTag.spec.js => GReadinessChip.spec.js} (94%) rename frontend/__tests__/components/{GStatusTags.spec.js => GShootReadiness.js} (96%) rename frontend/src/components/{GStatusTag.vue => Readiness/GReadinessChip.vue} (98%) rename frontend/src/components/{GStatusTags.vue => Readiness/GShootReadiness.vue} (97%) diff --git a/frontend/__tests__/components/GStatusTag.spec.js b/frontend/__tests__/components/GReadinessChip.spec.js similarity index 94% rename from frontend/__tests__/components/GStatusTag.spec.js rename to frontend/__tests__/components/GReadinessChip.spec.js index 3254aa7bb2..3e064be818 100644 --- a/frontend/__tests__/components/GStatusTag.spec.js +++ b/frontend/__tests__/components/GReadinessChip.spec.js @@ -7,14 +7,14 @@ import { mount } from '@vue/test-utils' import { createTestingPinia } from '@pinia/testing' -import GStatusTag from '@/components/GStatusTag.vue' +import GReadinessChip from '@/components/Readiness/GReadinessChip.vue' const { createVuetifyPlugin } = global.fixtures.helper describe('components', () => { - describe('g-status-tag', () => { + describe('g-readiness-chip', () => { function mountStatusTag (condition, isAdmin = false) { - return mount(GStatusTag, { + return mount(GReadinessChip, { global: { plugins: [ createVuetifyPlugin(), diff --git a/frontend/__tests__/components/GStatusTags.spec.js b/frontend/__tests__/components/GShootReadiness.js similarity index 96% rename from frontend/__tests__/components/GStatusTags.spec.js rename to frontend/__tests__/components/GShootReadiness.js index 27667c2604..fd42438a53 100644 --- a/frontend/__tests__/components/GStatusTags.spec.js +++ b/frontend/__tests__/components/GShootReadiness.js @@ -10,14 +10,14 @@ import { createTestingPinia } from '@pinia/testing' import { useConfigStore } from '@/store/config' -import GStatusTags from '@/components/GStatusTags' +import GShootReadiness from '@/components/Readiness/GShootReadiness' import { createShootItemComposable } from '@/composables/useShootItem' const { createVuetifyPlugin } = global.fixtures.helper describe('components', () => { - describe('g-status-tags', () => { + describe('g-shoot-readiness', () => { let pinia function mountStatusTags (conditionTypes) { @@ -31,7 +31,7 @@ describe('components', () => { }), }, }) - return mount(GStatusTags, { + return mount(GShootReadiness, { global: { plugins: [ createVuetifyPlugin(), diff --git a/frontend/src/components/GShootListRow.vue b/frontend/src/components/GShootListRow.vue index 88cea98224..c253956fa1 100644 --- a/frontend/src/components/GShootListRow.vue +++ b/frontend/src/components/GShootListRow.vue @@ -96,7 +96,7 @@ SPDX-License-Identifier: Apache-2.0