-
Notifications
You must be signed in to change notification settings - Fork 4
/
ctrf-report.json
94 lines (94 loc) · 4.4 KB
/
ctrf-report.json
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
{
"results": {
"tool": {
"name": "jest"
},
"summary": {
"tests": 10,
"passed": 5,
"failed": 2,
"pending": 1,
"skipped": 1,
"other": 1,
"start": 1706644023,
"stop": 1706644048
},
"tests": [
{
"name": "should be able to login",
"status": "passed",
"duration": 1200
},
{
"name": "should display profile information",
"status": "failed",
"duration": 800,
"message": "Assertion Failure: profile mismatch",
"trace": "ProfileTest.js:45"
},
{
"name": "should be able to update profile",
"status": "passed",
"duration": 1200,
"flaky": true,
"retries": 2
},
{
"name": "should be able to logout",
"status": "skipped",
"duration": 0
},
{
"name": "should validate user settings",
"status": "passed",
"duration": 1100
},
{
"name": "should render title",
"status": "failed",
"duration": 900,
"message": "Network Timeout",
"trace": "ProfileUpdateTest.js:60",
"ai": "The test failed because the page title didn't match the expected value within the given timeout period. \n\nTo resolve this issue, you should first check if the title of the page is correct in your application. It seems there might be a typo or a misunderstanding about what the actual title should be. If \"Common Test Report Format\" is indeed the correct title, you'll need to update your test expectations. On the other hand, if \"Uncommon Test Report Format\" is the intended title, you'll need to fix the title in your application code.\n\nAnother possibility is that the page might be taking longer to load than expected, causing the title to not appear within the 5-second timeout. In this case, you could try increasing the timeout duration in your test to give the page more time to load completely."
},
{
"name": "should load user data",
"status": "pending",
"duration": 0
},
{
"name": "should display title",
"status": "failed",
"duration": 800,
"message": "\u001b[31mTimed out 5000ms waiting for \u001b[39m\u001b[2mexpect(\u001b[22m\u001b[31mlocator\u001b[39m\u001b[2m).\u001b[22mtoHaveTitle\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\nLocator: locator(':root')\nExpected pattern: \u001b[32m/Playwrc cight/\u001b[39m\nReceived string: \u001b[31m\"Fast and reliable end-to-end testing for modern web apps | Playwright\"\u001b[39m\nCall log:\n \u001b[2m- expect.toHaveTitle with timeout 5000ms\u001b[22m\n\u001b[2m - waiting for locator(':root')\u001b[22m\n\u001b[2m - locator resolved to <html lang=\"en\" dir=\"ltr\" data-theme=\"light\" data-has-…>…</html>\u001b[22m\n\u001b[2m - unexpected value \"Fast and reliable end-to-end testing for modern web apps | Playwright\"\u001b[22m\n",
"trace": "ProfileTest.js:45",
"ai": "The test failed because the page title didn't match the expected value within the given timeout period.\n\nTo resolve this issue, you should first check if the title of the page is correct in your application. It seems there might be a typo or a misunderstanding about what the actual title should be. If 'Common Test Report Format' is indeed the correct title, you'll need to update your test expectations. On the other hand, if 'Uncommon Test Report Format' is the intended title, you'll need to fix the title in your application code.\n\nAnother possibility is that the page might be taking longer to load than expected, causing the title to not appear within the 5-second timeout. In this case, you could try increasing the timeout duration in your test to give the page more time to load completely."
},
{
"name": "should handle session timeouts",
"status": "passed",
"duration": 950,
"flaky": true,
"retries": 1
},
{
"name": "should clean up user session on logout",
"status": "other",
"duration": 1050
},
{
"name": "should allow user to change password",
"status": "passed",
"duration": 1300,
"flaky": true,
"retries": 3
}
],
"environment": {
"appName": "CtrfApp",
"buildUrl": "https://www.ctrf.io/",
"buildName": "CTRF Build",
"buildNumber": "1"
}
}
}