Skip to content

Commit d1f9f12

Browse files
Fix tests
Add tests for Issues list Add tests for Issue Create Modal
1 parent d9566ce commit d1f9f12

37 files changed

+650
-238
lines changed

debug.log

Lines changed: 0 additions & 4 deletions
This file was deleted.

e2e/api/editor.api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export class EditorAPI extends BaseAPI {
7171
}
7272

7373
public async getResults(testResult: TestResult): Promise<TestResult[]> {
74+
testResult.project_id = this.project.id;
7475
return sendGet(Endpoints.testresult, testResult, this.token, this.project.id);
7576
}
7677

e2e/data/expected/milestoneView/assignedAndUnissigned.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Test,Test Suite,Result,Resolution,Comment
1+
Test,Test Suite,Result,Resolution,Issue
22
"Login: should not be able to login with wrong username","Login","Failed",,
33
"Test Run: Test Run can be created without Milestone","Test Run: Manager","Not Executed",,
44
"Test Run: Test Run can be created with Milestone","Test Run: Manager","Not Executed",,

e2e/data/expected/milestoneView/distinctResults.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Test,Test Suite,Result,Resolution,Comment
1+
Test,Test Suite,Result,Resolution,Issue
22
"Login: should not be able to login with wrong username","Login","Failed",,
33
"Test Run: Test Run can be created with Milestone","Test Run: Viewer","Failed",,
44
"Login: should be able to login as admin","Login","Passed",,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Test,Test Suite,Result,Resolution,Comment
1+
Test,Test Suite,Result,Resolution,Issue
22
"Login: should not be able to login with wrong username","Login","Failed",,
33
"Login: should be able to login as admin","Login","Passed",,
44
"Login: should not be able to login with wrong password","Login","Pending",,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Test,Test Suite,Test Run,Result,Resolution,Comment,Finished
1+
Test,Test Suite,Test Run,Result,Resolution,Issue,Finished

e2e/data/expected/milestoneView/suitesResults.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Test,Test Suite,Result,Resolution,Comment
1+
Test,Test Suite,Result,Resolution,Issue
22
"Login: should not be able to login with wrong username","Login","Failed",,
33
"Test Run: Test Run can be created with Milestone","Test Run: Manager","Failed",,
44
"Test Run: Test Run can be created with Milestone","Test Run: Viewer","Failed",,
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Test Name,Fail Reason,Last Results,Result,Resolution,Assignee,Comment
2-
"Test Feature with all results: step failed","step was failed !”#$%&’()*+,-./:;<=>?@[\]^_`{|}~","3","Failed","Not Assigned",,
3-
"Test Feature with all results: All passed","","5","Passed",,,
4-
"Test Feature with all results: Step skipped","step was skippedstep was skipped","3","Pending","Not Assigned",,
1+
Test Name,Fail Reason,Last Results,Result,Resolution,Issue
2+
"Test Feature with all results: step failed","step was failed !”#$%&’()*+,-./:;<=>?@[\]^_`{|}~","3","Failed",,
3+
"Test Feature with all results: All passed","","5","Passed",,
4+
"Test Feature with all results: Step skipped","step was skippedstep was skipped","3","Pending",,
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Test Name,1369 | Auto | 09/11/19,1364 | Auto | 09/11/19,1365 | Auto | 09/11/19,1366 | Auto | 09/11/19,1367 | Auto | 09/11/19,1368 | Auto | 09/11/19
1+
Test Name,182 | Auto | 03/30/20,183 | Auto | 03/30/20,184 | Auto | 03/30/20,185 | Auto | 03/30/20,186 | Auto | 03/30/20,181 | Auto | 03/30/20
22
"Test Feature with all results: All passed","Passed","Passed","Passed","Passed","Passed","Passed"
3-
"Test Feature with all results: step failed","Not Assigned","Not Assigned","Not Assigned","Not Assigned","Not Assigned","Not Assigned"
4-
"Test Feature with all results: Step skipped","Not Assigned","Not Assigned","Not Assigned","Not Assigned","Not Assigned","Not Assigned"
3+
"Test Feature with all results: step failed",,,,,,
4+
"Test Feature with all results: Step skipped",,,,,,

e2e/data/resolutions.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,39 @@
11
{
22
"flowTest": {
33
"name": "Auto Flow Test",
4-
"color": "Danger"
4+
"color_name": "Danger",
5+
"color": 1
56
},
67
"global": {
78
"notAssigned": {
89
"id": 1,
910
"name": "Not Assigned",
10-
"color": "Primary"
11+
"color_name": "Primary",
12+
"color": 3
1113
},
1214
"appIssue": {
1315
"id": 2,
1416
"name": "Application Issue",
15-
"color": "Danger"
17+
"color_name": "Danger",
18+
"color": 1
1619
},
1720
"environmentIssue": {
1821
"id": 3,
1922
"name": "Environment Issue",
20-
"color": "Warning"
23+
"color_name": "Warning",
24+
"color": 2
2125
},
2226
"testIssue": {
2327
"id": 4,
2428
"name": "Test Issue",
25-
"color": "Warning"
29+
"color_name": "Warning",
30+
"color": 2
2631
},
2732
"testDesignIssue": {
2833
"id": 5,
2934
"name": "Test Design Issue",
30-
"color": "Warning"
35+
"color_name": "Warning",
36+
"color": 2
3137
}
3238
}
3339
}

0 commit comments

Comments
 (0)