问题
We have e2e test with Protractor.
When I execute the script in my local machine it will pass.
Now I have to integrate it with Jenkins system and docker.
My webpage re-directs to another login page due to SSO. So I started with an url like this:
https://demop-staging-ppd.com
and this demop will me send to sso page with another url.
When I write script to test if am I on the exact page, it will not pass because this page:
I think the problem is we used self ssl certification.
this is my conf.js
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: ["--headless", "--ignore-certificate-errors-spki-list",
"--disable-gpu", "--no-sandbox" ]
},
marionette : true,
acceptInsecureCerts : true,
ignoreHTTPSErrors: true
},
directConnect: true,
I tried --ignore-certificate-errors but this did not work for me.
I am using protractor 5.4.2 and chrome 71.0.3578.80
Any help would be very much appreciated.
来源:https://stackoverflow.com/questions/59630672/protractor-self-signed-ssl-headless-test-e2e-dont-pass