estou com um erro ao rodar os testes ja fiz os procedimentos
npm install -g protractor@7.0.0
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. C:\Program Files\nodejs\protractor -> C:\Program Files\nodejs\node_modules\protractor\bin\protractor C:\Program Files\nodejs\webdriver-manager -> C:\Program Files\nodejs\node_modules\protractor\bin\webdriver-manager
- protractor@7.0.0 updated 1 package in 16.181s
webdriver-manager update I/config_source - curl -oC:\Users\Cris\AppData\Roaming\nvm\v14.13.1\node_modules\protractor\node_modules\webdriver-manager\selenium\standalone-response.xml https://selenium-release.storage.googleapis.com/ I/config_source - curl -oC:\Users\Cris\AppData\Roaming\nvm\v14.13.1\node_modules\protractor\node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/ I/config_source - curl -oC:\Users\Cris\AppData\Roaming\nvm\v14.13.1\node_modules\protractor\node_modules\webdriver-manager\selenium\gecko-response.json https://api.github.com/repos/mozilla/geckodriver/releases I/update - selenium standalone: file exists C:\Users\Cris\AppData\Roaming\nvm\v14.13.1\node_modules\protractor\node_modules\webdriver-manager\selenium\selenium-server-standalone-3.141.59.jar I/update - selenium standalone: selenium-server-standalone-3.141.59.jar up to date I/update - chromedriver: file exists C:\Users\Cris\AppData\Roaming\nvm\v14.13.1\node_modules\protractor\node_modules\webdriver-manager\selenium\chromedriver_98.0.4758.80.zip
este e o log do erro
C:\Users\Cris\Desktop\alura-protractor\e2e\src\home.e2e-spec.ts:3:1
import { browser, by, element, protractor } from 'protractor';;
describe('Home Page', () => {
~
it('Should navigate to user profile', async () => {
internal/modules/cjs/loader.js:1063:30
jasmine-spec-reporter: unable to open 'internal/modules/cjs/loader.js'
Error: ENOENT: no such file or directory, open 'internal/modules/cjs/loader.js'
C:\Users\Cris\Desktop\alura-protractor\node_modules\ts-node\src\index.ts:473:23
jasmine-spec-reporter: unable to open 'C:\Users\Cris\Desktop\alura-protractor\node_modules\ts-node\src\index.ts'
Error: ENOENT: no such file or directory, open 'C:\Users\Cris\Desktop\alura-protractor\node_modules\ts-node\src\index.ts'
internal/modules/cjs/loader.js:1092:10
jasmine-spec-reporter: unable to open 'internal/modules/cjs/loader.js'
Error: ENOENT: no such file or directory, open 'internal/modules/cjs/loader.js'
C:\Users\Cris\Desktop\alura-protractor\node_modules\ts-node\src\index.ts:476:12
jasmine-spec-reporter: unable to open 'C:\Users\Cris\Desktop\alura-protractor\node_modules\ts-node\src\index.ts'
Error: ENOENT: no such file or directory, open 'C:\Users\Cris\Desktop\alura-protractor\node_modules\ts-node\src\index.ts'
- Failures *
1) Home Page Should navigate to user profile
- Failed: script timeout (Session info: chrome=98.0.4758.82) (Driver info: chromedriver=98.0.4758.80 (7f0488e8ba0d8e019187c6325a16c29d9b7f4989-refs/branch-heads/4758@{#972}),platform=Windows NT 10.0.19042 x86_64)
Executed 1 of 1 spec (1 FAILED) in 12 secs.
[23:42:29] I/launcher - 0 instance(s) of WebDriver still running
[23:42:29] I/launcher - chrome #01 failed 1 test(s)
[23:42:29] I/launcher - overall: 1 failed spec(s)
[23:42:29] E/launcher - Process exited with error code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! protractor-test@0.0.0 e2e: ng e2e
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the protractor-test@0.0.0 e2e script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Cris\AppData\Roaming\npm-cache_logs\2022-02-08T02_42_30_083Z-debug.log
observação mesmo baixando o projeto da aula eu continuo tendo este erro .