@@ -14,7 +14,7 @@ class NAOUITests: XCTestCase {
14
14
/// Testing simple Onboarding UI
15
15
func testA1Onboarding( ) throws {
16
16
let useCase = """
17
- { " notification " :{ " retainValues " :false, " isMovable " :true, " type " : " onboarding " , " mainButton " :{ " label " : " OK " , " callToActionType " : " none " , " callToActionPayload " : " " }, " barTitle " : " IBM Notifier " , " alwaysOnTop " :false, " showSuppressionButton " :false, " hideTitleBarButtons " :false, " accessoryViews " :[], " payload " :{ " pages " :[{ " infoSection " :{ " fields " :[{ " id " : " BE8ACDC6-1159-421E-8ECA-F84B6B6785ED " , " label " : " Some Description Some " },{ " id " : " 4C045585-72C2-428B-B574-F55CF86E5DCA " , " label " : " Some Description Some " },{ " id " : " EF546A45-64CA-473D-8BEA-4BF18C3D624F " , " label " : " Some Description Some " }]}, " topIcon " : " square.and.arrow.up " , " subtitle " : " First page's subtitle " , " title " : " First page's title " , " body " : " First page's body " },{ " singleChange " :true, " infoSection " :{ " fields " :[{ " label " : " First label only " , " id " : " 031F8516-F122-4A7D-A53C-4F41C9A6C86A " },{ " id " : " 9A2DE192-E512-484E-B42B-2215C84A0B97 " , " label " : " Second label only " },{ " label " : " Third label only " , " id " : " B9F441F5-E55D-4C71-B0BC-53347A4CE6A4 " }]}, " tertiaryButton " :{ " callToActionPayload " : " https: \\ / \\ /www.google.com " , " label " : " Tertiary " , " callToActionType " : " link " }, " title " : " Second page's title " , " body " : " Second page's body " , " primaryButtonLabel " : " Some " , " subtitle " : " Second page's subtitle " },{ " title " : " Third page's title " , " body " : " Third page's body " , " singleChange " :true, " subtitle " : " Third page's subtitle " },{ " body " : " Fourth page's body " , " subtitle " : " Fourth page's subtitle " , " title " : " Fourth page's title " }], " progressBarPayload " : " automatic " }, " silent " :false, " forceLightMode " :false, " disableQuit " :false, " buttonless " :false, " hideTitleBar " :false, " miniaturizable " :false, " topicID " : " untracked " , " notificationID " : " untracked " }, " settings " :{ " isVerboseModeEnabled " :false, " environment " : " prod " }}
17
+ { " notification " :{ " retainValues " :false, " isMovable " :true, " type " : " onboarding " , " mainButton " :{ " label " : " OK " , " callToActionType " : " none " , " callToActionPayload " : " " }, " barTitle " : " IBM Notifier " , " alwaysOnTop " :false, " showSuppressionButton " :false, " hideTitleBarButtons " :false, " accessoryViews " :[], " payload " :{ " outputFile " : " custom.plist " , " pages " :[{ " infoSection " :{ " fields " :[{ " id " : " BE8ACDC6-1159-421E-8ECA-F84B6B6785ED " , " label " : " Some Description Some " },{ " id " : " 4C045585-72C2-428B-B574-F55CF86E5DCA " , " label " : " Some Description Some " },{ " id " : " EF546A45-64CA-473D-8BEA-4BF18C3D624F " , " label " : " Some Description Some " }]}, " topIcon " : " square.and.arrow.up " , " subtitle " : " First page's subtitle " , " title " : " First page's title " , " body " : " First page's body " },{ " singleChange " :true, " infoSection " :{ " fields " :[{ " label " : " First label only " , " id " : " 031F8516-F122-4A7D-A53C-4F41C9A6C86A " },{ " id " : " 9A2DE192-E512-484E-B42B-2215C84A0B97 " , " label " : " Second label only " },{ " label " : " Third label only " , " id " : " B9F441F5-E55D-4C71-B0BC-53347A4CE6A4 " }]}, " tertiaryButton " :{ " callToActionPayload " : " https: \\ / \\ /www.google.com " , " label " : " Tertiary " , " callToActionType " : " link " }, " title " : " Second page's title " , " body " : " Second page's body " , " primaryButtonLabel " : " Some " , " subtitle " : " Second page's subtitle " },{ " title " : " Third page's title " , " body " : " Third page's body " , " singleChange " :true, " subtitle " : " Third page's subtitle " },{ " body " : " Fourth page's body " , " subtitle " : " Fourth page's subtitle " , " title " : " Fourth page's title " }], " progressBarPayload " : " automatic " }, " silent " :false, " forceLightMode " :false, " disableQuit " :false, " buttonless " :false, " hideTitleBar " :false, " miniaturizable " :false, " topicID " : " untracked " , " notificationID " : " untracked " }, " settings " :{ " isVerboseModeEnabled " :false, " environment " : " prod " }}
18
18
""" // pragma: allowlist-secret
19
19
if let useCaseData = useCase. data ( using: . utf8) {
20
20
let app = XCUIApplication ( )
@@ -54,7 +54,7 @@ class NAOUITests: XCTestCase {
54
54
/// Testing simple Onboarding UI with accessory views.
55
55
func testA2Onboarding( ) throws {
56
56
let useCase = """
57
- { " notification " :{ " retainValues " :false, " isMovable " :true, " type " : " onboarding " , " mainButton " :{ " label " : " OK " , " callToActionType " : " none " , " callToActionPayload " : " " }, " barTitle " : " IBM Notifier " , " alwaysOnTop " :false, " showSuppressionButton " :false, " hideTitleBarButtons " :false, " accessoryViews " :[], " payload " :{ " pages " :[{ " accessoryViews " :[[{ " type " : " image " , " payload " : " https://compote.slate.com/images/697b023b-64a5-49a0-8059-27b963453fb1.gif?crop=780%2C520%2Cx0%2Cy0&width=2200 " },{ " type " : " image " , " payload " : " https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885_1280.jpg " }]], " infoSection " :{ " fields " :[{ " id " : " BE8ACDC6-1159-421E-8ECA-F84B6B6785ED " , " label " : " Some Description Some " },{ " id " : " 4C045585-72C2-428B-B574-F55CF86E5DCA " , " label " : " Some Description Some " },{ " id " : " EF546A45-64CA-473D-8BEA-4BF18C3D624F " , " label " : " Some Description Some " }]}, " topIcon " : " square.and.arrow.up " , " subtitle " : " First page's subtitle " , " title " : " First page's title " , " body " : " First page's body " },{ " singleChange " :true, " infoSection " :{ " fields " :[{ " label " : " First label only " , " id " : " 031F8516-F122-4A7D-A53C-4F41C9A6C86A " },{ " id " : " 9A2DE192-E512-484E-B42B-2215C84A0B97 " , " label " : " Second label only " },{ " label " : " Third label only " , " id " : " B9F441F5-E55D-4C71-B0BC-53347A4CE6A4 " }]}, " tertiaryButton " :{ " callToActionPayload " : " https: \\ / \\ /www.google.com " , " label " : " Tertiary " , " callToActionType " : " link " }, " title " : " Second page's title " , " body " : " Second page's body " , " primaryButtonLabel " : " Some " , " subtitle " : " Second page's subtitle " },{ " title " : " Third page's title " , " body " : " Third page's body " , " singleChange " :true, " subtitle " : " Third page's subtitle " },{ " body " : " Fourth page's body " , " subtitle " : " Fourth page's subtitle " , " title " : " Fourth page's title " }], " progressBarPayload " : " automatic " }, " silent " :false, " forceLightMode " :false, " disableQuit " :false, " buttonless " :false, " hideTitleBar " :false, " miniaturizable " :false, " topicID " : " untracked " , " notificationID " : " untracked " }, " settings " :{ " isVerboseModeEnabled " :false, " environment " : " prod " }}
57
+ { " notification " :{ " retainValues " :false, " isMovable " :true, " type " : " onboarding " , " mainButton " :{ " label " : " OK " , " callToActionType " : " none " , " callToActionPayload " : " " }, " barTitle " : " IBM Notifier " , " alwaysOnTop " :false, " showSuppressionButton " :false, " hideTitleBarButtons " :false, " accessoryViews " :[], " payload " :{ " outputFile " : " custom.plist " , " pages " :[{ " accessoryViews " :[[{ " type " : " image " , " payload " : " https://compote.slate.com/images/697b023b-64a5-49a0-8059-27b963453fb1.gif?crop=780%2C520%2Cx0%2Cy0&width=2200 " },{ " type " : " image " , " payload " : " https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885_1280.jpg " }]], " infoSection " :{ " fields " :[{ " id " : " BE8ACDC6-1159-421E-8ECA-F84B6B6785ED " , " label " : " Some Description Some " },{ " id " : " 4C045585-72C2-428B-B574-F55CF86E5DCA " , " label " : " Some Description Some " },{ " id " : " EF546A45-64CA-473D-8BEA-4BF18C3D624F " , " label " : " Some Description Some " }]}, " topIcon " : " square.and.arrow.up " , " subtitle " : " First page's subtitle " , " title " : " First page's title " , " body " : " First page's body " },{ " singleChange " :true, " infoSection " :{ " fields " :[{ " label " : " First label only " , " id " : " 031F8516-F122-4A7D-A53C-4F41C9A6C86A " },{ " id " : " 9A2DE192-E512-484E-B42B-2215C84A0B97 " , " label " : " Second label only " },{ " label " : " Third label only " , " id " : " B9F441F5-E55D-4C71-B0BC-53347A4CE6A4 " }]}, " tertiaryButton " :{ " callToActionPayload " : " https: \\ / \\ /www.google.com " , " label " : " Tertiary " , " callToActionType " : " link " }, " title " : " Second page's title " , " body " : " Second page's body " , " primaryButtonLabel " : " Some " , " subtitle " : " Second page's subtitle " },{ " title " : " Third page's title " , " body " : " Third page's body " , " singleChange " :true, " subtitle " : " Third page's subtitle " },{ " body " : " Fourth page's body " , " subtitle " : " Fourth page's subtitle " , " title " : " Fourth page's title " }], " progressBarPayload " : " automatic " }, " silent " :false, " forceLightMode " :false, " disableQuit " :false, " buttonless " :false, " hideTitleBar " :false, " miniaturizable " :false, " topicID " : " untracked " , " notificationID " : " untracked " }, " settings " :{ " isVerboseModeEnabled " :false, " environment " : " prod " }}
58
58
""" // pragma: allowlist-secret
59
59
if let useCaseData = useCase. data ( using: . utf8) {
60
60
let app = XCUIApplication ( )
0 commit comments