Authored by 孟顺

移除逛

... ... @@ -4,7 +4,6 @@ module.exports.IOS_PRODUCT_DETAIL = 'IOS_PRODUCT_DETAIL';
module.exports.IOS_UFO_PRODUCT_DETAIL = 'IOS_UFO_PRODUCT_DETAIL';
module.exports.IOS_PRODUCT_CART = 'IOS_PRODUCT_CART';
module.exports.iOS_TAB_CATEGORY = 'iOS_TAB_CATEGORY';
module.exports.iOS_TAB_GUANG = 'iOS_TAB_GUANG';
module.exports.IOS_PRODUCT_DETAIL_GROUP = 'IOS_PRODUCT_DETAIL_GROUP';
module.exports.iOS_TAB_UFOHOME = "iOS_TAB_UFOHOME";
module.exports.iOS_TAB_MINE = 'iOS_TAB_MINE';
... ...
const {
iOS_TAB_GUANG
} = require('../../scene-types/scene-types');
module.exports = {
[iOS_TAB_GUANG]:[
{ op: 'YB_STROLL', name: 'TAB BAR 点击品类'},
{ op: 'YB_PAGE_EXIT', name: "离开首页", equals: { PAGE_ID: "sy" } },
{ op: 'YB_PAGE_ENTER', name: "进入品类", equals: { PAGE_ID: "guangsy" } },
{ op: 'YB_SHOW_EVENT', name: "曝光事件", types: { DATA: Array } },
{ op: 'YB_STROLL_MAIN_TAB_C', name: '点击顶部的TAB按钮'},
]
};
\ No newline at end of file
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