mirror of
https://gitee.com/openharmony/xts_dcts
synced 2024-10-07 05:43:40 +00:00
优化用例
Signed-off-by: zwx1021249 <zhangpan70@huawei.com>
This commit is contained in:
parent
0ad8633b5f
commit
9d97b6e597
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user