Skip to content

feat: Add Push Primer feature using Custom Json (RMCCX-6702) #379

feat: Add Push Primer feature using Custom Json (RMCCX-6702)

feat: Add Push Primer feature using Custom Json (RMCCX-6702) #379

Triggered via pull request August 1, 2024 11:01
@SoumenRautraySoumenRautray
synchronize #322
Status Success
Total duration 16m 23s
Artifacts

test.yml

on: pull_request_target
Fit to window
Zoom out
Zoom in

Annotations

50 errors and 4 warnings
Assertion Failure: Tests/Tests/CampaignsValidatorSpec.swift#L34
expected to contain <Campaign(data: RInAppMessaging.CampaignData(campaignId: "test", maxImpressions: 1, type: RInAppMessaging.CampaignDisplayType.modal, triggers: Optional([RInAppMessaging.Trigger(type: RInAppMessaging.CampaignTriggerType.event, eventType: RInAppMessaging.EventType.loginSuccessful, eventName: "login", attributes: [])]), isTest: true, infiniteImpressions: false, hasNoEndDate: false, isCampaignDismissable: true, messagePayload: RInAppMessaging.MessagePayload(title: "testTitle", messageBody: Optional("testBody"), header: Optional("testHeader"), titleColor: "#000000", headerColor: "#444444", messageBodyColor: "#FAFAFA", backgroundColor: "#FAFAFA", frameColor: "#FF2222", resource: RInAppMessaging.Resource(imageUrl: nil, cropType: RInAppMessaging.CampaignCropType.fill), messageSettings: RInAppMessaging.MessageSettings(displaySettings: RInAppMessaging.DisplaySettings(orientation: RInAppMessaging.CampaignOrientation.portrait, slideFrom: Optional(RInAppMessaging.SlideDirection.bottom), endTimeMilliseconds: 0, textAlign: RInAppMessaging.CampaignTextAlignType.fill, optOut: false, html: false, delay: 0), controlSettings: RInAppMessaging.ControlSettings(buttons: [], content: nil))), customJson: nil), tooltipData: nil, impressionsLeft: 1, isOptedOut: false)>, got <[]>
Assertion Failure: Tests/Tests/CampaignsValidatorSpec.swift#L54
expected to elementsEqual <[Element(campaign: RInAppMessaging.Campaign(data: RInAppMessaging.CampaignData(campaignId: "test", maxImpressions: 2, type: RInAppMessaging.CampaignDisplayType.modal, triggers: Optional([RInAppMessaging.Trigger(type: RInAppMessaging.CampaignTriggerType.event, eventType: RInAppMessaging.EventType.loginSuccessful, eventName: "login", attributes: [])]), isTest: false, infiniteImpressions: false, hasNoEndDate: false, isCampaignDismissable: true, messagePayload: RInAppMessaging.MessagePayload(title: "testTitle", messageBody: Optional("testBody"), header: Optional("testHeader"), titleColor: "#000000", headerColor: "#444444", messageBodyColor: "#FAFAFA", backgroundColor: "#FAFAFA", frameColor: "#FF2222", resource: RInAppMessaging.Resource(imageUrl: nil, cropType: RInAppMessaging.CampaignCropType.fill), messageSettings: RInAppMessaging.MessageSettings(displaySettings: RInAppMessaging.DisplaySettings(orientation: RInAppMessaging.CampaignOrientation.portrait, slideFrom: Optional(RInAppMessaging.SlideDirection.bottom), endTimeMilliseconds: 9223372036854775807, textAlign: RInAppMessaging.CampaignTextAlignType.fill, optOut: false, html: false, delay: 0), controlSettings: RInAppMessaging.ControlSettings(buttons: [], content: nil))), customJson: nil), tooltipData: nil, impressionsLeft: 2, isOptedOut: false), events: Set([<RInAppMessaging.LoginSuccessfulEvent: 0x600002ac0600>]))]>, got <[]>
Assertion Failure: Tests/Tests/CampaignsValidatorSpec.swift#L63
expected to elementsEqual <[Element(campaign: RInAppMessaging.Campaign(data: RInAppMessaging.CampaignData(campaignId: "test", maxImpressions: 2, type: RInAppMessaging.CampaignDisplayType.modal, triggers: Optional([RInAppMessaging.Trigger(type: RInAppMessaging.CampaignTriggerType.event, eventType: RInAppMessaging.EventType.loginSuccessful, eventName: "login", attributes: [])]), isTest: true, infiniteImpressions: false, hasNoEndDate: false, isCampaignDismissable: true, messagePayload: RInAppMessaging.MessagePayload(title: "testTitle", messageBody: Optional("testBody"), header: Optional("testHeader"), titleColor: "#000000", headerColor: "#444444", messageBodyColor: "#FAFAFA", backgroundColor: "#FAFAFA", frameColor: "#FF2222", resource: RInAppMessaging.Resource(imageUrl: nil, cropType: RInAppMessaging.CampaignCropType.fill), messageSettings: RInAppMessaging.MessageSettings(displaySettings: RInAppMessaging.DisplaySettings(orientation: RInAppMessaging.CampaignOrientation.portrait, slideFrom: Optional(RInAppMessaging.SlideDirection.bottom), endTimeMilliseconds: 9223372036854775807, textAlign: RInAppMessaging.CampaignTextAlignType.fill, optOut: false, html: false, delay: 0), controlSettings: RInAppMessaging.ControlSettings(buttons: [], content: nil))), customJson: nil), tooltipData: nil, impressionsLeft: 2, isOptedOut: false), events: Set([<RInAppMessaging.LoginSuccessfulEvent: 0x600002ab1b00>]))]>, got <[]>
Assertion Failure: Tests/Tests/CampaignsValidatorSpec.swift#L116
expected to contain <Campaign(data: RInAppMessaging.CampaignData(campaignId: "test", maxImpressions: 2, type: RInAppMessaging.CampaignDisplayType.modal, triggers: Optional([RInAppMessaging.Trigger(type: RInAppMessaging.CampaignTriggerType.event, eventType: RInAppMessaging.EventType.loginSuccessful, eventName: "testevent", attributes: []), RInAppMessaging.Trigger(type: RInAppMessaging.CampaignTriggerType.event, eventType: RInAppMessaging.EventType.appStart, eventName: "testevent2", attributes: [])]), isTest: false, infiniteImpressions: false, hasNoEndDate: false, isCampaignDismissable: true, messagePayload: RInAppMessaging.MessagePayload(title: "testTitle", messageBody: Optional("testBody"), header: Optional("testHeader"), titleColor: "#000000", headerColor: "#444444", messageBodyColor: "#FAFAFA", backgroundColor: "#FAFAFA", frameColor: "#FF2222", resource: RInAppMessaging.Resource(imageUrl: nil, cropType: RInAppMessaging.CampaignCropType.fill), messageSettings: RInAppMessaging.MessageSettings(displaySettings: RInAppMessaging.DisplaySettings(orientation: RInAppMessaging.CampaignOrientation.portrait, slideFrom: Optional(RInAppMessaging.SlideDirection.bottom), endTimeMilliseconds: 9223372036854775807, textAlign: RInAppMessaging.CampaignTextAlignType.fill, optOut: false, html: false, delay: 0), controlSettings: RInAppMessaging.ControlSettings(buttons: [], content: nil))), customJson: nil), tooltipData: nil, impressionsLeft: 2, isOptedOut: false)>, got <[]>
Assertion Failure: Tests/Tests/CampaignsValidatorSpec.swift#L138
expected to contain <Campaign(data: RInAppMessaging.CampaignData(campaignId: "test", maxImpressions: 2, type: RInAppMessaging.CampaignDisplayType.modal, triggers: Optional([RInAppMessaging.Trigger(type: RInAppMessaging.CampaignTriggerType.event, eventType: RInAppMessaging.EventType.loginSuccessful, eventName: "testevent", attributes: []), RInAppMessaging.Trigger(type: RInAppMessaging.CampaignTriggerType.event, eventType: RInAppMessaging.EventType.appStart, eventName: "testevent2", attributes: [])]), isTest: true, infiniteImpressions: false, hasNoEndDate: false, isCampaignDismissable: true, messagePayload: RInAppMessaging.MessagePayload(title: "testTitle", messageBody: Optional("testBody"), header: Optional("testHeader"), titleColor: "#000000", headerColor: "#444444", messageBodyColor: "#FAFAFA", backgroundColor: "#FAFAFA", frameColor: "#FF2222", resource: RInAppMessaging.Resource(imageUrl: nil, cropType: RInAppMessaging.CampaignCropType.fill), messageSettings: RInAppMessaging.MessageSettings(displaySettings: RInAppMessaging.DisplaySettings(orientation: RInAppMessaging.CampaignOrientation.portrait, slideFrom: Optional(RInAppMessaging.SlideDirection.bottom), endTimeMilliseconds: 9223372036854775807, textAlign: RInAppMessaging.CampaignTextAlignType.fill, optOut: false, html: false, delay: 0), controlSettings: RInAppMessaging.ControlSettings(buttons: [], content: nil))), customJson: nil), tooltipData: nil, impressionsLeft: 2, isOptedOut: false)>, got <[]>
Assertion Failure: Tests/Tests/CampaignsValidatorSpec.swift#L223
expected to contain <Campaign(data: RInAppMessaging.CampaignData(campaignId: "test", maxImpressions: 2, type: RInAppMessaging.CampaignDisplayType.modal, triggers: Optional([RInAppMessaging.Trigger(type: RInAppMessaging.CampaignTriggerType.event, eventType: RInAppMessaging.EventType.loginSuccessful, eventName: "testevent", attributes: []), RInAppMessaging.Trigger(type: RInAppMessaging.CampaignTriggerType.event, eventType: RInAppMessaging.EventType.appStart, eventName: "testevent2", attributes: [])]), isTest: false, infiniteImpressions: false, hasNoEndDate: true, isCampaignDismissable: true, messagePayload: RInAppMessaging.MessagePayload(title: "[Tooltip] title", messageBody: Optional("{\"UIElement\" : \"view.id\", \"position\": \"top-center\", \"auto-disappear\": 0, \"redirectURL\": \"\"}"), header: Optional("testHeader"), titleColor: "color", headerColor: "color2", messageBodyColor: "color3", backgroundColor: "#ffffff", frameColor: "color5", resource: RInAppMessaging.Resource(imageUrl: Optional("file:///Users/runner/Library/Developer/CoreSimulator/Devices/F44E8083-0C48-4028-844A-F1D5597250CF/data/Containers/Bundle/Application/FEC546DD-D161-4062-B809-C48BEB3AA785/RInAppMessaging_Example.app/PlugIns/Tests.xctest/test-image.png"), cropType: RInAppMessaging.CampaignCropType.fill), messageSettings: RInAppMessaging.MessageSettings(displaySettings: RInAppMessaging.DisplaySettings(orientation: RInAppMessaging.CampaignOrientation.portrait, slideFrom: Optional(RInAppMessaging.SlideDirection.bottom), endTimeMilliseconds: 9223372036854775807, textAlign: RInAppMessaging.CampaignTextAlignType.fill, optOut: false, html: false, delay: 0), controlSettings: RInAppMessaging.ControlSettings(buttons: [], content: nil))), customJson: nil), tooltipData: Optional(RInAppMessaging.TooltipData(bodyData: RInAppMessaging.TooltipBodyData(uiElementIdentifier: "view.id", position: RInAppMessaging.TooltipBodyData.Position.topCenter, redirectURL: Optional(""), autoCloseSeconds: Optional(0)), backgroundColor: "#ffffff", imageUrl: "file:///Users/runner/Library/Developer/CoreSimulator/Devices/F44E8083-0C48-4028-844A-F1D5597250CF/data/Containers/Bundle/Application/FEC546DD-D161-4062-B809-C48BEB3AA785/RInAppMessaging_Example.app/PlugIns/Tests.xctest/test-image.png")), impressionsLeft: 2, isOptedOut: false)>, got <[]>
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L65
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L91
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L117
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L143
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L169
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L195
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L221
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L247
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L273
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L299
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L325
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L351
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L377
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L403
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L429
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L455
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L470
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L486
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/CustomEventValidationSpec.swift#L502
expected to have Array<Element> with count 1, got 0 Actual Value: []
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L275
expected to eventually find object in collection that satisfies predicate
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L282
expected to eventually find object in collection that satisfies predicate
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L297
expected to eventually find object in collection that satisfies predicate
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L486
expected to eventually not be nil, got <nil>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L494
expected to eventually not be nil, got <nil>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L512
expected to eventually equal <1>, got <0>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L519
expected to eventually not be nil, got <nil>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L521
expected to eventually equal <2>, got <0>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L529
expected to equal <2>, got <0>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L536
expected to eventually not be nil, got <nil>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L537
expected to be greater than <0>, got <0>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L546
expected to be greater than <0>, got <0>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L553
expected to eventually be greater than <0>, got <0>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L554
expected to not contain <Tooltip>, got <nil> (use beNil() to match nils)
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L574
expected to eventually equal <[Tooltip][ctx1][ctx2] title>, got <nil> (use beNil() to match nils)
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L576
expected to contain <ctx1, ctx2>, got <nil> (use beNil() to match nils)
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L585
expected to eventually not be nil, got <nil>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L592
expected to equal <1>, got <2>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L595
expected to eventually not be nil, got <nil>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L609
expected to eventually not be nil, got <nil>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L617
expected to equal <0>, got <1>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L626
expected to eventually find object in collection that satisfies predicate
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L651
expected to eventually not be nil, got <nil>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L653
expected to eventually equal <1>, got <2>
Assertion Failure: Tests/Tests/PublicAPISpec.swift#L674
expected to eventually not be nil, got <nil>
build-test
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, kishikawakatsumi/xcresulttool@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build-test
The 'summary' will be truncated because the character limit (65535) exceeded.
build-test
The 'text' will be truncated because the character limit (65535) exceeded.
build-test
Annotations that exceed the limit (50) will be truncated.