diff --git a/notification/ans_standard/publish_test/anssecondarydirectory/Test.json b/notification/ans_standard/publish_test/anssecondarydirectory/Test.json index 63109b9fd733cdbadfaa235529c69086e4a50351..bc3688d2fe3031e021a2588d05c00b949b235409 100644 --- a/notification/ans_standard/publish_test/anssecondarydirectory/Test.json +++ b/notification/ans_standard/publish_test/anssecondarydirectory/Test.json @@ -11,10 +11,7 @@ "kits": [ { "test-file-name": [ - "ActsAnsSecondaryDirectoryTest.hap", - "FaSupplement.hap", - "StageSupplement.hap", - "FormModule.hap" + "ActsAnsSecondaryDirectoryTest.hap" ], "type": "AppInstallKit", "cleanup-apps": true diff --git a/notification/ans_standard/publish_test/anssecondarydirectory/entry/src/main/ets/test/SecondaryDirectory.test.ets b/notification/ans_standard/publish_test/anssecondarydirectory/entry/src/main/ets/test/SecondaryDirectory.test.ets index b971a6f2cb33ab66ea34cec5e760eb4406119d5d..9e787b00b00db1b588366338f49a807cc66f0653 100644 --- a/notification/ans_standard/publish_test/anssecondarydirectory/entry/src/main/ets/test/SecondaryDirectory.test.ets +++ b/notification/ans_standard/publish_test/anssecondarydirectory/entry/src/main/ets/test/SecondaryDirectory.test.ets @@ -50,11 +50,14 @@ describe('secondaryDirectoryTest', function () { expect(contentType).assertEqual(notify.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT); let flags: notify.NotificationFlags = subscribeCallback.request.notificationFlags; - console.info("===>notificationFlags: ===>" + JSON.stringify(flags)); - let soundEnabled: notify.NotificationFlagStatus = flags.soundEnabled; - let vibrationEnabled: notify.NotificationFlagStatus = flags.vibrationEnabled - expect(soundEnabled).assertEqual(0); - expect(vibrationEnabled).assertEqual(0); + if (flags != undefined) + { + console.info("===>notificationFlags: ===>" + JSON.stringify(flags)); + let soundEnabled: notify.NotificationFlagStatus = flags.soundEnabled; + let vibrationEnabled: notify.NotificationFlagStatus = flags.vibrationEnabled + expect(soundEnabled).assertEqual(0); + expect(vibrationEnabled).assertEqual(0); + } } it('ACTS_SecondaryDirectory_xts_0100', 0, async function (done) {