@@ -124,7 +124,9 @@ test.describe('Search', { tag: '@search' }, () => {
124
124
} ) => {
125
125
await test . step ( 'Setup and perform search' , async ( ) => {
126
126
const searchInput = page . locator ( '[data-testid="search-input"]' ) ;
127
- await searchInput . fill ( 'Order' ) ;
127
+ await searchInput . fill (
128
+ 'ResourceAttributes.k8s.pod.name:* ResourceAttributes.k8s.node.name:* ' ,
129
+ ) ;
128
130
129
131
const searchSubmitButton = page . locator (
130
132
'[data-testid="search-submit-button"]' ,
@@ -175,7 +177,51 @@ test.describe('Search', { tag: '@search' }, () => {
175
177
await page . waitForTimeout ( 500 ) ;
176
178
await expect ( tab . locator ) . toBeVisible ( ) ;
177
179
}
178
- await page . keyboard . press ( 'Escape' ) ;
180
+ } ) ;
181
+
182
+ await test . step ( 'Verify infrastructure tab content' , async ( ) => {
183
+ const infrastructureTab = page . locator (
184
+ '[data-testid="tab-infrastructure"]' ,
185
+ ) ;
186
+ await infrastructureTab . click ( ) ;
187
+ await infrastructureTab . scrollIntoViewIfNeeded ( ) ;
188
+ await page . waitForTimeout ( 1000 ) ;
189
+
190
+ const podSubpanel = page . getByTestId ( 'infra-subpanel-k8s.pod.' ) ;
191
+ await expect ( podSubpanel ) . toBeVisible ( ) ;
192
+
193
+ const podCpuUsageData = podSubpanel
194
+ . getByTestId ( 'cpu-usage-card' )
195
+ . locator ( '.recharts-responsive-container' ) ;
196
+ await expect ( podCpuUsageData ) . toBeVisible ( ) ;
197
+
198
+ const podMemoryUsageData = podSubpanel
199
+ . getByTestId ( 'memory-usage-card' )
200
+ . locator ( '.recharts-responsive-container' ) ;
201
+ await expect ( podMemoryUsageData ) . toBeVisible ( ) ;
202
+
203
+ const podDiskUsageData = podSubpanel
204
+ . getByTestId ( 'disk-usage-card' )
205
+ . locator ( '.recharts-responsive-container' ) ;
206
+ await expect ( podDiskUsageData ) . toBeVisible ( ) ;
207
+
208
+ const nodeSubpanel = page . getByTestId ( 'infra-subpanel-k8s.node.' ) ;
209
+ await expect ( nodeSubpanel ) . toBeVisible ( ) ;
210
+
211
+ const nodeCpuUsageData = nodeSubpanel
212
+ . getByTestId ( 'cpu-usage-card' )
213
+ . locator ( '.recharts-responsive-container' ) ;
214
+ await expect ( nodeCpuUsageData ) . toBeVisible ( ) ;
215
+
216
+ const nodeMemoryUsageData = nodeSubpanel
217
+ . getByTestId ( 'memory-usage-card' )
218
+ . locator ( '.recharts-responsive-container' ) ;
219
+ await expect ( nodeMemoryUsageData ) . toBeVisible ( ) ;
220
+
221
+ const nodeDiskUsageData = nodeSubpanel
222
+ . getByTestId ( 'disk-usage-card' )
223
+ . locator ( '.recharts-responsive-container' ) ;
224
+ await expect ( nodeDiskUsageData ) . toBeVisible ( ) ;
179
225
} ) ;
180
226
} ) ;
181
227
0 commit comments