You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Notification Agent Core/Controllers/HelpBuilder.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ public final class HelpBuilder {
96
96
"\n The payload for the accessory view:\n"+
97
97
"- Text for "+"[ whitebox ]".red()+" view type;\n"+
98
98
"- Text for "+"[ timer ]".red()+" view type. This will be timer's label. Use \"%@\" to define timer's position inside the label. Use "+"[ -timeout ]".yellow()+" argument to define timer's duration;\n"+
99
-
"- File path/link for "+"[ image ]".red()+" view type;\n"+
99
+
"- File path/link or base64 encoded string for "+"[ image ]".red()+" view type;\n"+
100
100
"- Text with the format "+"\"/url TEXT /autoplay /delay INT\"".green()+"for "+"[ video ]".red()+" view type;\n"+
101
101
"- Text with the format "+"\"/percent DOUBLE /top_message TEXT /bottom_message TEXT /user_interaction_enabled BOOL /user_interruption_allowed BOOL\"".green()+"for "+"[ progressbar ]".red()+" view type;\n"+
102
102
"- Text with the format "+"\"/placeholder TEXT /title TEXT /value TEXT /required\"".green()+"for the "+"[ input | secureinput ]".red()+" view type;\n"+
Copy file name to clipboardExpand all lines: Notification Agent Popup UI Tests/NAPUITests.swift
+61Lines changed: 61 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1078,5 +1078,66 @@ class NAPUITests: XCTestCase {
1078
1078
XCTAssert(false,"Failed to encode the usecase.")
1079
1079
}
1080
1080
}
1081
+
1082
+
/// Testing Pop-up with:
1083
+
/// Title: This is a title
1084
+
/// Subtitle: This is a subtitle
1085
+
/// Main Button: Primary
1086
+
/// Secondary Button: Secondary
1087
+
/// Icon: Circle SFSymbol
1088
+
/// AccessoryView: image with a GIF
1089
+
func testD7Popup()throws{
1090
+
letuseCase="""
1091
+
{"notification":{"topicID":"untracked","mainButton":{"label":"Primary","callToActionType":"none","callToActionPayload":""},"secondaryButton":{"label":"Secondary","callToActionType":"none","callToActionPayload":""},"iconPath":"circle","hideTitleBarButtons":false,"retainValues":false,"alwaysOnTop":false,"type":"popup","title":"This is a title","subtitle":"This is a subtitle","silent":false,"showSuppressionButton":false,"miniaturizable":false,"barTitle":"Some","forceLightMode":false,"notificationID":"untracked","isMovable":true,"disableQuit":false,"buttonless":false, "accessoryViews":[{"type":"image","payload":"https://compote.slate.com/images/697b023b-64a5-49a0-8059-27b963453fb1.gif?crop=780%2C520%2Cx0%2Cy0&width=2200"}]},"settings":{"isVerboseModeEnabled":false,"environment":"prod"}}
{"notification":{"topicID":"untracked","mainButton":{"label":"Primary","callToActionType":"none","callToActionPayload":""},"secondaryButton":{"label":"Secondary","callToActionType":"none","callToActionPayload":""},"iconPath":"circle","hideTitleBarButtons":false,"retainValues":false,"alwaysOnTop":false,"type":"popup","title":"This is a title","subtitle":"This is a subtitle","silent":false,"showSuppressionButton":false,"miniaturizable":false,"barTitle":"Some","forceLightMode":false,"notificationID":"untracked","isMovable":true,"disableQuit":false,"buttonless":false, "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"}]},"settings":{"isVerboseModeEnabled":false,"environment":"prod"}}
0 commit comments