Skip to content

Commit 9ec747e

Browse files
Merge pull request #4779 from linuxfoundation/unicron-4762-cypress-apis-test-coverage
Fixing cypress functional test coverage - WIP
2 parents e2177fd + db9084e commit 9ec747e

27 files changed

+3410
-1885
lines changed

tests/functional/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ You can ask for example `.env` file over slack.
9090
- Run `npx cypress install`
9191
- Run tests using cmd `npx cypress run`. Or `xvfb-run -a npx cypress run` when runnign over SSH.
9292
- Run tests using UI `npx cypress open`. Choose **E2E testing**, select **Chrome** browser.
93+
- Run single E2E spec file: `` [ALLOW_FAIL=1] ./run-single-test.sh github-repositories ``.
94+
- Run single test from E2E spec file: `` [ALLOW_FAIL=1] ./run-single-test.sh github-repositories 'test name regexp' ``.
9395
- View test reports in the `cypress-report` directory.
9496
- Explore source code files for detailed implementation.
9597

tests/functional/cypress.config.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ export default defineConfig({
99
e2e: {
1010
// baseUrl: 'http://localhost:1234',
1111
specPattern: 'cypress/e2e/**/**/*.{js,jsx,ts,tsx}',
12+
setupNodeEvents(on, config) {
13+
on('task', {
14+
log(message: string) {
15+
console.log(message);
16+
return null;
17+
},
18+
table(rows: any[]) {
19+
console.table(rows);
20+
return null;
21+
},
22+
});
23+
return config;
24+
},
1225
},
1326
env: {
1427
APP_URL: process.env.APP_URL,
@@ -19,6 +32,5 @@ export default defineConfig({
1932
AUTH0_CLIENT_SECRET: process.env.AUTH0_CLIENT_SECRET,
2033
AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID,
2134
CYPRESS_ENV: process.env.CYPRESS_ENV,
22-
}
35+
},
2336
});
24-
Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
// config.dev.js
2-
export const appConfig = {
3-
projectSFID: 'a09P000000DsCE5IAN',//project name: SUN
4-
5-
/*Variable for create cla group*/
6-
foundationSFID:'a09P000000DsNGsIAN', //project name: easyAutom foundation & common for foundation.spec.ts
7-
createNewClaGroupSFID:'a09P000000DsNGxIAN', //project name: easyAutom-child1
8-
claGroupName:'CypressDevClaGroup',
9-
gitHubOrgPartialStatus:'Sun-lfxfoundationOrgTest',//For partial Connection
10-
enrollProjectsSFID:'a09P000000DsNHCIA3', //project name: easyAutomChild1-GrandChild1,
11-
child_Project_name:'easyAutomChild1-GrandChild1',
12-
13-
/*company*/
14-
companyName:'Infosys Limited',
15-
user_id:"8f3e52b8-0072-11ee-9def-0ef17207dfe8",//[email protected]
16-
userEmail: "[email protected]",
17-
user_id2: "4a4c1dba-407f-11ed-8c58-a6b0f8fb81a9",//[email protected]
18-
19-
/*events*/
20-
companyID:"f7c7ac9c-4dbf-4104-ab3f-6b38a26d82dc",//infosys limited
21-
companyExternalID:'0014100000Te0G7AAJ',//
22-
childProjectSFID:'a09P000000DsNH2IAN', //project name: easyAutom-child2
23-
24-
/*github-organizations*/
25-
gitHubOrgUpdate:'ApiAutomStandaloneOrg',
26-
gitHubNewOrg:'cypressioTest',
27-
claGroupId:'1baf67ab-d894-4edf-b6fc-c5f939db59f7',
28-
29-
/*metrics*/
30-
projectID:'01af041c-fa69-4052-a23c-fb8c1d3bef24',
31-
32-
/*cla-manager*/
33-
userIdclaManager:'c5ac2857-c263-11ed-94d1-d2349de32229',//veerendrat
34-
claGroupId_projectSFID:'01af041c-fa69-4052-a23c-fb8c1d3bef24',//sun project claGroupID
35-
36-
/* project */
37-
projectName:'easyAutom-child2',
38-
39-
/* GitLab-Organization*/
40-
gitLabOrganizationName:'sunGitlabGroup',
41-
gitLabOrganizationFullPath:'https://gitlab.com/cla_dev_automationgroup',
42-
groupId:'72539854',
43-
44-
/* Signature */
45-
lfid:'veerendrat',
46-
emailApprovalList:'[email protected]',
47-
gitOrgApprovalList:'proximabiz.com',
48-
gitUsernameApprovalList:'vrthakur',
49-
gitLabOrgApprovalList:'https://gitlab.com/veerendrat1',
50-
domainApprovalList:'proximabiz.com',
51-
};
2+
export const appConfig = {
3+
projectSFID: 'a09P000000DsCE5IAN', //project name: SUN
4+
5+
/*Variable for create cla group*/
6+
foundationSFID: 'a09P000000DsNGsIAN', //project name: easyAutom foundation & common for foundation.spec.ts
7+
createNewClaGroupSFID: 'a09P000000DsNGxIAN', //project name: easyAutom-child1
8+
claGroupName: 'CypressDevClaGroup',
9+
gitHubOrgPartialStatus: 'Sun-lfxfoundationOrgTest', //For partial Connection
10+
enrollProjectsSFID: 'a09P000000DsNHCIA3', //project name: easyAutomChild1-GrandChild1,
11+
child_Project_name: 'easyAutomChild1-GrandChild1',
12+
13+
/*company*/
14+
companyName: 'Infosys Limited',
15+
user_id: '8f3e52b8-0072-11ee-9def-0ef17207dfe8', //[email protected]
16+
userEmail: '[email protected]',
17+
user_id2: '4a4c1dba-407f-11ed-8c58-a6b0f8fb81a9', //[email protected]
18+
19+
/*events*/
20+
companyID: 'f7c7ac9c-4dbf-4104-ab3f-6b38a26d82dc', //infosys limited
21+
companyExternalID: '0014100000Te0G7AAJ', //
22+
childProjectSFID: 'a09P000000DsNH2IAN', //project name: easyAutom-child2
23+
24+
/*github-organizations*/
25+
gitHubOrgUpdate: 'ApiAutomStandaloneOrg',
26+
gitHubNewOrg: 'cypressioTest',
27+
claGroupId: '1baf67ab-d894-4edf-b6fc-c5f939db59f7',
28+
29+
/*metrics*/
30+
projectID: '01af041c-fa69-4052-a23c-fb8c1d3bef24',
31+
32+
/*cla-manager*/
33+
userIdclaManager: 'c5ac2857-c263-11ed-94d1-d2349de32229', //veerendrat
34+
claGroupId_projectSFID: '01af041c-fa69-4052-a23c-fb8c1d3bef24', //sun project claGroupID
35+
36+
/* project */
37+
projectName: 'easyAutom-child2',
38+
39+
/* GitLab-Organization*/
40+
gitLabOrganizationName: 'sunGitlabGroup',
41+
gitLabOrganizationFullPath: 'https://gitlab.com/cla_dev_automationgroup',
42+
groupId: '72539854',
43+
44+
/* Signature */
45+
lfid: 'veerendrat',
46+
emailApprovalList: '[email protected]',
47+
gitOrgApprovalList: 'proximabiz.com',
48+
gitUsernameApprovalList: 'vrthakur',
49+
gitLabOrgApprovalList: 'https://gitlab.com/veerendrat1',
50+
domainApprovalList: 'proximabiz.com',
51+
};
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// config.production.js
2-
export const appConfig = {
3-
projectSFID: 'a09P000000DsCE5IAN',//project name: SUN
4-
//Veriable used in foundation.spec.ts
5-
foundationSFID:'a09P000000DsNGsIAN' //project name: easyAutom foundation
6-
//Variable for create cla group
7-
8-
};
2+
export const appConfig = {
3+
projectSFID: 'a09P000000DsCE5IAN', //project name: SUN
4+
//Veriable used in foundation.spec.ts
5+
foundationSFID: 'a09P000000DsNGsIAN', //project name: easyAutom foundation
6+
//Variable for create cla group
7+
};

0 commit comments

Comments
 (0)