case_tab_mine.js 1.33 KB
const wd = require('wd');
const {describe} = require('../../libs/driver');
const {ANDROID_TAB_MINE} = require('../../scene-types/scene-types');
const {FIND_VIEW_OVER_TIME, ACTION_PAUSE_TIME} = require('../../config/constant');

describe(ANDROID_TAB_MINE,'安卓个人中心', async(driver) => {
    // 暂停
    await driver.sleep(ACTION_PAUSE_TIME);

    // 个人中心tab
    touchTab = await driver.waitForElementById('com.yoho:id/tabMain_radioImage_my_rl',10000);
    await touchTab.click();

    // 暂停
    await driver.sleep(ACTION_PAUSE_TIME);

    // 有货有赚
    touchTab = await driver.waitForElementById('com.yoho:id/mine_center_ufo_union_first_layout',10000);
    await touchTab.click();

    // 暂停
    await driver.sleep(ACTION_PAUSE_TIME);

    // 返回个人中心
    touchTab = await driver.waitForElementById('com.yoho:id/back_btn',10000);
    await touchTab.click();

    // 暂停
    await driver.sleep(ACTION_PAUSE_TIME);

    // 球鞋交易
    touchTab = await driver.waitForElementById('com.yoho:id/mine_center_ufo_union_second_layout',10000);
    await touchTab.click();

    // 暂停
    await driver.sleep(ACTION_PAUSE_TIME);

    // 返回个人中心
    touchTab = await driver.waitForElementById('com.yoho:id/back_btn',10000);
    await touchTab.click();

    // 暂停
    await driver.sleep(ACTION_PAUSE_TIME);
});