Authored by 朱小军

no message

... ... @@ -6,15 +6,14 @@ module.exports = {
[iOS_TAB_MINE]:[
{op: 'UFO_MY_ITEM_C', name: '我的收入'},
// {op: 'UFO_MY_ITEM_C', name: '商家入驻'},
// {op: 'UFO_MY_ITEM_C', name: '新的好物'},
// {op: 'YB_PAGE_ENTER', name: '新的好物载入'},
// {op: 'YB_PAGE_EXIT', name: '新的好物载出'},
{op: 'UFO_MY_ITEM_C', name: '新的好物'},
{op: 'YB_PAGE_ENTER', name: '新的好物载入'},
{op: 'YB_PAGE_EXIT', name: '新的好物载出'},
// {op: 'YB_PAGE_ENTER', name: '商家入驻载入'},
// {op: 'YB_PAGE_EXIT', name: '商家入驻载出'},
{op: 'YB_PAGE_ENTER', name: '我的收入载入'},
{op: 'YB_PAGE_EXIT', name: '我的收入载出'},
{op: 'YB_PAGE_ENTER', name: 'UFO载入'},
{op: 'YB_PAGE_ENTER', name: 'UFO载出'},
// {op: 'YB_H5_PAGE_OPEN_', name: '新的好物url'},
]
};
\ No newline at end of file
... ...
... ... @@ -33,17 +33,17 @@ describe(iOS_TAB_MINE,'我的', async(driver) => {
await driver.sleep(ACTION_PAUSE_TIME);
// touchTab = await driver.waitForElementByAccessibilityId('商家入驻', FIND_VIEW_OVER_TIME);
// await touchTab.click();
// await driver.sleep(ACTION_PAUSE_TIME);
// let element = await driver.elementsByAccessibilityId("完善信息");
// // let isDisplayed = await element.isDisplayed();
// // if (isDisplayed){
// touchTab = await driver.waitForElementByAccessibilityId('完善信息');
// await touchTab.click();
// // }
// touchTab = await driver.waitForElementByAccessibilityId('商家入驻', FIND_VIEW_OVER_TIME);
// await touchTab.click();
// await driver.sleep(ACTION_PAUSE_TIME);
// s
// let element = await driver.elementsByAccessibilityId("完善信息");
// let isDisplayed = await element.isDisplayed();
// if (isDisplayed){
// touchTab = await driver.waitForElementByAccessibilityId('完善信息');
// await touchTab.click();
// }
// await driver.sleep(ACTION_PAUSE_TIME);
... ... @@ -52,13 +52,16 @@ describe(iOS_TAB_MINE,'我的', async(driver) => {
// await driver.sleep(ACTION_PAUSE_TIME);
// touchTab = await driver.waitForElementByAccessibilityId('新的好物 没有你的好物?申请上架', FIND_VIEW_OVER_TIME);
// await touchTab.click();
touchTab = await driver.waitForElementByAccessibilityId('新的好物 没有你的好物?申请上架', FIND_VIEW_OVER_TIME);
await touchTab.click();
// await driver.sleep(ACTION_PAUSE_TIME);
await driver.sleep(ACTION_PAUSE_TIME);
// touchTab = await driver.waitForElementByAccessibilityId('yh_base_vc_back_btn', FIND_VIEW_OVER_TIME);
// await touchTab.click();
let action = new wd.TouchAction(driver);
action.press({x: 10, y: 10})
.moveTo({x: 50, y: 50})
.release();
await action.perform();
await driver.sleep(ACTION_PAUSE_TIME);
... ...