Authored by 孟顺

去掉拼团首页进入事件

@@ -4,7 +4,7 @@ const { @@ -4,7 +4,7 @@ const {
4 4
5 module.exports = { 5 module.exports = {
6 [IOS_PRODUCT_DETAIL_GROUP]: [ 6 [IOS_PRODUCT_DETAIL_GROUP]: [
7 - // {op: YH_, name: "", types: {}}, 7 + { op: 'YB_GDS_DT_INFO', name: "进入拼团商品详情"},
8 8
9 ] 9 ]
10 }; 10 };
@@ -7,14 +7,14 @@ describe(IOS_PRODUCT_DETAIL_GROUP, '拼团商品详情页埋点测试(未登录) @@ -7,14 +7,14 @@ describe(IOS_PRODUCT_DETAIL_GROUP, '拼团商品详情页埋点测试(未登录)
7 console.log("点击TAB 我的"); 7 console.log("点击TAB 我的");
8 let tapView = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeTabBar/XCUIElementTypeButton[5]', 10000); 8 let tapView = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeTabBar/XCUIElementTypeButton[5]', 10000);
9 tapView.click(); 9 tapView.click();
10 - await driver.sleep(ACTION_PAUSE_TIME);  
11 - console.log("点击5折 拼团");  
12 - 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);  
13 - tapView.click();  
14 - await driver.sleep(ACTION_PAUSE_TIME);  
15 - console.log("点击返回");  
16 - tapView = await driver.waitForElementByAccessibilityId('yh_base_vc_back_btn', FIND_VIEW_OVER_TIME);  
17 - tapView.click(); 10 + // await driver.sleep(ACTION_PAUSE_TIME);
  11 + // console.log("点击5折 拼团");
  12 + // 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);
  13 + // tapView.click();
  14 + // await driver.sleep(ACTION_PAUSE_TIME);
  15 + // console.log("点击返回");
  16 + // tapView = await driver.waitForElementByAccessibilityId('yh_base_vc_back_btn', FIND_VIEW_OVER_TIME);
  17 + // tapView.click();
18 await driver.sleep(ACTION_PAUSE_TIME); 18 await driver.sleep(ACTION_PAUSE_TIME);
19 console.log("点击首页TAB"); 19 console.log("点击首页TAB");
20 tapView = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeTabBar/XCUIElementTypeButton[1]', 10000); 20 tapView = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeTabBar/XCUIElementTypeButton[1]', 10000);