Spaces:
Building
Building
Create test.component.scss
Browse files
flare-ui/src/app/components/test/test.component.scss
ADDED
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.test-container {
|
2 |
+
h2 {
|
3 |
+
margin-bottom: 24px;
|
4 |
+
}
|
5 |
+
|
6 |
+
.test-controls {
|
7 |
+
display: flex;
|
8 |
+
gap: 12px;
|
9 |
+
margin-bottom: 24px;
|
10 |
+
|
11 |
+
button {
|
12 |
+
mat-icon {
|
13 |
+
margin-right: 4px;
|
14 |
+
}
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
.test-categories {
|
19 |
+
background: white;
|
20 |
+
border: 1px solid #e0e0e0;
|
21 |
+
border-radius: 4px;
|
22 |
+
padding: 16px;
|
23 |
+
margin-bottom: 24px;
|
24 |
+
|
25 |
+
> mat-checkbox {
|
26 |
+
margin-bottom: 16px;
|
27 |
+
display: block;
|
28 |
+
}
|
29 |
+
|
30 |
+
mat-accordion {
|
31 |
+
mat-expansion-panel {
|
32 |
+
margin-bottom: 8px;
|
33 |
+
|
34 |
+
mat-checkbox {
|
35 |
+
margin-right: 8px;
|
36 |
+
}
|
37 |
+
|
38 |
+
.category-status {
|
39 |
+
mat-chip {
|
40 |
+
font-size: 11px;
|
41 |
+
min-height: 20px;
|
42 |
+
padding: 2px 8px;
|
43 |
+
|
44 |
+
&.success-chip {
|
45 |
+
background-color: #e8f5e9;
|
46 |
+
color: #2e7d32;
|
47 |
+
}
|
48 |
+
|
49 |
+
&.error-chip {
|
50 |
+
background-color: #ffebee;
|
51 |
+
color: #c62828;
|
52 |
+
}
|
53 |
+
}
|
54 |
+
}
|
55 |
+
|
56 |
+
mat-list-item {
|
57 |
+
.status-PASS { color: #4caf50; }
|
58 |
+
.status-FAIL { color: #f44336; }
|
59 |
+
.status-RUNNING { color: #ff9800; }
|
60 |
+
.status-pending { color: #9e9e9e; }
|
61 |
+
|
62 |
+
.test-duration {
|
63 |
+
color: #666;
|
64 |
+
font-size: 12px;
|
65 |
+
}
|
66 |
+
|
67 |
+
.test-details {
|
68 |
+
color: #666;
|
69 |
+
font-size: 12px;
|
70 |
+
}
|
71 |
+
|
72 |
+
.test-error {
|
73 |
+
color: #f44336;
|
74 |
+
font-size: 12px;
|
75 |
+
}
|
76 |
+
|
77 |
+
.running-icon {
|
78 |
+
animation: spin 1s linear infinite;
|
79 |
+
}
|
80 |
+
}
|
81 |
+
}
|
82 |
+
}
|
83 |
+
}
|
84 |
+
|
85 |
+
.test-results {
|
86 |
+
background: white;
|
87 |
+
border: 1px solid #e0e0e0;
|
88 |
+
border-radius: 4px;
|
89 |
+
padding: 24px;
|
90 |
+
|
91 |
+
h3 {
|
92 |
+
margin-top: 0;
|
93 |
+
margin-bottom: 16px;
|
94 |
+
}
|
95 |
+
|
96 |
+
mat-progress-bar {
|
97 |
+
margin-bottom: 24px;
|
98 |
+
}
|
99 |
+
|
100 |
+
.test-summary {
|
101 |
+
display: flex;
|
102 |
+
gap: 32px;
|
103 |
+
justify-content: center;
|
104 |
+
margin-bottom: 16px;
|
105 |
+
|
106 |
+
.summary-item {
|
107 |
+
display: flex;
|
108 |
+
align-items: center;
|
109 |
+
gap: 8px;
|
110 |
+
|
111 |
+
mat-icon {
|
112 |
+
&.success { color: #4caf50; }
|
113 |
+
&.error { color: #f44336; }
|
114 |
+
}
|
115 |
+
|
116 |
+
span {
|
117 |
+
font-size: 16px;
|
118 |
+
font-weight: 500;
|
119 |
+
}
|
120 |
+
}
|
121 |
+
}
|
122 |
+
|
123 |
+
.current-test {
|
124 |
+
text-align: center;
|
125 |
+
color: #666;
|
126 |
+
display: flex;
|
127 |
+
align-items: center;
|
128 |
+
justify-content: center;
|
129 |
+
gap: 8px;
|
130 |
+
|
131 |
+
mat-icon {
|
132 |
+
animation: spin 1s linear infinite;
|
133 |
+
}
|
134 |
+
}
|
135 |
+
}
|
136 |
+
|
137 |
+
.empty-state {
|
138 |
+
text-align: center;
|
139 |
+
padding: 60px 20px;
|
140 |
+
background: white;
|
141 |
+
border-radius: 4px;
|
142 |
+
|
143 |
+
mat-icon {
|
144 |
+
font-size: 64px;
|
145 |
+
width: 64px;
|
146 |
+
height: 64px;
|
147 |
+
color: #e0e0e0;
|
148 |
+
margin-bottom: 16px;
|
149 |
+
}
|
150 |
+
|
151 |
+
p {
|
152 |
+
color: #666;
|
153 |
+
}
|
154 |
+
}
|
155 |
+
}
|
156 |
+
|
157 |
+
@keyframes spin {
|
158 |
+
to { transform: rotate(360deg); }
|
159 |
+
}
|