Skip to content

Commit 847f176

Browse files
committed
由于版本升级导致,点击位置不对,现在修改为moveto到指定位置的方式,fix ci review by songym
1 parent ff009b1 commit 847f176

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

examples-test/leaflet/02_getFeatureByGeometryIT.js

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,26 @@ module.exports = {
1414
browser.waitForElementNotPresent('.leaflet-popup-content', 10000);
1515
});
1616
browser.pause(1000);
17-
browser.doubleClick(function () {
18-
browser.waitForElementPresent('.leaflet-popup-content-wrapper', 10000);
19-
browser.waitForElementPresent('.leaflet-popup-content', 10000);
20-
var queryInfo = "国家:扎伊尔";
21-
browser.expect.element('.leaflet-popup-content').text.to.be.contain(queryInfo);
17+
// browser.pause();
18+
//a.leaflet-control-zoom-out
19+
browser.moveTo( null,700, 700, function () {
20+
browser.pause(1000);
21+
browser.doubleClick(function () {
22+
browser.waitForElementPresent('.leaflet-popup-content-wrapper', 10000);
23+
browser.waitForElementPresent('.leaflet-popup-content', 10000);
24+
var queryInfo = "国家:安哥拉";
25+
browser.expect.element('.leaflet-popup-content').text.to.be.contain(queryInfo);
26+
});
27+
browser.pause(1000);
28+
browser.click('.leaflet-popup-close-button', function () {
29+
browser.waitForElementNotPresent('.leaflet-popup-content', 10000);
30+
});
31+
//测试版权点击的正确性
32+
//commonTools.verifyCopyrightOfLeaflet(browser);
33+
browser.pause(1000);
34+
browser.end();
2235
});
23-
browser.pause(1000);
24-
browser.click('.leaflet-popup-close-button', function () {
25-
browser.waitForElementNotPresent('.leaflet-popup-content', 10000);
26-
});
27-
//测试版权点击的正确性
28-
//commonTools.verifyCopyrightOfLeaflet(browser);
29-
browser.pause(1000);
30-
browser.end();
36+
3137
}
3238
};
3339

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy