mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-23 16:40:08 +00:00
修复FlipClock应用调用后台代理提醒服务时,ReminderRequest.ringDuration参数设置错误问题
Signed-off-by: 王鑫 <wangxin601@huawei.com>
This commit is contained in:
parent
dd75a7e45b
commit
ba9a6f6c27
@ -81,7 +81,7 @@ export struct CustomDatePicker {
|
||||
pkgName: 'ohos.samples.flipclock',
|
||||
abilityName: 'ohos.samples.flipclock.EntryAbility'
|
||||
},
|
||||
ringDuration: 5000
|
||||
ringDuration: 5
|
||||
}
|
||||
this.reminderId = await reminderAgentManager.publishReminder(reminderRequest)
|
||||
let dateTime = { hour: this.hourTest, minute: this.minuteTest, reminderId: this.reminderId }
|
||||
|
@ -23,6 +23,7 @@ export struct SetBrightness {
|
||||
build() {
|
||||
Column() {
|
||||
Button( $r('app.string.setting') , {type: ButtonType.Capsule})
|
||||
.id("Setting")
|
||||
.width('40%')
|
||||
.fontColor($r('app.color.text_normal'))
|
||||
.backgroundColor($r('app.color.btn_bg'))
|
||||
|
@ -43,6 +43,21 @@ export default function abilityTest() {
|
||||
hilog.info(0x0000, 'testTag', 'StartAbility_001 end');
|
||||
})
|
||||
|
||||
/**
|
||||
* 获取权限
|
||||
*/
|
||||
it('RequestPermission_001', 0, async () => {
|
||||
hilog.info(0x0000, 'testTag', 'RequestPermission begin');
|
||||
let driver = Driver.create();
|
||||
await driver.delayMs(2000);
|
||||
// 获取发送通知权限
|
||||
hilog.info(0x0000, 'testTag', 'RequestPermission requestPermission');
|
||||
await driver.assertComponentExist(ON.text('允许'));
|
||||
let btnStart = await driver.findComponent(ON.text('允许'));
|
||||
await btnStart.click();
|
||||
hilog.info(0x0000, 'testTag', 'RequestPermission end');
|
||||
})
|
||||
|
||||
/**
|
||||
* 进入时钟页面
|
||||
*/
|
||||
@ -197,10 +212,15 @@ export default function abilityTest() {
|
||||
*/
|
||||
it('ToSetPage_001', 0, async function () {
|
||||
hilog.info(0x0000, 'testTag', 'ToSetPage_001 begin');
|
||||
// 底部tabBar的设置菜单
|
||||
await DRIVER.assertComponentExist(ON.text('设置'));
|
||||
let setBtn = await DRIVER.findComponent(ON.text('设置'));
|
||||
await setBtn.click();
|
||||
await DRIVER.delayMs(1000);
|
||||
// 设置页面上的设置按钮
|
||||
await DRIVER.assertComponentExist(ON.id('Setting'));
|
||||
let settingBtn = await DRIVER.findComponent(ON.id('Setting'));
|
||||
await settingBtn.click();
|
||||
await DRIVER.assertComponentExist(ON.text('全屏'));
|
||||
await DRIVER.assertComponentExist(ON.text('屏幕常亮'));
|
||||
await DRIVER.assertComponentExist(ON.text('亮度'));
|
||||
|
Loading…
Reference in New Issue
Block a user