bjowes / cypress-ntlm-auth

Windows authentication plugin for Cypress
MIT License
54 stars 9 forks source link

cypress-ntlm-auth with sorry-cypress - cypress-ntlm-auth plugin must be loaded before using this method #230

Closed Lacofab closed 1 year ago

Lacofab commented 1 year ago

Hi,

cypress-ntlm-auth works great locally, but do you have a solution to run cypress-ntlm-auth on sorry-cypress server ?

sorry-cypress is installed with docker-compose from https://github.com/sorry-cypress/sorry-cypress/blob/master/docker-compose.minio.yml

The error message on sorry-cypress : Error: The cypress-ntlm-auth plugin must be loaded before using this method Because this error occurred during a before all hook we are skipping the remaining tests in the current suite: Login and buy stuff at Context.ntlm (webpack:///./node_modules/cypress-ntlm-auth/dist/commands/index.js:35:0)

Thanks

bjowes commented 1 year ago

Hi @Lacofab, haven't tried using sorry-cypress (but I like the name). When running Cypress through Docker, it is common that Cypress is installed globally which requires special consideration for plugins. See this section in the docs: https://github.com/bjowes/cypress-ntlm-auth#docker-and-global-installs

Let me know if that resolves your issue.

bjowes commented 1 year ago

Closed due to lack of feedback