Skip to content

Commit bcc4f1b

Browse files
enable horizontal scrolling for request and response
1 parent b159f1f commit bcc4f1b

File tree

5 files changed

+395
-0
lines changed

5 files changed

+395
-0
lines changed

webtau-reactjs/src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ import Report from './report/Report'
2222

2323
import './index.css'
2424

25+
if (process.env.NODE_ENV !== "production") {
26+
global.testReport = require('./test-data/testData').report
27+
}
28+
2529
global.WebTauReport = WebTauReport
2630

2731
global.renderReport = () => {

webtau-reactjs/src/report/details/http/HttpCallDetails.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
padding: 15px;
4343
}
4444

45+
.http-call-details-request-details,
46+
.http-call-details-response-details {
47+
overflow-x: auto;
48+
}
49+
4550
.http-call-details-mismatches,
4651
.http-call-details-error-message {
4752
font-family: var(--webtau-monospace-font);

webtau-reactjs/src/report/details/http/TestHttpCalls.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
grid-column-gap: 20px;
2121
}
2222

23+
.test-http-call-details .request-response > .request,
24+
.test-http-call-details .request-response > .response {
25+
overflow-x: auto;
26+
}
27+
2328
.test-http-call {
2429
cursor: pointer;
2530
}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
/*
2+
* Copyright 2018 TWO SIGMA OPEN SOURCE, LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
export default {
18+
person: {
19+
firstName: {
20+
firstNamePartOne: {
21+
nestedSubPartOne: {
22+
nestedNestedSubPartOne: {
23+
subNested: {
24+
firstName: {
25+
firstNamePartOne: {
26+
nestedSubPartOne: {
27+
nestedNestedSubPartOne: {
28+
subNested: {
29+
firstName: {
30+
firstNamePartOne: {
31+
nestedSubPartOne: {
32+
nestedNestedSubPartOne: {
33+
subNested: {
34+
firstName: {
35+
firstNamePartOne: {
36+
nestedSubPartOne: {
37+
nestedNestedSubPartOne: {
38+
subNested: {
39+
person: {
40+
firstName: {
41+
firstNamePartOne: {
42+
nestedSubPartOne: {
43+
nestedNestedSubPartOne: {
44+
subNested: {
45+
firstName: {
46+
firstNamePartOne: {
47+
nestedSubPartOne: {
48+
nestedNestedSubPartOne: {
49+
subNested: {
50+
firstName: {
51+
firstNamePartOne: {
52+
nestedSubPartOne: {
53+
nestedNestedSubPartOne: {
54+
subNested: {
55+
firstName: {
56+
firstNamePartOne: {
57+
nestedSubPartOne: {
58+
nestedNestedSubPartOne: {
59+
subNested: {}
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+
}
99+
}
100+
}
101+
}

0 commit comments

Comments
 (0)