Authored by 朱小军

优化

... ... @@ -10,8 +10,33 @@ module.exports = {
{ op: 'YB_PAGE_ENTER', name: "进入品类", equals: { PAGE_ID: "pl" } },
{ op: 'YB_SHOW_EVENT', name: "曝光事件", types: { DATA: Array } },
{ op: 'YB_SHOW_CATEGORY', name: '展示品类列表', types: { DATA: Array } },
{ op: 'YB_SHOW_CATEGORY', name: '展示品类列表', types: { DATA: Array } },
{ op: 'YB_SHOW_CATEGORY', name: '展示品类列表', types: { DATA: Array } },
{ op: 'YB_SHOW_CATEGORY', name: '展示品类列表', types: { DATA: Array } },
{ op: 'YB_SHOW_CATEGORY', name: '展示品类列表', types: { DATA: Array } },
{ op: 'YB_SHOW_CATEGORY', name: '展示品类列表', types: { DATA: Array } },
{ op: 'YB_SHOW_CATEGORY', name: '展示品类列表', types: { DATA: Array } },
{ op: 'YB_SHOW_CATEGORY', name: '展示品类列表', types: { DATA: Array } },
{ op: 'YB_SHOW_CATEGORY', name: '展示品类列表', types: { DATA: Array } },
{ op: 'YB_SHOW_CATEGORY', name: '展示品类列表', types: { DATA: Array } },
{ op: 'YB_SHOW_CATEGORY', name: '展示品类列表', types: { DATA: Array } },
{ op: 'YB_PAGE_ENTER', name: '进入品类商品列表页', equals: { PAGE_ID: 'plsplb' } },
// { op: 'YB_PAGE_ENTER', name: '进入品类商品列表页', equals: { PAGE_ID: 'plsplb' } },
{ op: 'YB_SHOW_BRANDLIST', name: '品牌列表曝光'},
{ op: 'YB_CATEGORY_BRAND_LIST_CH', name: '主界面-分类-品牌-频道选择'},
{ op: 'YB_CATEGORY_BRAND_LIST_SG', name: '切换品牌tab'},
// { op: 'YB_GDS_LIST', name: '品牌商品列表'},
{ op: 'YB_CATEGORY_BRAND_LIST_CH', name: '主界面-分类-品牌-频道选择'},
{ op: 'YB_CATEGORY_BRAND_LIST_CH', name: '主界面-分类-品牌-频道选择'},
{ op: 'YB_CATEGORY_BRAND_LIST_CH', name: '主界面-分类-品牌-频道选择'},
{ op: 'YB_CATEGORY_BRAND_LIST_SG', name: '切换品牌tab'},
{ op: 'YB_CATEGORY_BRAND_LIST_SG', name: '切换品牌tab'},
{ op: 'YB_CATEGORY_BRAND_LIST_SG', name: '切换品牌tab'},
{ op: 'YB_SHOW_BRANDBANNER', name: '品牌banner曝光1'},
{ op: 'YB_SHOW_BRANDBANNER', name: '品牌banner曝光2'},
{ op: 'YB_CATEGORY_CLS_TAB', name: '品类'},
{ op: 'YB_CATEGORY_BRAND_TAB', name: '品牌'},
{ op: 'YB_CATEGORY_CAT_FLR_C', name: '右侧分类类目'},
// {
// op: 'YB_GDS_LIST', name: '品类列表页', validate: (log) => {
// return log.param.ENT_ID.length > 0 && log.param.ENT_TYP == 4;
... ...
// const wd = require('wd');
// const {describe} = require('../../libs/driver');
// const {iOS_TAB_GUANG} = require('../../scene-types/scene-types');
// describe(iOS_TAB_GUANG,'逛(有货社区)', async(driver) => {
// //点击首页的tab bar 社区按钮
// let tapView = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeTabBar/XCUIElementTypeButton[4]', 10000);
// await tapView.click();
// tapView = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell[3]', 3000);
// await tapView.click();
// await new Promise(r => {
// setTimeout(() => {
// r();
// }, 3000);
// });
// });
\ No newline at end of file
... ...
... ... @@ -55,7 +55,7 @@ describe(iOS_TAB_MINE,'我的', async(driver) => {
touchTab = await driver.waitForElementByAccessibilityId('新的好物 没有你的好物?申请上架', FIND_VIEW_OVER_TIME);
await touchTab.click();
await driver.sleep(ACTION_PAUSE_TIME);
await driver.sleep(4000);
let action = new wd.TouchAction(driver);
action.press({x: 10, y: 10})
... ...