Update Electron to 13.5.1; Fix auth manual tests (#1287)

This commit is contained in:
Adam Weeden 2021-10-02 22:17:06 -04:00 committed by GitHub
parent fadcb73de7
commit 0d99ce4916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 847 additions and 855 deletions

19
.github/manual-test vendored
View File

@ -76,15 +76,16 @@ request_feedback "$tmp_dir"
printf "\n***** SMOKE TEST 2: Setting up test and building app... *****\n"
tmp_dir=$(mktemp -d -t nativefier-manual-test-auth-XXXXX)
name="nativefier-smoke-test-2"
node ./lib/cli.js 'http://httpbin.org/basic-auth/foo/bar' \
--basic-auth-username foo \
--basic-auth-password bar \
# Removing for now as httpbin is not presently up
# node ./lib/cli.js 'http://httpbin.org/basic-auth/foo/bar' \
node ./lib/cli.js 'https://authenticationtest.com/HTTPAuth/' \
--basic-auth-username user \
--basic-auth-password pass \
--name "$name" \
"$tmp_dir"
printf '\n***** SMOKE TEST 2: Test checklist *****
- Was successfully logged in via HTTP Basic Auth. Should see:
{ "authenticated": true, "user": "foo" }
- Was successfully logged in via HTTP Basic Auth. Should see a "Login Success" and a green banner.
- Console: no Electron runtime deprecation warnings/error logged'
launch_app "$tmp_dir" "$name"
request_feedback "$tmp_dir"
@ -94,14 +95,14 @@ request_feedback "$tmp_dir"
printf '\n***** SMOKE TEST 3: Setting up test and building app... *****\n'
tmp_dir=$(mktemp -d -t nativefier-manual-test-auth-prompt-XXXXX)
name='nativefier-smoke-test-3'
node ./lib/cli.js 'http://httpbin.org/basic-auth/foo/bar' \
# node ./lib/cli.js 'http://httpbin.org/basic-auth/foo/bar' \
node ./lib/cli.js 'https://authenticationtest.com/HTTPAuth/' \
--name "$name" \
"$tmp_dir"
printf '\n***** SMOKE TEST 3: Test checklist *****
- Should get a login window. Log in with username="foo" and password="bar".
- Post login, you should see:
{ "authenticated": true, "user": "foo" }
- Should get a login window. Log in with username="user" and password="pass".
- Post login, you should see a "Login Success" and a green banner.
- Console: no Electron runtime deprecation warnings/error logged'
launch_app "$tmp_dir" "$name"

View File

@ -17,7 +17,7 @@
"source-map-support": "^0.5.19"
},
"devDependencies": {
"electron": "^13.4.0"
"electron": "^13.5.1"
}
},
"node_modules/@electron/get": {
@ -64,9 +64,9 @@
}
},
"node_modules/@types/node": {
"version": "14.17.18",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.18.tgz",
"integrity": "sha512-haYyibw4pbteEhkSg0xdDLAI3679L75EJ799ymVrPxOA922bPx3ML59SoDsQ//rHlvqpu+e36kcbR3XRQtFblA==",
"version": "14.17.20",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.20.tgz",
"integrity": "sha512-gI5Sl30tmhXsqkNvopFydP7ASc4c2cLfGNQrVKN3X90ADFWFsPEsotm/8JHSUJQKTHbwowAHtcJPeyVhtKv0TQ==",
"dev": true
},
"node_modules/ansi-regex": {
@ -229,9 +229,9 @@
}
},
"node_modules/core-js": {
"version": "3.18.0",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.18.0.tgz",
"integrity": "sha512-WJeQqq6jOYgVgg4NrXKL0KLQhi0CT4ZOCvFL+3CQ5o7I6J8HkT5wd53EadMfqTDp1so/MT1J+w2ujhWcCJtN7w==",
"version": "3.18.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.18.1.tgz",
"integrity": "sha512-vJlUi/7YdlCZeL6fXvWNaLUPh/id12WXj3MbkMw5uOyF0PfWPBNOCNbs53YqgrvtujLNlt9JQpruyIKkUZ+PKA==",
"dev": true,
"hasInstallScript": true,
"optional": true,
@ -308,9 +308,9 @@
"dev": true
},
"node_modules/electron": {
"version": "13.4.0",
"resolved": "https://registry.npmjs.org/electron/-/electron-13.4.0.tgz",
"integrity": "sha512-KJGWS2qa0xZXIMPMDUNkRVO8/JxRd4+M0ejYYOzu2LIQ5ijecPzNuNR9nvDkml9XyyRBzu975FkhJcwD17ietQ==",
"version": "13.5.1",
"resolved": "https://registry.npmjs.org/electron/-/electron-13.5.1.tgz",
"integrity": "sha512-ZyxhIhmdaeE3xiIGObf0zqEyCyuIDqZQBv9NKX8w5FNzGm87j4qR0H1+GQg6vz+cA1Nnv1x175Zvimzc0/UwEQ==",
"dev": true,
"hasInstallScript": true,
"dependencies": {
@ -1254,9 +1254,9 @@
}
},
"@types/node": {
"version": "14.17.18",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.18.tgz",
"integrity": "sha512-haYyibw4pbteEhkSg0xdDLAI3679L75EJ799ymVrPxOA922bPx3ML59SoDsQ//rHlvqpu+e36kcbR3XRQtFblA==",
"version": "14.17.20",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.20.tgz",
"integrity": "sha512-gI5Sl30tmhXsqkNvopFydP7ASc4c2cLfGNQrVKN3X90ADFWFsPEsotm/8JHSUJQKTHbwowAHtcJPeyVhtKv0TQ==",
"dev": true
},
"ansi-regex": {
@ -1382,9 +1382,9 @@
}
},
"core-js": {
"version": "3.18.0",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.18.0.tgz",
"integrity": "sha512-WJeQqq6jOYgVgg4NrXKL0KLQhi0CT4ZOCvFL+3CQ5o7I6J8HkT5wd53EadMfqTDp1so/MT1J+w2ujhWcCJtN7w==",
"version": "3.18.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.18.1.tgz",
"integrity": "sha512-vJlUi/7YdlCZeL6fXvWNaLUPh/id12WXj3MbkMw5uOyF0PfWPBNOCNbs53YqgrvtujLNlt9JQpruyIKkUZ+PKA==",
"dev": true,
"optional": true
},
@ -1442,9 +1442,9 @@
"dev": true
},
"electron": {
"version": "13.4.0",
"resolved": "https://registry.npmjs.org/electron/-/electron-13.4.0.tgz",
"integrity": "sha512-KJGWS2qa0xZXIMPMDUNkRVO8/JxRd4+M0ejYYOzu2LIQ5ijecPzNuNR9nvDkml9XyyRBzu975FkhJcwD17ietQ==",
"version": "13.5.1",
"resolved": "https://registry.npmjs.org/electron/-/electron-13.5.1.tgz",
"integrity": "sha512-ZyxhIhmdaeE3xiIGObf0zqEyCyuIDqZQBv9NKX8w5FNzGm87j4qR0H1+GQg6vz+cA1Nnv1x175Zvimzc0/UwEQ==",
"dev": true,
"requires": {
"@electron/get": "^1.0.1",

View File

@ -20,6 +20,6 @@
"source-map-support": "^0.5.19"
},
"devDependencies": {
"electron": "^13.4.0"
"electron": "^13.5.1"
}
}

1639
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,13 +4,13 @@ export const DEFAULT_APP_NAME = 'APP';
// Update both DEFAULT_ELECTRON_VERSION and DEFAULT_CHROME_VERSION together,
// and update app / package.json / devDeps / electron to value of DEFAULT_ELECTRON_VERSION
export const DEFAULT_ELECTRON_VERSION = '13.4.0';
export const DEFAULT_ELECTRON_VERSION = '13.5.1';
// https://atom.io/download/atom-shell/index.json
export const DEFAULT_CHROME_VERSION = '91.0.4472.164';
// Update each of these periodically
// https://product-details.mozilla.org/1.0/firefox_versions.json
export const DEFAULT_FIREFOX_VERSION = '92.0';
export const DEFAULT_FIREFOX_VERSION = '92.0.1';
// https://en.wikipedia.org/wiki/Safari_version_history
export const DEFAULT_SAFARI_VERSION = {