Updated browser tests to lie about User-Agent to fix Etherscan tests.
This commit is contained in:
parent
78b350bbc5
commit
5a4e3ede2a
@ -3,9 +3,10 @@ Changelog
|
|||||||
|
|
||||||
This change log is managed by `scripts/cmds/update-versions` but may be manually updated.
|
This change log is managed by `scripts/cmds/update-versions` but may be manually updated.
|
||||||
|
|
||||||
ethers/v5.0.6 (2020-07-16 05:35)
|
ethers/v5.0.6 (2020-07-16 05:54)
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
|
- Removed unnecessary dependency from BigNumber. ([#951](https://github.com/ethers-io/ethers.js/issues/951); [78b350b](https://github.com/ethers-io/ethers.js/commit/78b350bbc5ea73561bf47038743b9e51049496f7))
|
||||||
- Longer Etherscan throttle slot interval. ([9f20258](https://github.com/ethers-io/ethers.js/commit/9f20258d5d39cd901d2078275323071eb0f3505b))
|
- Longer Etherscan throttle slot interval. ([9f20258](https://github.com/ethers-io/ethers.js/commit/9f20258d5d39cd901d2078275323071eb0f3505b))
|
||||||
- Fixed ENS overrides for the default provider. ([#959](https://github.com/ethers-io/ethers.js/issues/959); [63dd3d4](https://github.com/ethers-io/ethers.js/commit/63dd3d4682b564445948988243fa9139c598587b))
|
- Fixed ENS overrides for the default provider. ([#959](https://github.com/ethers-io/ethers.js/issues/959); [63dd3d4](https://github.com/ethers-io/ethers.js/commit/63dd3d4682b564445948988243fa9139c598587b))
|
||||||
- Added Retry-After support and adjustable slot interval to fetchJson. ([7d43545](https://github.com/ethers-io/ethers.js/commit/7d435453039f009b339d835ddee47e35a843711b))
|
- Added Retry-After support and adjustable slot interval to fetchJson. ([7d43545](https://github.com/ethers-io/ethers.js/commit/7d435453039f009b339d835ddee47e35a843711b))
|
||||||
|
@ -15,10 +15,27 @@ module.exports = function(config) {
|
|||||||
],
|
],
|
||||||
port: 9876,
|
port: 9876,
|
||||||
logLevel: config.LOG_INFO,
|
logLevel: config.LOG_INFO,
|
||||||
browsers: [ 'ChromeHeadless' ],
|
browsers: [ 'ChromeHeadless', "HeadlessLittleLiar" ],
|
||||||
autoWatch: false,
|
autoWatch: false,
|
||||||
singleRun: true,
|
singleRun: true,
|
||||||
browserNoActivityTimeout: 60000
|
browserNoActivityTimeout: 60000,
|
||||||
|
customLaunchers: {
|
||||||
|
HeadlessLittleLiar: {
|
||||||
|
base: 'ChromeHeadless',
|
||||||
|
flags: [
|
||||||
|
'--disable-extensions',
|
||||||
|
|
||||||
|
// Enable this to help debug CORS issues (otherwise fetch throws a useless TypeError)
|
||||||
|
//'--disable-web-security',
|
||||||
|
|
||||||
|
'--enable-automation',
|
||||||
|
|
||||||
|
// Cloudflare will block (on the testnet endpoints) any traffic
|
||||||
|
// from a headless chome (based on the user agent), so we lie
|
||||||
|
// This was take from Safari, because that is what I had on-hand
|
||||||
|
'--user-agent', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15']
|
||||||
|
}
|
||||||
|
},
|
||||||
/*
|
/*
|
||||||
client: {
|
client: {
|
||||||
mocha: {
|
mocha: {
|
||||||
|
@ -15,14 +15,32 @@ module.exports = function(config) {
|
|||||||
],
|
],
|
||||||
port: 9876,
|
port: 9876,
|
||||||
logLevel: config.LOG_INFO,
|
logLevel: config.LOG_INFO,
|
||||||
browsers: [ 'ChromeHeadless' ],
|
browsers: [ 'ChromeHeadless', "HeadlessLittleLiar" ],
|
||||||
autoWatch: false,
|
autoWatch: false,
|
||||||
singleRun: true,
|
singleRun: true,
|
||||||
browserNoActivityTimeout: 600000
|
browserNoActivityTimeout: 600000,
|
||||||
|
|
||||||
|
customLaunchers: {
|
||||||
|
HeadlessLittleLiar: {
|
||||||
|
base: 'ChromeHeadless',
|
||||||
|
flags: [
|
||||||
|
'--disable-extensions',
|
||||||
|
|
||||||
|
// Enable this to help debug CORS issues (otherwise fetch throws a useless TypeError)
|
||||||
|
//'--disable-web-security',
|
||||||
|
|
||||||
|
'--enable-automation',
|
||||||
|
|
||||||
|
// Cloudflare will block (on the testnet endpoints) any traffic
|
||||||
|
// from a headless chome (based on the user agent), so we lie
|
||||||
|
// This was take from Safari, because that is what I had on-hand
|
||||||
|
'--user-agent', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15']
|
||||||
|
}
|
||||||
|
},
|
||||||
/*
|
/*
|
||||||
client: {
|
client: {
|
||||||
mocha: {
|
mocha: {
|
||||||
grep: 'utf',
|
grep: 'Etherscan',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
655
package-lock.json
generated
655
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -20,8 +20,8 @@
|
|||||||
"clean": "node ./admin/cmds/reset-build.js && tsc --build --clean ./tsconfig.project.json",
|
"clean": "node ./admin/cmds/reset-build.js && tsc --build --clean ./tsconfig.project.json",
|
||||||
"_dist-test-esm": "rollup -c rollup-tests.config.js --configModule",
|
"_dist-test-esm": "rollup -c rollup-tests.config.js --configModule",
|
||||||
"_dist-test-umd": "rollup -c rollup-tests.config.js",
|
"_dist-test-umd": "rollup -c rollup-tests.config.js",
|
||||||
"_test-browser-umd": "karma start --single-run --browsers ChromeHeadless karma-umd.conf.js",
|
"_test-browser-umd": "karma start --single-run --browsers HeadlessLittleLiar karma-umd.conf.js",
|
||||||
"_test-browser-esm": "karma start --single-run --browsers ChromeHeadless karma-esm.conf.js",
|
"_test-browser-esm": "karma start --single-run --browsers HeadlessLittleLiar karma-esm.conf.js",
|
||||||
"test-browser-umd": "npm run _dist-test-umd && npm run _test-browser-umd",
|
"test-browser-umd": "npm run _dist-test-umd && npm run _test-browser-umd",
|
||||||
"test-browser-esm": "npm run _dist-test-esm && npm run _test-browser-esm",
|
"test-browser-esm": "npm run _dist-test-esm && npm run _test-browser-esm",
|
||||||
"test-node": "mocha --no-colors --reporter ./packages/tests/reporter ./packages/tests/lib/test-*.js",
|
"test-node": "mocha --no-colors --reporter ./packages/tests/reporter ./packages/tests/lib/test-*.js",
|
||||||
@ -48,9 +48,9 @@
|
|||||||
"aws-sdk": "2.137.0",
|
"aws-sdk": "2.137.0",
|
||||||
"diff": "4.0.1",
|
"diff": "4.0.1",
|
||||||
"flatworm": "0.0.2-beta.4",
|
"flatworm": "0.0.2-beta.4",
|
||||||
"karma": "5.0.2",
|
"karma": "5.1.0",
|
||||||
"karma-chrome-launcher": "3.1.0",
|
"karma-chrome-launcher": "3.1.0",
|
||||||
"karma-mocha": "2.0.0",
|
"karma-mocha": "2.0.1",
|
||||||
"lerna": "^3.20.2",
|
"lerna": "^3.20.2",
|
||||||
"libnpmpublish": "1.1.3",
|
"libnpmpublish": "1.1.3",
|
||||||
"mocha": "^7.1.1",
|
"mocha": "^7.1.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user