tinymce / tinymce-webcomponent

MIT License
15 stars 7 forks source link

npm run test: Error: Unable to find a suitable driver for chrome #39

Open rudifa opened 1 year ago

rudifa commented 1 year ago

Hello

I cloned this repo and launched npm run test, which produced the error report shown below. How do I install a suitable driver for chrome? My platform is macOS 12.6.

tinymce-webcomponent % npm run test                                                    

> @tinymce/tinymce-webcomponent@2.0.2-rc test
> bedrock-auto -b chrome-headless -d src/test/ts

bedrock-auto v13.2.1 starting...
Compiling 1 tests...
No local chromedriver for chrome. Searching system path...
Error: Unable to find a suitable driver for chrome
exalate-issue-sync[bot] commented 1 year ago

Ref: INT-3039

rudifa commented 1 year ago

Solved!

I followed the guidance here:

Now the tests run and pass.

tinymce-webcomponent % npm run test                                          

> @tinymce/tinymce-webcomponent@2.0.2-rc test
> bedrock-auto -b chrome-headless -d src/test/ts

bedrock-auto v13.2.1 starting...
Compiling 1 tests...
No local chromedriver for chrome. Searching system path...
browser: 106.0.5249.119 driver: 106.0.5249.61 (511755355844955cd3e264779baf0dd38212a4d0-refs/branch-heads/5249@{#569})
bedrock-auto v13.2.1 available at: http://localhost:8000

Initial page has loaded ...

Current test: LoadTest
Session: 86952477, Status: COMPLETE, Progress: 1/1, Failed: 0, Skipped: 0 ... 
All tests passed.

Suggestion: you could add to the error report a line similar to Please install the driver from the chromedriver download site into your system path