when i download to my pc(win10)and try to compile and run,but failed #752
Unanswered
yuantianwen
asked this question in
Q&A
Replies: 1 comment 4 replies
-
It seems the test script tries to find the menu with title "Feedback", but failed. The root cause should be your browser display language is not English, and the menu text is translated. As a workaround, you can do one of these actions:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
y0@DESKTOP-7G7O5HU MINGW64 /e/workspace/web/Authenticator-dev
$ npm run dev:chrome
Removing old build files...
Checking style...
[error] No parser could be inferred for file: src\test\test.ts.disabled
Warning: Missing info in credentials.ts
Notice
Thanks for forking Authenticator! If you plan on redistributing your own version of Authenticator please generate your own API keys and put them in ./src/models /credentials.ts and ./manifest-chrome.json
Clear this warning by commenting it out in ./scripts/build.sh
Press any key to continue...
Compiling...
Starting type checking service...
Hash: ea08177159310d5ce54c
Version: webpack 4.44.2
Time: 29352ms
Built at: 2021/09/29 上午8:23:45
Asset Size Chunks Chunk Names
argon.js 200 KiB argon [emitted] argon
argon.js.map 159 KiB argon [emitted] [dev] argon
background.js 3.85 MiB background [emitted] background
background.js.map 3.3 MiB background [emitted] [dev] background
content.js 134 KiB content [emitted] content
content.js.map 60.3 KiB content [emitted] [dev] content
import.js 4.18 MiB import [emitted] import
import.js.map 3.54 MiB import [emitted] [dev] import
options.js 431 KiB options [emitted] options
options.js.map 303 KiB options [emitted] [dev] options
popup.js 6.06 MiB popup [emitted] popup
popup.js.map 3.51 MiB popup [emitted] [dev] popup
qrdebug.js 20.6 KiB qrdebug [emitted] qrdebug
qrdebug.js.map 6.8 KiB qrdebug [emitted] [dev] qrdebug
test.js 10.4 MiB test [emitted] test
test.js.map 7.91 MiB test [emitted] [dev] test
Entrypoint argon = argon.js argon.js.map
Entrypoint background = background.js background.js.map
Entrypoint content = content.js content.js.map
Entrypoint popup = popup.js popup.js.map
Entrypoint import = import.js import.js.map
Entrypoint options = options.js options.js.map
Entrypoint qrdebug = qrdebug.js qrdebug.js.map
Entrypoint test = test.js test.js.map
[./images/scan.gif] 41.9 KiB {content} [built]
[./src/argon.ts] 63 KiB {argon} [built]
[./src/background.ts] 295 KiB {background} [built]
[./src/content.ts] 87.9 KiB {content} [built]
[./src/import.ts] 133 KiB {import} [built]
[./src/mochaReporter.ts] 1.33 KiB {test} [built]
[./src/models/backup.ts] 296 KiB {background} {popup} {test} [built]
[./src/models/credentials.ts] 2.63 KiB {background} {popup} {test} [built]
[./src/models/encryption.ts] 16.4 KiB {background} {popup} {import} {test} [buil t]
[./src/models/migration.ts] 41 KiB {background} {import} [built]
[./src/models/storage.ts] 304 KiB {background} {popup} {import} {test} [built]
[./src/options.ts] 50.8 KiB {options} [built]
[./src/popup.ts] 163 KiB {popup} {test} [built]
[./src/qrdebug.ts] 16.8 KiB {qrdebug} [built]
[./src/test.ts] 311 bytes {test} [built]
+ 864 hidden modules
Done!
[ Starting the Hot Extension Reload Server... ]
Starting type checking service...
webpack is watching the files…
No type errors found
Version: typescript 3.9.7
Time: 9708 ms
Hash: 26a38a782e542b9aa2c6
Version: webpack 4.44.2
Time: 29103ms
Built at: 2021/09/29 上午8:24:21
Asset Size Chunks Chunk Names
argon.js 200 KiB argon [emitted] argon
argon.js.map 159 KiB argon [emitted] [dev] argon
background.js 3.89 MiB background [emitted] background
background.js.map 3.3 MiB background [emitted] [dev] background
content.js 176 KiB content [emitted] content
content.js.map 61.6 KiB content [emitted] [dev] content
import.js 4.18 MiB import [emitted] import
import.js.map 3.54 MiB import [emitted] [dev] import
options.js 431 KiB options [emitted] options
options.js.map 303 KiB options [emitted] [dev] options
popup.js 6.1 MiB popup [emitted] popup
popup.js.map 3.51 MiB popup [emitted] [dev] popup
qrdebug.js 20.6 KiB qrdebug [emitted] qrdebug
qrdebug.js.map 6.81 KiB qrdebug [emitted] [dev] qrdebug
test.js 10.4 MiB test [emitted] test
test.js.map 7.91 MiB test [emitted] [dev] test
Entrypoint argon = argon.js argon.js.map
Entrypoint background = background.js background.js.map
Entrypoint content = content.js content.js.map
Entrypoint popup = popup.js popup.js.map
Entrypoint import = import.js import.js.map
Entrypoint options = options.js options.js.map
Entrypoint qrdebug = qrdebug.js qrdebug.js.map
Entrypoint test = test.js test.js.map
[./images/scan.gif] 41.9 KiB {content} [built]
[./src/argon.ts] 63 KiB {argon} [built]
[./src/background.ts] 295 KiB {background} [built]
[./src/content.ts] 87.9 KiB {content} [built]
[./src/import.ts] 133 KiB {import} [built]
[./src/mochaReporter.ts] 1.33 KiB {test} [built]
[./src/models/backup.ts] 296 KiB {background} {popup} {test} [built]
[./src/models/credentials.ts] 2.63 KiB {background} {popup} {test} [built]
[./src/models/encryption.ts] 16.4 KiB {background} {popup} {import} {test} [buil t]
[./src/models/migration.ts] 41 KiB {background} {import} [built]
[./src/models/storage.ts] 304 KiB {background} {popup} {import} {test} [built]
[./src/options.ts] 50.8 KiB {options} [built]
[./src/popup.ts] 163 KiB {popup} {test} [built]
[./src/qrdebug.ts] 16.8 KiB {qrdebug} [built]
[./src/test.ts] 311 bytes {test} [built]
+ 864 hidden modules
EnterPasswordPage
✓ should apply password when button is clicked
✓ should apply password when enter is pressed
✓ should autofocus password input
✓ should not show incorrect password message
Incorrect password was entered
✓ should show incorrect password message
MenuPage
feedback button
✗ should open a new tab to the Chrome help page when the feedback button is clicked and the user agent is Chrome
Error: [vue-test-utils]: find did not return *[title='Feedback'], cannot cal l trigger() on empty Wrapper
at throwError (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/ test.js:72961:9)
at ErrorWrapper.trigger (chrome-extension://bhghoamapcdpbohphigoooaddinp kbai/dist/test.js:80248:3)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:3526 73:72
at step (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.j s:352605:23)
at Object.next (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist /test.js:352586:53)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:3525 80:71
at new Promise ()
at ./src/test/components/Popup/MenuPage.ts.__awaiter (chrome-extension:/ /bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:352576:12)
at clickMenuPageButtonByTitle (chrome-extension://bhghoamapcdpbohphigooo addinpkbai/dist/test.js:352672:73)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:3526 98:46
✗ should open a new tab to the Edge help page when the feedback button is cl icked and the user agent is Edge
Error: [vue-test-utils]: find did not return *[title='Feedback'], cannot cal l trigger() on empty Wrapper
at throwError (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/ test.js:72961:9)
at ErrorWrapper.trigger (chrome-extension://bhghoamapcdpbohphigoooaddinp kbai/dist/test.js:80248:3)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:3526 73:72
at step (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.j s:352605:23)
at Object.next (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist /test.js:352586:53)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:3525 80:71
at new Promise ()
at ./src/test/components/Popup/MenuPage.ts.__awaiter (chrome-extension:/ /bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:352576:12)
at clickMenuPageButtonByTitle (chrome-extension://bhghoamapcdpbohphigooo addinpkbai/dist/test.js:352672:73)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:3527 12:46
✗ should open a new tab to the Firefox help page when the feedback button is clicked and the user agent is Firefox
Error: [vue-test-utils]: find did not return *[title='Feedback'], cannot cal l trigger() on empty Wrapper
at throwError (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/ test.js:72961:9)
at ErrorWrapper.trigger (chrome-extension://bhghoamapcdpbohphigoooaddinp kbai/dist/test.js:80248:3)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:3526 73:72
at step (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.j s:352605:23)
at Object.next (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist /test.js:352586:53)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:3525 80:71
at new Promise ()
at ./src/test/components/Popup/MenuPage.ts.__awaiter (chrome-extension:/ /bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:352576:12)
at clickMenuPageButtonByTitle (chrome-extension://bhghoamapcdpbohphigooo addinpkbai/dist/test.js:352672:73)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:3527 26:46
✗ should open a new tab to the Chrome help page when the feedback button is clicked and the user agent is unknown
Error: [vue-test-utils]: find did not return *[title='Feedback'], cannot cal l trigger() on empty Wrapper
at throwError (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/ test.js:72961:9)
at ErrorWrapper.trigger (chrome-extension://bhghoamapcdpbohphigoooaddinp kbai/dist/test.js:80248:3)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:3526 73:72
at step (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.j s:352605:23)
at Object.next (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist /test.js:352586:53)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:3525 80:71
at new Promise ()
at ./src/test/components/Popup/MenuPage.ts.__awaiter (chrome-extension:/ /bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:352576:12)
at clickMenuPageButtonByTitle (chrome-extension://bhghoamapcdpbohphigooo addinpkbai/dist/test.js:352672:73)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:3527 40:46
feedbackURL is set
✗ should open a new tab to the page specified in ManagedStorage
Error: [vue-test-utils]: find did not return *[title='Feedback'], cannot c all trigger() on empty Wrapper
at throwError (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dis t/test.js:72961:9)
at ErrorWrapper.trigger (chrome-extension://bhghoamapcdpbohphigoooaddi npkbai/dist/test.js:80248:3)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:35 2673:72
at step (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test .js:352605:23)
at Object.next (chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/di st/test.js:352586:53)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:35 2580:71
at new Promise ()
at ./src/test/components/Popup/MenuPage.ts.__awaiter (chrome-extension ://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:352576:12)
at clickMenuPageButtonByTitle (chrome-extension://bhghoamapcdpbohphigo ooaddinpkbai/dist/test.js:352672:73)
at chrome-extension://bhghoamapcdpbohphigoooaddinpkbai/dist/test.js:35 2793:54
extension version
✓ should be displayed
Test GOST 2012
✓ (GOST3411_2012_256) hash from secret '8EFC09150B395C46EE2E38DBD30AF973' and counter '54430008' = '22923a7404f8f0b583f45ef22a62888867ef039cadb4faf2d7065a8ea8 34275a', verifying
✓ (GOST3411_2012_256) hash from secret '8EFC09150B395C46EE2E38DBD30AF973' and counter '54430007' = '0356cd0be45b8a863db2250fdd9e35341b73d98ecbb7316bac994acd2b 6e16d4', verifying
✓ (GOST3411_2012_256) current otp = '928866', previous otp = '720838', verifyi ng otp codes are different
✓ (GOST3411_2012_256) valid otp for secret 'B1B0AE0E5ADFBF89A5F7DF440592A3AE' and date 'Fri Jan 01 2021 00:00:00 GMT+0000 (格林尼治标准时间)' is '982313', ver ifying
✓ (GOST3411_2012_512) hash from secret '8EFC09150B395C46EE2E38DBD30AF973' and counter '54430008' = '50f5e58099e5a6ba825924a65ea8bb7318a48c0e29327ffe80813564af 555321cce648ee6657a939dc11a451b0dd1e683aa4518c0833c6b1d2cb9544cd9d7482', verifyi ng
✓ (GOST3411_2012_512) hash from secret '8EFC09150B395C46EE2E38DBD30AF973' and counter '54430007' = '3732bc94b1e786803cd004348a2f61b38f0e5bf29d03310949ae099bcc 2950d1bd402d7b48978cb209343c7c7639e4e8b3b2b7fcea3165e83b9861fbe7fbc57c', verifyi ng
✓ (GOST3411_2012_512) current otp = '926821', previous otp = '877363', verifyi ng otp codes are different
✓ (GOST3411_2012_512) valid otp for secret 'B1B0AE0E5ADFBF89A5F7DF440592A3AE' and date 'Fri Jan 01 2021 00:00:00 GMT+0000 (格林尼治标准时间)' is '733980', ver ifying
Beta Was this translation helpful? Give feedback.
All reactions