2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-06-05 22:10:48 +00:00

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

View File

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

View File

@ -20,6 +20,6 @@
"source-map-support": "^0.5.19" "source-map-support": "^0.5.19"
}, },
"devDependencies": { "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, // Update both DEFAULT_ELECTRON_VERSION and DEFAULT_CHROME_VERSION together,
// and update app / package.json / devDeps / electron to value of DEFAULT_ELECTRON_VERSION // 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 // https://atom.io/download/atom-shell/index.json
export const DEFAULT_CHROME_VERSION = '91.0.4472.164'; export const DEFAULT_CHROME_VERSION = '91.0.4472.164';
// Update each of these periodically // Update each of these periodically
// https://product-details.mozilla.org/1.0/firefox_versions.json // 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 // https://en.wikipedia.org/wiki/Safari_version_history
export const DEFAULT_SAFARI_VERSION = { export const DEFAULT_SAFARI_VERSION = {