diff --git a/notification/ans_standard/actsNotificationSecondaryDirectory/entry/src/main/ets/test/SecondaryDirectory.test.ets b/notification/ans_standard/actsNotificationSecondaryDirectory/entry/src/main/ets/test/SecondaryDirectory.test.ets index 3862491e569d498eb4205b2d820b733d5ddc478f..41bba1dee5f08f85e283118db067bb23bf2e3650 100644 --- a/notification/ans_standard/actsNotificationSecondaryDirectory/entry/src/main/ets/test/SecondaryDirectory.test.ets +++ b/notification/ans_standard/actsNotificationSecondaryDirectory/entry/src/main/ets/test/SecondaryDirectory.test.ets @@ -468,7 +468,14 @@ describe('secondaryDirectoryTest', function () { } else { notify.getSlots().then((NotificationSlot) => { console.info(`${TAG} getSlots success:` + JSON.stringify(NotificationSlot)) - expect(NotificationSlot[0].type).assertEqual(notify.SlotType.SOCIAL_COMMUNICATION) + for (let i = 0; i < NotificationSlot.length; ++i) { + console.info(`${TAG} NotificationSlot[${i}].type:` + JSON.stringify(NotificationSlot[i].type)) + if (NotificationSlot[i].type == notify.SlotType.SOCIAL_COMMUNICATION) { + done() + return + } + } + expect(false).assertTrue() done() }).catch((err) => { console.info(`${TAG} getSlots failed err: + ${err.code}`)