提交 6fd268e7 编写于 作者: Z zhijianwen

--REQUEST--

Signed-off-by: Nzhijianwen <zhijianwen@huawei.com>
上级 f75c4e8d
...@@ -34,7 +34,7 @@ export default function ActsNotificationRequestTest() { ...@@ -34,7 +34,7 @@ export default function ActsNotificationRequestTest() {
await sleep(2000) await sleep(2000)
console.info(`${TAG} UiDriver start`) console.info(`${TAG} UiDriver start`)
let button = await driver.findComponent(BY.text('允许')) let button = await driver.findComponent(BY.text('允许'))
console.info(TAG + 'button is ' + JSON.stringify(button))//null console.info(`${TAG} button is ${JSON.stringify(button)}`)
await sleep(5000) await sleep(5000)
await button.click() await button.click()
} }
...@@ -59,12 +59,12 @@ export default function ActsNotificationRequestTest() { ...@@ -59,12 +59,12 @@ export default function ActsNotificationRequestTest() {
}) })
/* /*
* @tc.number : SUB_NOTIFICATION_ANS_PUBLISH_TEST_0100 * @tc.number : SUB_NOTIFICATION_ANS_REQUEST_TEST_0100
* @tc.name : function publish(request: NotificationRequest, callback: AsyncCallback<void>): void * @tc.name : function publish(request: NotificationRequest, callback: AsyncCallback<void>): void
* @tc.desc : publish a notification after requestEnableNotification * @tc.desc : publish a notification after requestEnableNotification
*/ */
it('SUB_NOTIFICATION_ANS_PUBLISH_TEST_0100', 0, async function (done) { it('SUB_NOTIFICATION_ANS_REQUEST_TEST_0100', 0, async function (done) {
console.info(`${TAG} SUB_NOTIFICATION_PUBLISH_TEST_0100 START`) console.info(`${TAG} SUB_NOTIFICATION_ANS_REQUEST_TEST_0100 START`)
let notificationRequest = { let notificationRequest = {
id: 1, id: 1,
content: { content: {
...@@ -87,16 +87,16 @@ export default function ActsNotificationRequestTest() { ...@@ -87,16 +87,16 @@ export default function ActsNotificationRequestTest() {
done() done()
} }
}) })
console.info(`${TAG} SUB_NOTIFICATION_PUBLISH_TEST_0100 END`) console.info(`${TAG} SUB_NOTIFICATION_ANS_REQUEST_TEST_0100 END`)
}) })
/* /*
* @tc.number : SUB_NOTIFICATION_ANS_PUBLISH_TEST_0200 * @tc.number : SUB_NOTIFICATION_ANS_REQUEST_TEST_0200
* @tc.name : function publish(request: NotificationRequest): Promise<void> * @tc.name : function publish(request: NotificationRequest): Promise<void>
* @tc.desc : publish a notification after requestEnableNotification * @tc.desc : publish a notification after requestEnableNotification
*/ */
it('SUB_NOTIFICATION_ANS_PUBLISH_TEST_0200', 0, async function (done) { it('SUB_NOTIFICATION_ANS_REQUEST_TEST_0200', 0, async function (done) {
console.info(`${TAG} SUB_NOTIFICATION_ANS_PUBLISH_TEST_0200 START`) console.info(`${TAG} SUB_NOTIFICATION_ANS_REQUEST_TEST_0200 START`)
let notificationRequest = { let notificationRequest = {
id: 1, id: 1,
content: { content: {
...@@ -117,7 +117,7 @@ export default function ActsNotificationRequestTest() { ...@@ -117,7 +117,7 @@ export default function ActsNotificationRequestTest() {
expect(false).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(`${TAG} SUB_NOTIFICATION_ANS_PUBLISH_TEST_0200 END`) console.info(`${TAG} SUB_NOTIFICATION_ANS_REQUEST_TEST_0200 END`)
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_REQUEST_TEST END') console.info(TAG + 'SUB_NOTIFICATION_ANS_REQUEST_TEST END')
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册