-
Notifications
You must be signed in to change notification settings - Fork 4
/
codeceptConfigHelper.js
98 lines (97 loc) · 5.27 KB
/
codeceptConfigHelper.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
module.exports = {
pageObjects: {
I: './tests/custom_steps.js',
codeceptjsConfig: './pr.codecept.js',
credentials: './tests/pages/credentials.js',
addInstanceAPI: './tests/pages/api/addInstanceAPI.js',
addInstancePage: './tests/pages/addInstancePage.js',
amiInstanceAPI: './tests/pages/api/amiInstanceAPI.js',
adminPage: './tests/pages/adminPage.js',
alertGroupsPage: './tests/ia/pages/alertGroupsPage.js',
alertRulesPage: './tests/ia/pages/alertRulesPage.js',
aiAdminPage: './tests/ia/pages/alertingAdminPage.js',
alertmanagerAPI: './tests/pages/api/alertmanagerAPI.js',
alertsAPI: './tests/ia/pages/api/alertsAPI.js',
alertsPage: './tests/ia/pages/alertsPage.js',
advisorsPage: './tests/advisors/pages/advisorsPage.js',
amiInstanceSetupPage: './tests/pages/amiInstanceSetupPage.js',
annotationAPI: './tests/pages/api/annotationAPI.js',
backupAPI: './tests/backup/pages/api/backupAPI.js',
backupInventoryPage: './tests/backup/pages/inventoryPage.js',
changePasswordPage: './tests/configuration/pages/changePasswordPage.js',
contactPointsAPI: './tests/ia/pages/api/contactPointsAPI.js',
contactPointsPage: './tests/ia/pages/contactPointsPage.js',
dashboardPage: './tests/pages/dashboardPage.js',
databaseChecksPage: './tests/advisors/pages/databaseChecksPage.js',
dbaasAPI: './tests/DbaaS/api/dbaasAPI.js',
dbaasPage: './tests/DbaaS/pages/dbaasPage.js',
dbaasActionsPage: './tests/DbaaS/pages/dbaasActionsPage.js',
dbaasManageVersionPage: './tests/DbaaS/pages/dbaasManageVersionPage.js',
dbClusterSummaryDashboardPage: './tests/PageObjects/Dashboards/Experimental/dbClusterSummaryDashboard.js',
dumpAPI: './tests/pages/api/dumpAPI.js',
dumpPage: './tests/pages/dumpPage.js',
explorePage: './tests/pages/explorePage.js',
experimentalPostgresqlDashboardsPage: './tests/PageObjects/Dashboards/Postgresql/ExperimentalPostgresqlDashboards.js',
grafanaAPI: './tests/pages/api/grafanaAPI.js',
homePage: './tests/pages/homePage.js',
inventoryAPI: './tests/pages/api/inventoryAPI.js',
mysqlTableDetailsPage: './tests/pages/mysqlTableDetailsPage.js',
leftNavMenu: './tests/pages/leftNavMenu.js',
links: './tests/helper/linksHelper.js',
locationsPage: './tests/backup/pages/locationsPage.js',
locationsAPI: './tests/backup/pages/api/locationsAPI.js',
nPoliciesPage: './tests/ia/pages/notificationPolicies.js',
psMySql: './tests/helper/psMySql.js',
organizationEntitlementsPage: './tests/pages/organizationEntitlementsPage.js',
organizationTicketsPage: './tests/pages/organizationTicketsPage.js',
perconaPlatformPage: './tests/pages/perconaPlatformPage/perconaPlatformPage.js',
pmmDemoPage: './tests/pages/pmmDemoPage.js',
pmmInventoryPage: './tests/configuration/pages/pmmInventoryPage.js',
agentsPage: './tests/configuration/pages/agentsPage.js',
pmmServerAdminSettingsPage: './tests/configuration/pages/pmmServerAdminSettingsPage.js',
pmmSettingsPage: './tests/configuration/pages/pmmSettingsPage.js',
portalAPI: './tests/pages/api/portalAPI.js',
profileAPI: './tests/configuration/api/profileApi.js',
qanDetails: './tests/QAN/pages/qanDetailsFragment.js',
qanFilters: './tests/QAN/pages/qanFiltersFragment.js',
qanOverview: './tests/QAN/pages/qanOverviewFragment.js',
qanPage: './tests/QAN/pages/qanPage.js',
qanPagination: './tests/QAN/pages/qanPaginationFragment.js',
remoteInstancesPage: './tests/pages/remoteInstancesPage.js',
remoteInstancesHelper: './tests/remoteInstances/remoteInstancesHelper.js',
restorePage: './tests/backup/pages/restorePage.js',
rulesAPI: './tests/ia/pages/api/rulesAPI.js',
ruleTemplatesPage: './tests/ia/pages/ruleTemplatesPage.js',
scheduledAPI: './tests/backup/pages/api/scheduledAPI.js',
scheduledPage: './tests/backup/pages/scheduledPage.js',
searchDashboardsModal: './tests/dashboards/pages/searchDashboardsModal.js',
serverApi: './tests/pages/api/serverApi.js',
silencesPage: './tests/ia/pages/silencesPage.js',
iaCommon: './tests/ia/pages/iaCommonPage.js',
platformAPI: './tests/pages/api/platformAPI.js',
advisorsAPI: './tests/advisors/pages/api/advisorsAPI.js',
settingsAPI: './tests/pages/api/settingsAPI.js',
templatesAPI: './tests/ia/pages/api/templatesAPI.js',
qanAPI: './tests/QAN/api/qanAPI.js',
environmentOverviewPage: './tests/pages/environmentOverviewPage.js',
tooltips: './tests/helper/tooltipHelper.js',
statsAndLicensePage: './tests/server-admin/pages/statsAndLicensePage.js',
dataSourcePage: './tests/pages/pmmSettingsPages/dataSourcePage.js',
pmmTourPage: './tests/pages/pmmTourPage.js',
loginPage: './tests/pages/loginPage.js',
nodesOverviewPage: './tests/pages/nodesOverviewPage.js',
},
getChunks: (files) => {
const dependentTests = files.filter((value) => /PMMSettings|ia|stt|backup|permissions|Azure/.test(value));
const dbaasTests = files.filter((value) => /DbaaS|TLSMongo/.test(value));
const portalTests = files.filter((value) => /portal/.test(value));
const otherTests = files.filter((val) => !dependentTests.includes(val)
&& !dbaasTests.includes(val) && !portalTests.includes(val));
return [
dependentTests,
portalTests,
otherTests,
dbaasTests,
];
},
};