Skip to content

Commit 8e38cf8

Browse files
committed
【fix】修复nightwatch升级后 部分测试报错的问题
1 parent 686b743 commit 8e38cf8

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

examples-test/nightwatch.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"src_folders": ["./examples-test/leaflet","./examples-test/openlayers"],
33
"output_folder": "./examples-test/reports",
4-
"exclude" : [],
5-
"filter" : "",
4+
"exclude": [],
5+
"filter": "",
66
"custom_commands_path": "",
77
"custom_assertions_path": "",
88
"page_objects_path": "",
@@ -27,22 +27,28 @@
2727
"silent": true,
2828
"screenshots": {
2929
"enabled": false,
30-
"on_failure":false,
31-
"on_error":false,
30+
"on_failure": false,
31+
"on_error": false,
3232
"path": ""
3333
},
3434
"desiredCapabilities": {
3535
"browserName": "chrome",
3636
"javascriptEnabled": true,
37-
"acceptSslCerts": true
37+
"acceptSslCerts": true,
38+
"chromeOptions": {
39+
"w3c": false
40+
}
3841
}
3942
},
4043

41-
"chrome" : {
44+
"chrome": {
4245
"desiredCapabilities": {
4346
"browserName": "chrome",
4447
"javascriptEnabled": true,
45-
"acceptSslCerts": true
48+
"acceptSslCerts": true,
49+
"chromeOptions": {
50+
"w3c": false
51+
}
4652
}
4753
}
4854
}

test/test-main-mapboxgl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ import './mapboxgl/services/ThiessenAnalysisSpec.js';
5252
import './mapboxgl/services/TrafficTransferAnalystServiceSpec.js';
5353

5454
/*mapboxgl -- mapping*/
55-
// import './mapboxgl/mapping/WebMapSpec.js';
55+
import './mapboxgl/mapping/WebMapSpec.js';

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