Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
yoho-report-tester
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
孟顺
2019-05-31 14:27:46 +0800
Commit
285690267901100d732af61a67dc2fdc6b24c2c3
1 parent
d3e30f27
移除逛
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
32 deletions
scene-types/scene-types.js
schemes/ios/rule_tab_guang.js
test/ios/tab_guang.js
scene-types/scene-types.js
View file @
2856902
...
...
@@ -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'
;
...
...
schemes/ios/rule_tab_guang.js
deleted
100644 → 0
View file @
d3e30f2
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
test/ios/tab_guang.js
deleted
100644 → 0
View file @
d3e30f2
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
Please
register
or
login
to post a comment