UBERF-8613: Rename all test cases and fix list viewlet (#7255)
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko 2024-12-03 16:52:35 +07:00 committed by GitHub
parent abdf2572e2
commit 6af28c9655
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 29 additions and 28 deletions

View File

@ -93,7 +93,7 @@ function defineApplication (builder: Builder): void {
parentKey: 'parent', parentKey: 'parent',
noParentId: testManagement.ids.NoParent, noParentId: testManagement.ids.NoParent,
getFolderLink: testManagement.function.GetTestSuiteLink, getFolderLink: testManagement.function.GetTestSuiteLink,
allObjectsLabel: testManagement.string.AllTestCases, allObjectsLabel: testManagement.string.AllTestSuites,
allObjectsIcon: testManagement.icon.TestSuites allObjectsIcon: testManagement.icon.TestSuites
}, },
syncWithLocationQuery: true syncWithLocationQuery: true
@ -335,20 +335,6 @@ function defineTestCase (builder: Builder): void {
ignoreKeys: ['createdBy', 'modifiedBy', 'createdOn', 'modifiedOn', 'name'] 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 = { const viewOptions: ViewOptionsModel = {
groupBy: ['attachedTo'], groupBy: ['attachedTo'],
orderBy: [ orderBy: [
@ -385,7 +371,6 @@ function defineTestCase (builder: Builder): void {
props: { kind: 'list', size: 'small', shouldShowName: false }, props: { kind: 'list', size: 'small', shouldShowName: false },
displayProps: { key: 'status', fixed: 'left' } displayProps: { key: 'status', fixed: 'left' }
}, },
{ key: '', displayProps: { fixed: 'left', key: 'lead' } },
{ key: '', displayProps: { grow: true } }, { key: '', displayProps: { grow: true } },
{ key: 'modifiedOn', displayProps: { key: 'modified', fixed: 'right', dividerBefore: true } }, { key: 'modifiedOn', displayProps: { key: 'modified', fixed: 'right', dividerBefore: true } },
{ {
@ -398,6 +383,20 @@ function defineTestCase (builder: Builder): void {
}, },
testManagement.viewlet.ListTestCase 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 { function defineTestRun (builder: Builder): void {
@ -493,6 +492,8 @@ function defineTestResult (builder: Builder): void {
key: 'status', key: 'status',
props: { kind: 'list', size: 'small', shouldShowName: false } props: { kind: 'list', size: 'small', shouldShowName: false }
}, },
{ key: '', displayProps: { grow: true } },
{ key: 'modifiedOn', displayProps: { key: 'modified', fixed: 'right', dividerBefore: true } },
{ {
key: 'assignee', key: 'assignee',
props: { kind: 'list', shouldShowName: false, avatarSize: 'x-small' }, props: { kind: 'list', shouldShowName: false, avatarSize: 'x-small' },

View File

@ -21,7 +21,7 @@
"TestCase": "Testovací případ", "TestCase": "Testovací případ",
"TestProject": "Projekt", "TestProject": "Projekt",
"TestManagementApplication": "Správa testů", "TestManagementApplication": "Správa testů",
"AllTestCases": "Všechny testovací případy", "AllTestSuites": "Všechny testovací sady",
"AllProjects": "Všechny projekty", "AllProjects": "Všechny projekty",
"Projects": "Projekty", "Projects": "Projekty",
"CreateProject": "Vytvořit projekt", "CreateProject": "Vytvořit projekt",

View File

@ -21,7 +21,7 @@
"TestCase": "Test case", "TestCase": "Test case",
"TestProject": "Project", "TestProject": "Project",
"TestManagementApplication": "Test Management", "TestManagementApplication": "Test Management",
"AllTestCases": "All test cases", "AllTestSuites": "All test suites",
"AllProjects": "All projects", "AllProjects": "All projects",
"Projects": "Projects", "Projects": "Projects",
"CreateProject": "Create project", "CreateProject": "Create project",

View File

@ -21,7 +21,7 @@
"TestCase": "Caso de prueba", "TestCase": "Caso de prueba",
"TestProject": "Proyecto", "TestProject": "Proyecto",
"TestManagementApplication": "Gestión de Pruebas", "TestManagementApplication": "Gestión de Pruebas",
"AllTestCases": "Todos los casos de prueba", "AllTestSuites": "Todos los conjuntos de pruebas",
"AllProjects": "Todos los proyectos", "AllProjects": "Todos los proyectos",
"Projects": "Proyectos", "Projects": "Proyectos",
"CreateProject": "Crear proyecto", "CreateProject": "Crear proyecto",

View File

@ -21,7 +21,7 @@
"TestCase": "Cas de test", "TestCase": "Cas de test",
"TestProject": "Projet", "TestProject": "Projet",
"TestManagementApplication": "Gestion des tests", "TestManagementApplication": "Gestion des tests",
"AllTestCases": "Tous les cas de tests", "AllTestSuites": "Tous les ensembles de tests",
"AllProjects": "Tous les projets", "AllProjects": "Tous les projets",
"Projects": "Projets", "Projects": "Projets",
"CreateProject": "Créer un projet", "CreateProject": "Créer un projet",

View File

@ -21,7 +21,7 @@
"TestCase": "Caso di test", "TestCase": "Caso di test",
"TestProject": "Progetto", "TestProject": "Progetto",
"TestManagementApplication": "Gestione Test", "TestManagementApplication": "Gestione Test",
"AllTestCases": "Tutti i casi di test", "AllTestSuites": "Tutti i set di test",
"AllProjects": "Tutti i progetti", "AllProjects": "Tutti i progetti",
"Projects": "Progetti", "Projects": "Progetti",
"CreateProject": "Crea progetto", "CreateProject": "Crea progetto",

View File

@ -21,7 +21,7 @@
"TestCase": "Caso de teste", "TestCase": "Caso de teste",
"TestProject": "Projeto", "TestProject": "Projeto",
"TestManagementApplication": "Gestão de Testes", "TestManagementApplication": "Gestão de Testes",
"AllTestCases": "Todos os casos de teste", "AllTestSuites": "Todos os conjuntos de testes",
"AllProjects": "Todos os projetos", "AllProjects": "Todos os projetos",
"Projects": "Projetos", "Projects": "Projetos",
"CreateProject": "Criar projeto", "CreateProject": "Criar projeto",

View File

@ -21,7 +21,7 @@
"TestCase": "Тест-кейс", "TestCase": "Тест-кейс",
"TestProject": "Проект", "TestProject": "Проект",
"TestManagementApplication": "Управление тестированием", "TestManagementApplication": "Управление тестированием",
"AllTestCases": "Все тест-кейсы", "AllTestSuites": "Все категории тестов",
"AllProjects": "Все проекты", "AllProjects": "Все проекты",
"Projects": "Проекты", "Projects": "Проекты",
"CreateProject": "Создать проект", "CreateProject": "Создать проект",
@ -36,14 +36,14 @@
"RoleLabel": "Роль", "RoleLabel": "Роль",
"ProjectMembers": "Участники проекта", "ProjectMembers": "Участники проекта",
"TestSuites": "Тестовые наборы", "TestSuites": "Тестовые наборы",
"CreateTestSuite": "Создать тестовый набор", "CreateTestSuite": "Создать новую категорию тестов",
"NamePlaceholder": "Имя тестового набора", "NamePlaceholder": "Имя тестового набора",
"DescriptionPlaceholder": "Описание (опционально)", "DescriptionPlaceholder": "Описание (опционально)",
"TestRuns": "Выполнение тестов", "TestRuns": "Выполнение тестов",
"TestRun": "Тест план", "TestRun": "Тест план",
"TestNamePlaceholder": "Имя тест кейса", "TestNamePlaceholder": "Имя тест кейса",
"ChooseIcon": "Выберите иконку", "ChooseIcon": "Выберите иконку",
"NoTestSuite": "Тестовый набор не задан", "NoTestSuite": "Категория тестов не задана",
"StatusDraft": "В прогрессе", "StatusDraft": "В прогрессе",
"StatusReview": "Готов для ревью", "StatusReview": "Готов для ревью",
"StatusReviewComments": "Требует исправлений", "StatusReviewComments": "Требует исправлений",
@ -58,7 +58,7 @@
"NoTestCases": "Тест-кейсы отсутствует", "NoTestCases": "Тест-кейсы отсутствует",
"CreateTestRun": "Создать тест план", "CreateTestRun": "Создать тест план",
"TestRunNamePlaceholder": "Название тест плана", "TestRunNamePlaceholder": "Название тест плана",
"SelectTestSuites": "Выбрать наборы тестов", "SelectTestSuites": "Выбрать категории тестов",
"SelectTestCases": "Выбрать тест-кейсы", "SelectTestCases": "Выбрать тест-кейсы",
"TestLibrary": "Библиотека тестов", "TestLibrary": "Библиотека тестов",
"TestResult": "Результат", "TestResult": "Результат",

View File

@ -21,7 +21,7 @@
"TestCase": "測試用例", "TestCase": "測試用例",
"TestProject": "專案", "TestProject": "專案",
"TestManagementApplication": "測試管理", "TestManagementApplication": "測試管理",
"AllTestCases": "所有測試用例", "AllTestSuites": "所有測試套件",
"AllProjects": "所有項目", "AllProjects": "所有項目",
"Projects": "專案", "Projects": "專案",
"CreateProject": "創建專案", "CreateProject": "創建專案",

View File

@ -128,7 +128,7 @@ export const testManagementPlugin = plugin(testManagementId, {
TestCase: '' as IntlString, TestCase: '' as IntlString,
TestProject: '' as IntlString, TestProject: '' as IntlString,
TestManagementApplication: '' as IntlString, TestManagementApplication: '' as IntlString,
AllTestCases: '' as IntlString, AllTestSuites: '' as IntlString,
AllProjects: '' as IntlString, AllProjects: '' as IntlString,
Projects: '' as IntlString, Projects: '' as IntlString,
CreateProject: '' as IntlString, CreateProject: '' as IntlString,