|
@@ -3,18 +3,18 @@ const {describe} = require('../../libs/driver'); |
|
@@ -3,18 +3,18 @@ const {describe} = require('../../libs/driver'); |
3
|
const {iOS_TAB_HOME} = require('../../scene-types/scene-types');
|
3
|
const {iOS_TAB_HOME} = require('../../scene-types/scene-types');
|
4
|
|
4
|
|
5
|
describe(iOS_TAB_HOME,'首页', async(driver) => {
|
5
|
describe(iOS_TAB_HOME,'首页', async(driver) => {
|
6
|
- let touchTab = await driver.waitForElementByAccessibilityId('home drawer entrance',10000);
|
|
|
7
|
- await touchTab.click();
|
|
|
8
|
- await new Promise(r => {
|
|
|
9
|
- setTimeout(() => {
|
|
|
10
|
- r()
|
|
|
11
|
- }, 2000);
|
|
|
12
|
- })
|
|
|
13
|
- await (new wd.TouchAction(driver))
|
|
|
14
|
- .press({x: 300, y: 158})
|
|
|
15
|
- .moveTo({x: 191, y: 162})
|
|
|
16
|
- .release()
|
|
|
17
|
- .perform()
|
6
|
+ // let touchTab = await driver.waitForElementByAccessibilityId('home drawer entrance',10000);
|
|
|
7
|
+ // await touchTab.click();
|
|
|
8
|
+ // await new Promise(r => {
|
|
|
9
|
+ // setTimeout(() => {
|
|
|
10
|
+ // r()
|
|
|
11
|
+ // }, 2000);
|
|
|
12
|
+ // })
|
|
|
13
|
+ // await (new wd.TouchAction(driver))
|
|
|
14
|
+ // .press({x: 300, y: 158})
|
|
|
15
|
+ // .moveTo({x: 191, y: 162})
|
|
|
16
|
+ // .release()
|
|
|
17
|
+ // .perform()
|
18
|
|
18
|
|
19
|
// touchTab = await driver.waitForElementByAccessibilityId('homeSearch',5000);
|
19
|
// touchTab = await driver.waitForElementByAccessibilityId('homeSearch',5000);
|
20
|
// await touchTab.click();
|
20
|
// await touchTab.click();
|
|
@@ -25,7 +25,10 @@ describe(iOS_TAB_HOME,'首页', async(driver) => { |
|
@@ -25,7 +25,10 @@ describe(iOS_TAB_HOME,'首页', async(driver) => { |
25
|
// touchTab = await driver.waitForElementByAccessibilityId('qr home',10000);
|
25
|
// touchTab = await driver.waitForElementByAccessibilityId('qr home',10000);
|
26
|
// await touchTab.click();
|
26
|
// await touchTab.click();
|
27
|
|
27
|
|
28
|
- touchTab = await driver.waitForElementByAccessibilityId('球鞋',5000);
|
28
|
+ let touchTab = await driver.waitForElementByAccessibilityId('球鞋',5000);
|
|
|
29
|
+ await touchTab.click();
|
|
|
30
|
+
|
|
|
31
|
+ touchTab = await driver.waitForElementByAccessibilityId('男装', 5000);
|
29
|
await touchTab.click();
|
32
|
await touchTab.click();
|
30
|
|
33
|
|
31
|
touchTab = await driver.waitForElementByAccessibilityId('女装',5000);
|
34
|
touchTab = await driver.waitForElementByAccessibilityId('女装',5000);
|
|
@@ -34,17 +37,16 @@ describe(iOS_TAB_HOME,'首页', async(driver) => { |
|
@@ -34,17 +37,16 @@ describe(iOS_TAB_HOME,'首页', async(driver) => { |
34
|
touchTab = await driver.waitForElementByAccessibilityId('生活方式',5000);
|
37
|
touchTab = await driver.waitForElementByAccessibilityId('生活方式',5000);
|
35
|
await touchTab.click();
|
38
|
await touchTab.click();
|
36
|
|
39
|
|
37
|
- touchTab = await driver.waitForElementByAccessibilityId('潮童',5000);
|
40
|
+ touchTab = await driver.waitForElementByAccessibilityId('高街BLK', 1000);
|
38
|
await touchTab.click();
|
41
|
await touchTab.click();
|
39
|
|
42
|
|
40
|
- touchTab = await driver.waitForElementByAccessibilityId('高街BLK',1000);
|
43
|
+ touchTab = await driver.waitForElementByAccessibilityId('潮童',5000);
|
41
|
await touchTab.click();
|
44
|
await touchTab.click();
|
42
|
|
45
|
|
43
|
touchTab = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeTabBar/XCUIElementTypeButton[1]',5000);
|
46
|
touchTab = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeTabBar/XCUIElementTypeButton[1]',5000);
|
44
|
await touchTab.click();
|
47
|
await touchTab.click();
|
45
|
|
48
|
|
46
|
- touchTab = await driver.waitForElementByAccessibilityId('男装',5000);
|
|
|
47
|
- await touchTab.click();
|
49
|
+
|
48
|
|
50
|
|
49
|
await new Promise(r => {
|
51
|
await new Promise(r => {
|
50
|
setTimeout(() => {
|
52
|
setTimeout(() => {
|