310 lines
4.3 KiB
CSS
310 lines
4.3 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: #f5f5f5;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
h1 {
|
|
color: #333;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.config {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.config-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.config-row label {
|
|
min-width: 100px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.config-row input {
|
|
flex: 1;
|
|
padding: 8px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
button {
|
|
background: #0066cc;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
button:hover {
|
|
background: #0052a3;
|
|
}
|
|
|
|
button:disabled {
|
|
background: #ccc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.test-category {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.test-category h2 {
|
|
color: #333;
|
|
margin-bottom: 15px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid #eee;
|
|
}
|
|
|
|
.test-case {
|
|
padding: 15px;
|
|
margin-bottom: 10px;
|
|
border-radius: 6px;
|
|
border-left: 4px solid #ddd;
|
|
background: #f9f9f9;
|
|
}
|
|
|
|
.test-case.running {
|
|
border-left-color: #ffa500;
|
|
background: #fff8e6;
|
|
}
|
|
|
|
.test-case.pass {
|
|
border-left-color: #28a745;
|
|
background: #e8f5e9;
|
|
}
|
|
|
|
.test-case.fail {
|
|
border-left-color: #dc3545;
|
|
background: #ffebee;
|
|
}
|
|
|
|
.test-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.test-header:hover {
|
|
background: rgba(0, 0, 0, 0.02);
|
|
margin: -5px;
|
|
padding: 5px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.toggle-icon {
|
|
font-size: 12px;
|
|
margin-right: 8px;
|
|
transition: transform 0.2s;
|
|
display: inline-block;
|
|
}
|
|
|
|
.toggle-icon.expanded {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.test-content {
|
|
display: none;
|
|
}
|
|
|
|
.test-content.expanded {
|
|
display: block;
|
|
}
|
|
|
|
.test-name {
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.test-status {
|
|
padding: 4px 12px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.test-status.pending {
|
|
background: #e0e0e0;
|
|
color: #666;
|
|
}
|
|
|
|
.test-status.running {
|
|
background: #ffa500;
|
|
color: white;
|
|
}
|
|
|
|
.test-status.pass {
|
|
background: #28a745;
|
|
color: white;
|
|
}
|
|
|
|
.test-status.fail {
|
|
background: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
.test-details {
|
|
font-size: 13px;
|
|
color: #666;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.test-result {
|
|
font-size: 13px;
|
|
margin-top: 8px;
|
|
padding: 10px;
|
|
background: white;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.expected-section {
|
|
margin-top: 8px;
|
|
padding: 8px;
|
|
background: #f0f7ff;
|
|
border-left: 3px solid #2196f3;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.expected-label {
|
|
font-weight: bold;
|
|
color: #1976d2;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.field-check {
|
|
margin: 2px 0;
|
|
padding-left: 16px;
|
|
}
|
|
|
|
.field-check.pass {
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.field-check.fail {
|
|
color: #c62828;
|
|
}
|
|
|
|
.test-error {
|
|
font-size: 13px;
|
|
margin-top: 8px;
|
|
padding: 10px;
|
|
background: #fff5f5;
|
|
border: 1px solid #ffcdd2;
|
|
border-radius: 4px;
|
|
color: #c62828;
|
|
font-family: monospace;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.response-status {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.status-2xx {
|
|
background: #c8e6c9;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.status-3xx {
|
|
background: #fff9c4;
|
|
color: #f57f17;
|
|
}
|
|
|
|
.status-4xx {
|
|
background: #ffccbc;
|
|
color: #d84315;
|
|
}
|
|
|
|
.status-5xx {
|
|
background: #ffcdd2;
|
|
color: #c62828;
|
|
}
|
|
|
|
.summary {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.summary-item {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 15px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.summary-item.total {
|
|
background: #e3f2fd;
|
|
}
|
|
|
|
.summary-item.pass {
|
|
background: #e8f5e9;
|
|
}
|
|
|
|
.summary-item.fail {
|
|
background: #ffebee;
|
|
}
|
|
|
|
.summary-value {
|
|
font-size: 32px;
|
|
font-weight: bold;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.summary-label {
|
|
font-size: 14px;
|
|
color: #666;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
}
|