8
8
import { testDataSet , setTimeFilter , jaegerTestDataSet } from '../../utils/constants' ;
9
9
import { suppressResizeObserverIssue } from '../../utils/constants' ;
10
10
11
- suppressResizeObserverIssue ( ) ; //needs to be in file once
11
+ suppressResizeObserverIssue ( ) ; //needs to be in file once
12
12
13
13
describe ( 'Dump test data' , ( ) => {
14
14
it ( 'Indexes test data' , ( ) => {
@@ -102,8 +102,8 @@ describe('Testing dashboard table', () => {
102
102
} ) ;
103
103
104
104
it ( 'Adds the percentile filters' , ( ) => {
105
-
106
105
cy . get ( '[data-test-subj="dashboardTable"]' ) . should ( 'be.visible' ) ;
106
+ cy . contains ( 'client_create_order' ) . should ( 'exist' ) ;
107
107
cy . get ( '[data-test-subj="dashboard-table-percentile-button-2"]' ) . click ( ) ;
108
108
109
109
cy . contains ( 'Latency percentile within trace group: >= 95th' ) . should ( 'exist' ) ;
@@ -171,7 +171,7 @@ describe('Testing plots', () => {
171
171
} ) ;
172
172
} ) ;
173
173
174
- describe ( 'Latency by trace group table' , ( ) => {
174
+ describe ( 'Latency by trace group table' , ( ) => {
175
175
beforeEach ( ( ) => {
176
176
cy . visit ( 'app/observability-traces#/' , {
177
177
onBeforeLoad : ( win ) => {
@@ -191,35 +191,59 @@ describe('Latency by trace group table', () =>{
191
191
cy . get ( '[data-test-subj="tableHeaderCell_dashboard_error_rate_4"]' ) . should ( 'exist' ) ;
192
192
cy . get ( '[data-test-subj="tableHeaderCell_dashboard_traces_5"]' ) . should ( 'exist' ) ;
193
193
cy . get ( '[data-test-subj="tablePaginationPopoverButton"]' ) . eq ( 1 ) . click ( ) ;
194
- cy . get ( '.euiIcon.euiIcon--medium.euiIcon--inherit.euiContextMenu__icon' ) . eq ( 0 ) . should ( 'exist' ) . click ( ) ;
194
+ cy . get ( '.euiIcon.euiIcon--medium.euiIcon--inherit.euiContextMenu__icon' )
195
+ . eq ( 0 )
196
+ . should ( 'exist' )
197
+ . click ( ) ;
195
198
cy . get ( '[data-test-subj="pagination-button-next"]' ) . eq ( 1 ) . should ( 'exist' ) . click ( ) ;
196
- cy . get ( 'button[data-test-subj="dashboard-table-trace-group-name-button"]' ) . contains ( 'mysql' ) . should ( 'exist' ) ;
199
+ cy . get ( 'button[data-test-subj="dashboard-table-trace-group-name-button"]' )
200
+ . contains ( 'mysql' )
201
+ . should ( 'exist' ) ;
197
202
} ) ;
198
203
199
204
it ( 'Sorts the Latency by trace group table' , ( ) => {
200
205
cy . get ( 'span[title*="Trace group name"]' ) . click ( ) ;
201
- cy . get ( '[data-test-subj="dashboard-table-trace-group-name-button"]' ) . eq ( 0 ) . contains ( '/**' ) . should ( 'exist' ) ;
206
+ cy . get ( '[data-test-subj="dashboard-table-trace-group-name-button"]' )
207
+ . eq ( 0 )
208
+ . contains ( '/**' )
209
+ . should ( 'exist' ) ;
202
210
} ) ;
203
211
204
212
it ( 'Verify tooltips in Latency by trace group table' , ( ) => {
205
213
cy . get ( '.euiIcon.euiIcon--small.euiIcon--subdued.eui-alignTop' ) . eq ( 0 ) . trigger ( 'mouseover' ) ;
206
- cy . contains ( 'Traces of all requests that share a common API and operation at the start of distributed tracing instrumentation.' ) . should ( 'be.visible' ) ;
214
+ cy . contains (
215
+ 'Traces of all requests that share a common API and operation at the start of distributed tracing instrumentation.'
216
+ ) . should ( 'be.visible' ) ;
207
217
cy . get ( '.euiIcon.euiIcon--small.euiIcon--subdued.eui-alignTop' ) . eq ( 1 ) . trigger ( 'mouseover' ) ;
208
- cy . contains ( 'Range of latencies for traces within a trace group in the selected time range.' ) . should ( 'be.visible' ) ;
218
+ cy . contains (
219
+ 'Range of latencies for traces within a trace group in the selected time range.'
220
+ ) . should ( 'be.visible' ) ;
209
221
cy . get ( '.euiIcon.euiIcon--small.euiIcon--subdued.eui-alignTop' ) . eq ( 2 ) . trigger ( 'mouseover' ) ;
210
- cy . contains ( 'Average latency of traces within a trace group in the selected time range.' ) . should ( 'be.visible' ) ;
222
+ cy . contains (
223
+ 'Average latency of traces within a trace group in the selected time range.'
224
+ ) . should ( 'be.visible' ) ;
211
225
cy . get ( '.euiIcon.euiIcon--small.euiIcon--subdued.eui-alignTop' ) . eq ( 3 ) . trigger ( 'mouseover' ) ;
212
- cy . contains ( '24 hour time series view of hourly average, hourly percentile, and hourly range of latency for traces within a trace group.' ) . should ( 'be.visible' ) ;
226
+ cy . contains (
227
+ '24 hour time series view of hourly average, hourly percentile, and hourly range of latency for traces within a trace group.'
228
+ ) . should ( 'be.visible' ) ;
213
229
cy . get ( '.euiIcon.euiIcon--small.euiIcon--subdued.eui-alignTop' ) . eq ( 4 ) . trigger ( 'mouseover' ) ;
214
- cy . contains ( 'Error rate based on count of trace errors within a trace group in the selected time range.' ) . should ( 'be.visible' ) ;
230
+ cy . contains (
231
+ 'Error rate based on count of trace errors within a trace group in the selected time range.'
232
+ ) . should ( 'be.visible' ) ;
215
233
cy . get ( '.euiIcon.euiIcon--small.euiIcon--subdued.eui-alignTop' ) . eq ( 5 ) . trigger ( 'mouseover' ) ;
216
- cy . contains ( 'Count of traces with unique trace identifiers in the selected time range.' ) . should ( 'be.visible' ) ;
234
+ cy . contains ( 'Count of traces with unique trace identifiers in the selected time range.' ) . should (
235
+ 'be.visible'
236
+ ) ;
217
237
} ) ;
218
238
219
239
it ( 'Verify Search engine on Trace dashboard' , ( ) => {
220
240
cy . get ( '.euiFieldSearch.euiFieldSearch--fullWidth' ) . click ( ) . type ( 'client_pay_order' ) ;
221
241
cy . get ( '[data-test-subj="superDatePickerApplyTimeButton"]' ) . click ( ) ;
222
- cy . get ( '.euiTableCellContent.euiTableCellContent--alignRight.euiTableCellContent--overflowingContent' ) . contains ( '211.04' ) . should ( 'exist' ) ;
242
+ cy . get (
243
+ '.euiTableCellContent.euiTableCellContent--alignRight.euiTableCellContent--overflowingContent'
244
+ )
245
+ . contains ( '211.04' )
246
+ . should ( 'exist' ) ;
223
247
cy . get ( 'button[data-test-subj="dashboard-table-trace-group-name-button"]' ) . eq ( 0 ) . click ( ) ;
224
248
cy . get ( '.euiBadge.euiBadge--hollow.euiBadge--iconRight.globalFilterItem' ) . click ( ) ;
225
249
cy . get ( '.euiIcon.euiIcon--medium.euiContextMenu__arrow' ) . click ( ) ;
@@ -232,14 +256,16 @@ describe('Latency by trace group table', () =>{
232
256
cy . get ( '.euiContextMenuItem__text' ) . eq ( 1 ) . contains ( 'Include results' ) . click ( ) ;
233
257
cy . get ( '.euiBadge.euiBadge--hollow.euiBadge--iconRight.globalFilterItem' ) . click ( ) ;
234
258
cy . get ( '.euiContextMenuItem__text' ) . eq ( 2 ) . contains ( 'Temporarily disable' ) . click ( ) ;
235
- cy . get ( '.euiBadge.euiBadge--iconRight.globalFilterItem.globalFilterItem-isDisabled' ) . should ( 'exist' ) . click ( ) ;
259
+ cy . get ( '.euiBadge.euiBadge--iconRight.globalFilterItem.globalFilterItem-isDisabled' )
260
+ . should ( 'exist' )
261
+ . click ( ) ;
236
262
cy . get ( '.euiContextMenuItem__text' ) . eq ( 2 ) . contains ( 'Re-enable' ) . click ( ) ;
237
263
cy . get ( '.euiBadge.euiBadge--hollow.euiBadge--iconRight.globalFilterItem' ) . click ( ) ;
238
264
cy . get ( '.euiContextMenuItem__text' ) . eq ( 3 ) . contains ( 'Delete' ) . click ( ) ;
239
265
} ) ;
240
266
} ) ;
241
267
242
- describe ( 'Testing filters on trace analytics page' , { scrollBehavior : false } , ( ) => {
268
+ describe ( 'Testing filters on trace analytics page' , { scrollBehavior : false } , ( ) => {
243
269
beforeEach ( ( ) => {
244
270
cy . visit ( 'app/observability-traces#/' , {
245
271
onBeforeLoad : ( win ) => {
@@ -249,15 +275,15 @@ describe('Testing filters on trace analytics page', { scrollBehavior: false }, (
249
275
setTimeFilter ( ) ;
250
276
} ) ;
251
277
252
- it ( 'Verify Change all filters' , ( ) => {
278
+ it ( 'Verify Change all filters' , ( ) => {
253
279
cy . get ( '[data-test-subj="global-filter-button"]' ) . click ( ) ;
254
280
cy . get ( '.euiContextMenuPanelTitle' ) . contains ( 'Change all filters' ) . should ( 'exist' ) ;
255
281
cy . get ( '.euiContextMenuItem__text' ) . eq ( 1 ) . contains ( 'Enable all' ) ;
256
282
cy . get ( '.euiContextMenuItem__text' ) . eq ( 2 ) . contains ( 'Disable all' ) ;
257
283
cy . get ( '.euiContextMenuItem__text' ) . eq ( 3 ) . contains ( 'Invert inclusion' ) ;
258
284
cy . get ( '.euiContextMenuItem__text' ) . eq ( 4 ) . contains ( 'Invert enabled/disabled' ) ;
259
285
cy . get ( '.euiContextMenuItem__text' ) . eq ( 5 ) . contains ( 'Remove all' ) ;
260
- } )
286
+ } ) ;
261
287
262
288
it ( 'Verify Add filter section' , ( ) => {
263
289
cy . get ( '[data-test-subj="global-filter-button"]' ) . click ( ) ;
@@ -271,7 +297,7 @@ describe('Testing filters on trace analytics page', { scrollBehavior: false }, (
271
297
cy . get ( '.euiIcon.euiIcon--medium.euiContextMenu__arrow' ) . click ( ) ;
272
298
cy . get ( '[data-test-subj="filter-popover-cancel-button"]' ) . contains ( 'Cancel' ) . click ( ) ;
273
299
cy . get ( '.euiIcon.euiIcon--small.euiIcon--inherit.euiBadge__icon' ) . click ( ) ;
274
- } )
300
+ } ) ;
275
301
} ) ;
276
302
277
303
describe ( 'Dump jaeger test data' , ( ) => {
@@ -360,9 +386,9 @@ describe('Testing switch mode to jaeger', () => {
360
386
cy . get ( '[data-test-subj="dashboard-table-traces-button"]' ) . contains ( '7' ) . click ( ) ;
361
387
362
388
cy . contains ( ' (7)' ) . should ( 'exist' ) ;
363
- cy . get ( "[data-test-subj='filterBadge']" ) . eq ( 0 ) . contains ( 'process.serviceName: redis' )
364
- cy . get ( "[data-test-subj='filterBadge']" ) . eq ( 1 ) . contains ( 'operationName: GetDriver' ) ;
365
- } )
389
+ cy . get ( "[data-test-subj='filterBadge']" ) . eq ( 0 ) . contains ( 'process.serviceName: redis' ) ;
390
+ cy . get ( "[data-test-subj='filterBadge']" ) . eq ( 1 ) . contains ( 'operationName: GetDriver' ) ;
391
+ } ) ;
366
392
367
393
it ( 'Switches to throughput mode and verifies columns and data' , ( ) => {
368
394
cy . get ( "[data-test-subj='throughput-toggle']" ) . click ( ) ;
@@ -375,4 +401,4 @@ describe('Testing switch mode to jaeger', () => {
375
401
cy . contains ( 'Error rate' ) . should ( 'exist' ) ;
376
402
cy . contains ( 'Traces' ) . should ( 'exist' ) ;
377
403
} ) ;
378
- } ) ;
404
+ } ) ;
0 commit comments