@@ -76,7 +76,6 @@ class DataSetTest : BaseTest() {
76
76
77
77
@Test
78
78
fun formConfigurationTestAutomate () = runTest {
79
- // Start Activity
80
79
enterDataSetStep(" DMicXfEri6s" , " Form configuration options" )
81
80
waitForTableToBeVisible()
82
81
@@ -296,7 +295,66 @@ class DataSetTest : BaseTest() {
296
295
}
297
296
}
298
297
299
- private fun checkCategoryIsMovedToRow () {
298
+ private suspend fun checkCategoryIsMovedToRow () {
299
+ val cellIdSection8 = " PGRlPlAzakpINVR1NVZDLCA8Y28+RmJMWlMzdWVXYlE6PGNvPg=="
300
+ val cellId2Section8 = " PGRlPkZRMm84VUJsY3JTLCA8Y28+RmJMWlMzdWVXYlE6PGNvPg=="
301
+ val cellIdSection16 = " PGRlPkFyUzdWeXVMOTVmLCA8Y28+RmJMWlMzdWVXYlE6PGNvPg=="
302
+ val cellId2Section16 = " PGRlPkFyUzdWeXVMOTVmLCA8Y28+Wlp4WXVvVENjRGQ6PGNvPg=="
303
+ val cellIdSection24 = " PGRlPnpnZUFkbnBTWTVLLCA8Y28+WjhhWDNBa3JETVM6PGNvPg=="
304
+ val cellId2Section24 = " PGRlPnpnZUFkbnBTWTVLLCA8Y28+c05yMXk1UXExWVE6PGNvPg=="
305
+
306
+ dataSetTableRobot(composeTestRule) {
307
+ clickOnSection(categoryToRowList[0 ].sectionIndex, categoryToRowList[0 ].sectionName)
308
+ }
309
+ tableIsVisible()
310
+ enterDataStep(
311
+ tableId = " t3aNCvHsoSn" ,
312
+ cellId = cellIdSection8,
313
+ value = " 10" ,
314
+ inputTestTag = " INPUT_NUMBER_FIELD"
315
+ )
316
+ enterDataStep(
317
+ tableId = " t3aNCvHsoSn" ,
318
+ cellId = cellId2Section8,
319
+ value = " 7" ,
320
+ inputTestTag = " INPUT_NUMBER_FIELD"
321
+ )
322
+
323
+ dataSetTableRobot(composeTestRule) {
324
+ clickOnSection(categoryToRowList[1 ].sectionIndex, categoryToRowList[1 ].sectionName)
325
+ }
326
+ tableIsVisible()
327
+ enterDataStep(
328
+ tableId = " t3aNCvHsoSn" ,
329
+ cellId = cellIdSection16,
330
+ value = " 11" ,
331
+ inputTestTag = " INPUT_NUMBER_FIELD"
332
+ )
333
+ enterDataStep(
334
+ tableId = " t3aNCvHsoSn" ,
335
+ cellId = cellId2Section16,
336
+ value = " 24" ,
337
+ inputTestTag = " INPUT_NUMBER_FIELD"
338
+ )
339
+
340
+ dataSetTableRobot(composeTestRule) {
341
+ clickOnSection(categoryToRowList[2 ].sectionIndex, categoryToRowList[2 ].sectionName)
342
+ }
343
+ tableIsVisible()
344
+
345
+ enterDataStep(
346
+ tableId = " aN8uN5b15YG_1" ,
347
+ cellId = cellIdSection24,
348
+ value = " 4" ,
349
+ inputTestTag = " INPUT_NUMBER_FIELD"
350
+ )
351
+ enterDataStep(
352
+ tableId = " aN8uN5b15YG_1" ,
353
+ cellId = cellId2Section24,
354
+ value = " 14" ,
355
+ inputTestTag = " INPUT_NUMBER_FIELD"
356
+ )
357
+
300
358
dataSetTableRobot(composeTestRule) {
301
359
categoryToRowList.forEach { data ->
302
360
clickOnSection(data.sectionIndex, data.sectionName)
@@ -346,7 +404,72 @@ class DataSetTest : BaseTest() {
346
404
}
347
405
}
348
406
349
- private fun checkAutomaticGroupingDisabled () {
407
+ private suspend fun checkAutomaticGroupingDisabled () {
408
+ val table19 = " t3aNCvHsoSn_0"
409
+ val table219 = " aN8uN5b15YG_1"
410
+ val table20 = " ck7mRNwGDjP_1"
411
+ val table220 = " ck7mRNwGDjP_3"
412
+ val table22 = " t3aNCvHsoSn_0"
413
+ val table222 = " aN8uN5b15YG_1"
414
+ val cellIdSection19 = " PGNvYz5TMzRVTE1jSE1jYTo8ZGU+Q2o1clRjOW5Fdmw="
415
+ val cellId2Section19 = " PGNvYz5ET0M3ZW1MenlSaTo8ZGU+RXpSNVkyVjBKRjk="
416
+ val cellIdSection20 = " PGRlPnlxQmtuOUNXS2loOjxjb2M+bzJneEV0NkVrMkM="
417
+ val cellId2Section20 = " PGRlPmxhWkxRZG51Y1YxOjxjb2M+bzJneEV0NkVrMkM="
418
+ val cellIdSection22 = " PGRlPndjd2JOMWpSMGFyOjxjb2M+U2RPVUkyeVQ0Nkg="
419
+ val cellId2Section22 = " PGRlPk9LajZ2VjhobVRQOjxjb2M+RE9DN2VtTHp5Umk="
420
+ dataSetTableRobot(composeTestRule) {
421
+ clickOnSection(disableAutomaticGroupingList[0 ].sectionIndex, disableAutomaticGroupingList[0 ].sectionName)
422
+ }
423
+ tableIsVisible()
424
+ enterDataStep(
425
+ tableId = table19,
426
+ cellId = cellIdSection19,
427
+ value = " 4" ,
428
+ inputTestTag = " INPUT_NUMBER_FIELD"
429
+ )
430
+ enterDataStep(
431
+ tableId = table219,
432
+ cellId = cellId2Section19,
433
+ value = " 14" ,
434
+ inputTestTag = " INPUT_NUMBER_FIELD"
435
+ )
436
+
437
+ dataSetTableRobot(composeTestRule) {
438
+ clickOnSection(disableAutomaticGroupingList[1 ].sectionIndex, disableAutomaticGroupingList[1 ].sectionName)
439
+ }
440
+ tableIsVisible()
441
+
442
+ enterDataStep(
443
+ tableId = table20,
444
+ cellId = cellIdSection20,
445
+ value = " 7" ,
446
+ inputTestTag = " INPUT_NUMBER_FIELD"
447
+ )
448
+ enterDataStep(
449
+ tableId = table220,
450
+ cellId = cellId2Section20,
451
+ value = " 11" ,
452
+ inputTestTag = " INPUT_NUMBER_FIELD"
453
+ )
454
+
455
+ dataSetTableRobot(composeTestRule) {
456
+ clickOnSection(disableAutomaticGroupingList[2 ].sectionIndex, disableAutomaticGroupingList[2 ].sectionName)
457
+ }
458
+ tableIsVisible()
459
+
460
+ enterDataStep(
461
+ tableId = table22,
462
+ cellId = cellIdSection22,
463
+ value = " 7" ,
464
+ inputTestTag = " INPUT_NUMBER_FIELD"
465
+ )
466
+ enterDataStep(
467
+ tableId = table222,
468
+ cellId = cellId2Section22,
469
+ value = " 11" ,
470
+ inputTestTag = " INPUT_NUMBER_FIELD"
471
+ )
472
+
350
473
dataSetTableRobot(composeTestRule) {
351
474
disableAutomaticGroupingList.forEach { data ->
352
475
clickOnSection(data.sectionIndex, data.sectionName)
@@ -356,7 +479,46 @@ class DataSetTest : BaseTest() {
356
479
}
357
480
}
358
481
359
- private fun checkPivotOptions () {
482
+ private suspend fun checkPivotOptions () {
483
+ val table5 = " aN8uN5b15YG"
484
+ val table13 = " UnNIOt1uB0J"
485
+ val table23 = " aN8uN5b15YG_1"
486
+ val cellIdSection5 = " PGNvYz5ET0M3ZW1MenlSaTo8ZGU+TFNKNW1LcHlFdjE="
487
+ val cellIdSection13 = " PGNvYz5wY0tqRUVscHZxZDo8ZGU+V0hCdHNDTVpWQUU="
488
+ val cellIdSection23 = " PGNvYz5SMjNoOVFaUmJSdDo8ZGU+ZElxeDdyZG5WYzk="
489
+ dataSetTableRobot(composeTestRule) {
490
+ clickOnSection(pivotTestingData[0 ].sectionIndex, pivotTestingData[0 ].sectionName)
491
+ }
492
+ tableIsVisible()
493
+ enterDataStep(
494
+ tableId = table5,
495
+ cellId = cellIdSection5,
496
+ value = " 4" ,
497
+ inputTestTag = " INPUT_NUMBER_FIELD"
498
+ )
499
+
500
+ dataSetTableRobot(composeTestRule) {
501
+ clickOnSection(pivotTestingData[1 ].sectionIndex, pivotTestingData[1 ].sectionName)
502
+ }
503
+ tableIsVisible()
504
+ enterDataStep(
505
+ tableId = table13,
506
+ cellId = cellIdSection13,
507
+ value = " 4" ,
508
+ inputTestTag = " INPUT_INTEGER_FIELD"
509
+ )
510
+
511
+ dataSetTableRobot(composeTestRule) {
512
+ clickOnSection(pivotTestingData[2 ].sectionIndex, pivotTestingData[2 ].sectionName)
513
+ }
514
+ tableIsVisible()
515
+ enterDataStep(
516
+ tableId = table23,
517
+ cellId = cellIdSection23,
518
+ value = " 15" ,
519
+ inputTestTag = " INPUT_NUMBER_FIELD"
520
+ )
521
+
360
522
dataSetTableRobot(composeTestRule) {
361
523
pivotTestingData.forEach { data ->
362
524
clickOnSection(data.sectionIndex, data.sectionName)
0 commit comments