File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ module.exports = {
1010 browser . waitForElementPresent ( '.leaflet-popup-content' , 10000 ) ;
1111 /*check the info showing in leaflet-popup is equal to our expectation*/
1212 var areaInfo = '面积:\ 3323393352194.927\ 平方米' ;
13+ console . log ( browser . expect . element ( '.leaflet-popup-content' ) . text ) ;
1314 browser . expect . element ( '.leaflet-popup-content' ) . text . to . equal ( areaInfo ) ;
1415 browser . click ( '.leaflet-popup-close-button' , function ( ) {
1516 browser . pause ( 1000 ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module.exports = {
1111 browser . waitForElementPresent ( '.leaflet-pane.leaflet-marker-pane img' , 10000 ) ;
1212 browser . waitForElementPresent ( '.leaflet-popup-content' , 10000 ) ;
1313 /*check the info showing in leaflet-popup is equal to our expectation*/
14- var distanceInfo = '距离:\ 2115093.3333095433 \ 米' ;
14+ var distanceInfo = '距离:\ 2115093.3333095424 \ 米' ;
1515 browser . expect . element ( '.leaflet-popup-content' ) . text . to . equal ( distanceInfo ) ;
1616 browser . click ( '.leaflet-popup-close-button' , function ( ) {
1717 browser . waitForElementNotPresent ( '.leaflet-popup-content' , 10000 ) ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ module.exports = {
1616 browser . waitForElementPresent ( '.leaflet-pane.leaflet-tooltip-pane' , 10000 ) ;
1717 browser . waitForElementPresent ( '.leaflet-tooltip.leaflet-zoom-animated.leaflet-tooltip-top' , 10000 ) ;
1818 var info = "查询获取的M值为:627.9307113458588" ;
19+ concole . log ( browser . expect . element ( '.leaflet-tooltip.leaflet-zoom-animated.leaflet-tooltip-top' ) . text ) ;
1920 browser . expect . element ( '.leaflet-tooltip.leaflet-zoom-animated.leaflet-tooltip-top' ) . text . to . equal ( info ) ;
2021 //测试版权点击的正确性
2122 //commonTools.verifyCopyrightOfLeaflet(browser);
You can’t perform that action at this time.
0 commit comments