I am trying to setup Cypress.io to run tests as a local Windows user against a .NET Core web application that uses Windows Authentication. I can achieve this manually by opening the web browser to run as the local user, so I know the authentication is working.
However, I'm still getting 401 when I try to run a simple test.
I have successfully installed both cypress and cypress-ntlm plugin.
I open Cypress using the command npx cypress-ntlm open.
My test code is:
describe('visit site', () => {
it('passes', () => {
cy.ntlm(['localhost:7136'], 'username', 'password');
cy.visit('https://localhost:7136/')
})
})
What configuration/setup am I missing?