Protractor - self-signed ssl headless test e2e don't pass

邮差的信 提交于 2020-03-05 03:05:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!