File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,12 @@ module.exports = {
1414 browser . elements ( 'css selector' , '.panel.panel-primary' , function ( result ) {
1515 console . log ( '----Hope number of panel to be 2, actual is ' + result . value . length ) ;
1616 } ) ;
17+ browser . waitForElementVisible ( '#mapLegend>div' ) ;
1718 browser . expect . elements ( '#layersList label' ) . count . to . equal ( 9 ) ;
18- browser . click ( '#layersList input' ) ;
19+ browser . click ( '.panel.panel-primary #layersList input' ) ;
1920 browser . click ( '.btn.btn-default' ) ;
21+ browser . waitForElementVisible ( '#mapLegend>div' ) ;
22+ browser . pause ( 1000 ) ;
2023 browser . expect . elements ( '#mapLegend>div' ) . count . to . equal ( 4 ) ;
2124 browser . expect . element ( '#mapLegend div:nth-child(1)' ) . text . to . equal ( 'CoordsysLabel@Jingjin' ) ;
2225 browser . expect . element ( '#mapLegend div:nth-child(3)' ) . text . to . equal ( 'Landuse_R@Jingjin#1' ) ;
You can’t perform that action at this time.
0 commit comments