Skip to content

Commit

Permalink
UBERF-8613: Rename all test cases and fix list viewlet (#7255)
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Savchenko <[email protected]>
  • Loading branch information
ArtyomSavchenko authored Dec 3, 2024
1 parent abdf257 commit 6af28c9
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 28 deletions.
33 changes: 17 additions & 16 deletions models/test-management/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function defineApplication (builder: Builder): void {
parentKey: 'parent',
noParentId: testManagement.ids.NoParent,
getFolderLink: testManagement.function.GetTestSuiteLink,
allObjectsLabel: testManagement.string.AllTestCases,
allObjectsLabel: testManagement.string.AllTestSuites,
allObjectsIcon: testManagement.icon.TestSuites
},
syncWithLocationQuery: true
Expand Down Expand Up @@ -335,20 +335,6 @@ function defineTestCase (builder: Builder): void {
ignoreKeys: ['createdBy', 'modifiedBy', 'createdOn', 'modifiedOn', 'name']
})

builder.createDoc(
view.class.Viewlet,
core.space.Model,
{
attachTo: testManagement.class.TestCase,
descriptor: view.viewlet.Table,
config: ['', { key: 'attachedTo', label: testManagement.string.TestSuite }, 'status', 'assignee'],
configOptions: {
strict: true
}
},
testManagement.viewlet.TableTestCase
)

const viewOptions: ViewOptionsModel = {
groupBy: ['attachedTo'],
orderBy: [
Expand Down Expand Up @@ -385,7 +371,6 @@ function defineTestCase (builder: Builder): void {
props: { kind: 'list', size: 'small', shouldShowName: false },
displayProps: { key: 'status', fixed: 'left' }
},
{ key: '', displayProps: { fixed: 'left', key: 'lead' } },
{ key: '', displayProps: { grow: true } },
{ key: 'modifiedOn', displayProps: { key: 'modified', fixed: 'right', dividerBefore: true } },
{
Expand All @@ -398,6 +383,20 @@ function defineTestCase (builder: Builder): void {
},
testManagement.viewlet.ListTestCase
)

builder.createDoc(
view.class.Viewlet,
core.space.Model,
{
attachTo: testManagement.class.TestCase,
descriptor: view.viewlet.Table,
config: ['', { key: 'attachedTo', label: testManagement.string.TestSuite }, 'status', 'assignee'],
configOptions: {
strict: true
}
},
testManagement.viewlet.TableTestCase
)
}

function defineTestRun (builder: Builder): void {
Expand Down Expand Up @@ -493,6 +492,8 @@ function defineTestResult (builder: Builder): void {
key: 'status',
props: { kind: 'list', size: 'small', shouldShowName: false }
},
{ key: '', displayProps: { grow: true } },
{ key: 'modifiedOn', displayProps: { key: 'modified', fixed: 'right', dividerBefore: true } },
{
key: 'assignee',
props: { kind: 'list', shouldShowName: false, avatarSize: 'x-small' },
Expand Down
2 changes: 1 addition & 1 deletion plugins/test-management-assets/lang/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"TestCase": "Testovací případ",
"TestProject": "Projekt",
"TestManagementApplication": "Správa testů",
"AllTestCases": "Všechny testovací případy",
"AllTestSuites": "Všechny testovací sady",
"AllProjects": "Všechny projekty",
"Projects": "Projekty",
"CreateProject": "Vytvořit projekt",
Expand Down
2 changes: 1 addition & 1 deletion plugins/test-management-assets/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"TestCase": "Test case",
"TestProject": "Project",
"TestManagementApplication": "Test Management",
"AllTestCases": "All test cases",
"AllTestSuites": "All test suites",
"AllProjects": "All projects",
"Projects": "Projects",
"CreateProject": "Create project",
Expand Down
2 changes: 1 addition & 1 deletion plugins/test-management-assets/lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"TestCase": "Caso de prueba",
"TestProject": "Proyecto",
"TestManagementApplication": "Gestión de Pruebas",
"AllTestCases": "Todos los casos de prueba",
"AllTestSuites": "Todos los conjuntos de pruebas",
"AllProjects": "Todos los proyectos",
"Projects": "Proyectos",
"CreateProject": "Crear proyecto",
Expand Down
2 changes: 1 addition & 1 deletion plugins/test-management-assets/lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"TestCase": "Cas de test",
"TestProject": "Projet",
"TestManagementApplication": "Gestion des tests",
"AllTestCases": "Tous les cas de tests",
"AllTestSuites": "Tous les ensembles de tests",
"AllProjects": "Tous les projets",
"Projects": "Projets",
"CreateProject": "Créer un projet",
Expand Down
2 changes: 1 addition & 1 deletion plugins/test-management-assets/lang/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"TestCase": "Caso di test",
"TestProject": "Progetto",
"TestManagementApplication": "Gestione Test",
"AllTestCases": "Tutti i casi di test",
"AllTestSuites": "Tutti i set di test",
"AllProjects": "Tutti i progetti",
"Projects": "Progetti",
"CreateProject": "Crea progetto",
Expand Down
2 changes: 1 addition & 1 deletion plugins/test-management-assets/lang/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"TestCase": "Caso de teste",
"TestProject": "Projeto",
"TestManagementApplication": "Gestão de Testes",
"AllTestCases": "Todos os casos de teste",
"AllTestSuites": "Todos os conjuntos de testes",
"AllProjects": "Todos os projetos",
"Projects": "Projetos",
"CreateProject": "Criar projeto",
Expand Down
8 changes: 4 additions & 4 deletions plugins/test-management-assets/lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"TestCase": "Тест-кейс",
"TestProject": "Проект",
"TestManagementApplication": "Управление тестированием",
"AllTestCases": "Все тест-кейсы",
"AllTestSuites": "Все категории тестов",
"AllProjects": "Все проекты",
"Projects": "Проекты",
"CreateProject": "Создать проект",
Expand All @@ -36,14 +36,14 @@
"RoleLabel": "Роль",
"ProjectMembers": "Участники проекта",
"TestSuites": "Тестовые наборы",
"CreateTestSuite": "Создать тестовый набор",
"CreateTestSuite": "Создать новую категорию тестов",
"NamePlaceholder": "Имя тестового набора",
"DescriptionPlaceholder": "Описание (опционально)",
"TestRuns": "Выполнение тестов",
"TestRun": "Тест план",
"TestNamePlaceholder": "Имя тест кейса",
"ChooseIcon": "Выберите иконку",
"NoTestSuite": "Тестовый набор не задан",
"NoTestSuite": "Категория тестов не задана",
"StatusDraft": "В прогрессе",
"StatusReview": "Готов для ревью",
"StatusReviewComments": "Требует исправлений",
Expand All @@ -58,7 +58,7 @@
"NoTestCases": "Тест-кейсы отсутствует",
"CreateTestRun": "Создать тест план",
"TestRunNamePlaceholder": "Название тест плана",
"SelectTestSuites": "Выбрать наборы тестов",
"SelectTestSuites": "Выбрать категории тестов",
"SelectTestCases": "Выбрать тест-кейсы",
"TestLibrary": "Библиотека тестов",
"TestResult": "Результат",
Expand Down
2 changes: 1 addition & 1 deletion plugins/test-management-assets/lang/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"TestCase": "測試用例",
"TestProject": "專案",
"TestManagementApplication": "測試管理",
"AllTestCases": "所有測試用例",
"AllTestSuites": "所有測試套件",
"AllProjects": "所有項目",
"Projects": "專案",
"CreateProject": "創建專案",
Expand Down
2 changes: 1 addition & 1 deletion plugins/test-management/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const testManagementPlugin = plugin(testManagementId, {
TestCase: '' as IntlString,
TestProject: '' as IntlString,
TestManagementApplication: '' as IntlString,
AllTestCases: '' as IntlString,
AllTestSuites: '' as IntlString,
AllProjects: '' as IntlString,
Projects: '' as IntlString,
CreateProject: '' as IntlString,
Expand Down

0 comments on commit 6af28c9

Please sign in to comment.