How to run Angular e2e with SSL enabled?

Discussão em 'Angular' iniciado por Jeroen, Novembro 19, 2024.

  1. Jeroen

    Jeroen Guest

    I have a pretty simple Angular sample project, with some end to end tests. I'm testing OAuth2 and OIDC flows in my end to end tests, and browsers behave quite differently with or without SSL/TLS enabled. So I'd like to run my end to end tests with SSL turned on locally too.

    I now run my tests with the Angular CLI like this:

    ng e2e


    I tried to run it like this:

    ng e2e --ssl=true


    Although the --ssl=true option does work for ng serve, it does not work for ng e2e giving me:


    Unknown option: '--ssl'
    ​

    Is there a way or workaround to make the Angular CLI based Protractor / Selenium tests run with SSL?

    Continue reading...

Compartilhe esta Página