File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ module.exports = {
9
9
browser . waitForElementPresent ( '.leaflet-pane.leaflet-overlay-pane canvas' , 10000 ) ;
10
10
browser . waitForElementPresent ( '.leaflet-popup-content' , 10000 ) ;
11
11
/*check the info showing in leaflet-popup is equal to our expectation*/
12
- var areaInfo = '面积:3323393352194.927平方米' ;
13
- browser . expect . element ( '.leaflet-popup-content' ) . text . to . equal ( areaInfo ) ;
12
+ browser . expect . element ( '.leaflet-popup-content' ) . text . to . contain ( "面积" ) ;
13
+ browser . expect . element ( '.leaflet-popup-content' ) . text . to . contain ( "平方米" ) ;
14
+ browser . expect . element ( '.leaflet-popup-content' ) . text . to . contain ( "3323393352194.927" ) ;
14
15
browser . click ( '.leaflet-popup-close-button' , function ( ) {
15
16
browser . pause ( 1000 ) ;
16
17
browser . waitForElementNotPresent ( '.leaflet-popup-content' , 10000 ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module.exports = {
11
11
browser . waitForElementPresent ( '.leaflet-pane.leaflet-marker-pane img' , 10000 ) ;
12
12
browser . waitForElementPresent ( '.leaflet-popup-content' , 10000 ) ;
13
13
/*check the info showing in leaflet-popup is equal to our expectation*/
14
- var distanceInfo = '距离:2115093.3333095424米 ' ;
14
+ var distanceInfo = '距离:2115093.3333095433米 ' ;
15
15
browser . expect . element ( '.leaflet-popup-content' ) . text . to . equal ( distanceInfo ) ;
16
16
browser . click ( '.leaflet-popup-close-button' , function ( ) {
17
17
browser . waitForElementNotPresent ( '.leaflet-popup-content' , 10000 ) ;
You can’t perform that action at this time.
0 commit comments