Authored by 孟顺

去掉拼团首页进入事件

... ... @@ -4,7 +4,7 @@ const {
module.exports = {
[IOS_PRODUCT_DETAIL_GROUP]: [
// {op: YH_, name: "", types: {}},
{ op: 'YB_GDS_DT_INFO', name: "进入拼团商品详情"},
]
};
\ No newline at end of file
... ...
... ... @@ -7,14 +7,14 @@ describe(IOS_PRODUCT_DETAIL_GROUP, '拼团商品详情页埋点测试(未登录)
console.log("点击TAB 我的");
let tapView = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeTabBar/XCUIElementTypeButton[5]', 10000);
tapView.click();
await driver.sleep(ACTION_PAUSE_TIME);
console.log("点击5折 拼团");
tapView = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell[16]', 3000);
tapView.click();
await driver.sleep(ACTION_PAUSE_TIME);
console.log("点击返回");
tapView = await driver.waitForElementByAccessibilityId('yh_base_vc_back_btn', FIND_VIEW_OVER_TIME);
tapView.click();
// await driver.sleep(ACTION_PAUSE_TIME);
// console.log("点击5折 拼团");
// tapView = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell[16]', 3000);
// tapView.click();
// await driver.sleep(ACTION_PAUSE_TIME);
// console.log("点击返回");
// tapView = await driver.waitForElementByAccessibilityId('yh_base_vc_back_btn', FIND_VIEW_OVER_TIME);
// tapView.click();
await driver.sleep(ACTION_PAUSE_TIME);
console.log("点击首页TAB");
tapView = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeTabBar/XCUIElementTypeButton[1]', 10000);
... ...