优化用例

Signed-off-by: zwx1021249 <zhangpan70@huawei.com>
This commit is contained in:
zwx1021249 2024-05-17 09:04:11 +08:00
parent 0ad8633b5f
commit 9d97b6e597

View File

@ -299,10 +299,10 @@ export default function RpcJsUnitTest() {
let driver = await UiDriver.create();
console.info(` come in driveFn`);
console.info(`driver is ${JSON.stringify(driver)}`);
sleep(2000);
await sleep(2000);
let button = await driver.findComponent(BY.text('允许'));
console.info(`button is ${JSON.stringify(button)}`);
sleep(5000);
await sleep(2000);
await button.click();
} catch (err) {
console.info('err is ' + err);
@ -315,9 +315,9 @@ export default function RpcJsUnitTest() {
console.info('beforeAll called rpc');
testservice = new TestService;
await getPermission();
sleep(5000);
await sleep(900);
await driveFn();
sleep(2000);
await sleep(900);
testservice.toStartAbility();
sleep(2000);
await testservice.toConnectAbility().then(data => {