Skip to content

Commit fd67acb

Browse files
committed
[fix]VT review by cxh
1 parent 9bca542 commit fd67acb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples-test/leaflet/01_layersLegend.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)