!643 ipc用例修复

Merge pull request !643 from 张攀/master
This commit is contained in:
openharmony_ci 2024-05-21 01:41:14 +00:00 committed by Gitee
commit f5d7742c3d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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 => {