File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 11var commonTools = require ( '../base/commonTools' ) ;
22module . exports = {
3- 'leaflet_addressMatchService ' : function ( browser ) {
3+ 'leaflet_addressMatchService_code ' : function ( browser ) {
44 var type = 'leaflet' ;
55 var exampleName = 'addressMatchService' ;
66 commonTools . openExampleAndLoadMap ( browser , type , exampleName ) ;
@@ -31,9 +31,16 @@ module.exports = {
3131 browser . expect . element ( '.leaflet-popup-content' ) . text . to . contain ( '过滤字段' ) ;
3232 } )
3333 } ) ;
34- browser . pause ( 1000 ) ;
34+ browser . end ( ) ;
35+ } ,
36+ 'leaflet_addressMatchService_decode' : function ( browser ) {
37+ var type = 'leaflet' ;
38+ var exampleName = 'addressMatchService' ;
39+ commonTools . openExampleAndLoadMap ( browser , type , exampleName ) ;
40+ /*判断初始交互控件*/
41+ browser . waitForElementPresent ( '.panel-body' , 10000 ) ;
42+
3543 /*在反向匹配服务中输入值,并判断结果*/
36- browser . refresh ( ) ;
3744 browser . click ( '#geodecode' ) ;
3845 browser . pause ( 1000 ) ;
3946 browser . setValue ( '#xCoord' , '116.3518541194752' ) ;
@@ -61,9 +68,6 @@ module.exports = {
6168 browser . expect . element ( '.leaflet-popup-content' ) . text . to . contain ( '过滤字段' ) ;
6269 } )
6370 } ) ;
64- //测试版权点击的正确性
65- //commonTools.verifyCopyrightOfLeaflet(browser);
66- browser . pause ( 1000 ) ;
6771 browser . end ( ) ;
6872 }
6973} ;
You can’t perform that action at this time.
0 commit comments