@@ -1274,6 +1274,7 @@ final class FormViewTests: XCTestCase {
1274
1274
let collapsedGroup = app. disclosureTriangles [ " Group with Multiple Form Elements 2 " ]
1275
1275
let expandedGroupFirstElement = app. staticTexts [ " MultiLine Text " ]
1276
1276
let expandedGroup = app. disclosureTriangles [ " Group with Multiple Form Elements " ]
1277
+ let expandedGroupDescription = app. staticTexts [ " Group with Multiple Form Elements Description " ]
1277
1278
let formTitle = app. staticTexts [ " group_formelement_UI_not_editable " ]
1278
1279
let formViewTestsButton = app. buttons [ " FormView Tests " ]
1279
1280
@@ -1295,6 +1296,16 @@ final class FormViewTests: XCTestCase {
1295
1296
" The first group header doesn't exist. "
1296
1297
)
1297
1298
1299
+ XCTAssertTrue (
1300
+ expandedGroupDescription. exists,
1301
+ " The expanded group's description doesn't exist. "
1302
+ )
1303
+
1304
+ XCTAssertEqual (
1305
+ expandedGroupDescription. label,
1306
+ " This Group is 'Expand initial state' \n This group is Visible "
1307
+ )
1308
+
1298
1309
// Confirm the first element of the expanded group exists.
1299
1310
XCTAssertTrue (
1300
1311
expandedGroupFirstElement. exists,
@@ -1320,6 +1331,7 @@ final class FormViewTests: XCTestCase {
1320
1331
let formViewTestsButton = app. buttons [ " FormView Tests " ]
1321
1332
let showElementsButton = app. buttons [ " show invisible form element " ]
1322
1333
let hiddenElementsGroup = app. disclosureTriangles [ " Group with children that are visible dependent " ]
1334
+ let hiddenElementsGroupDescription = app. staticTexts [ " Group with children that are visible dependent Description " ]
1323
1335
let groupElement = app. staticTexts [ " single line text 3 " ]
1324
1336
1325
1337
app. launch ( )
@@ -1340,6 +1352,16 @@ final class FormViewTests: XCTestCase {
1340
1352
" The group header doesn't exist. "
1341
1353
)
1342
1354
1355
+ XCTAssertTrue (
1356
+ hiddenElementsGroupDescription. exists,
1357
+ " The expanded group's description doesn't exist. "
1358
+ )
1359
+
1360
+ XCTAssertEqual (
1361
+ hiddenElementsGroupDescription. label,
1362
+ " The Form Elements in this group need the Radio button \" show invisible form elements \" to be selected, if you want to see them "
1363
+ )
1364
+
1343
1365
// Confirm the first element of the conditional group doesn't exist.
1344
1366
XCTAssertFalse (
1345
1367
groupElement. exists,
0 commit comments