First time to write a Cypress (cypress Io framework) auto test for internal website (http://XXXX:8089/). The access of this website homepage requires special permissions by using active directory (get the windows credential and check if the user belongs to a certain group or have the certain role). The testing script is pretty simple:
describe('The Home Page', function() {
it('successfully loads', function() {
cy.visit('http://XXXX:8089/')
})
})
got the 401 -Unauthoized error message. Tried replacing url with embedded windows credential like http://username:password@xxxx:8089/, got the same error. Cannot find a solution through google. Hope someone can kindly help me solve this problem. Thanks a lot.