Skip to main content

All Questions

Tagged with
0 votes
1 answer
717 views

How to run Angular e2e with SSL enabled?

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 ...
Jeroen's user avatar
  • 64k
3 votes
3 answers
3k views

Angular CLI E2E Testing Wrong ChromeDriver

I am using the angular CLI. I created it with: ng new MyFirstApp I then tried to run the end to end tests with: ng e2e I got the following error message: E/launcher - session not created: This ...
user3739190's user avatar
0 votes
2 answers
2k views

Protractor handshake failed when connecting to local server with https protocol

I am trying to write protractor test but my application connects to WLS server which uses TEST certificates to authenticate for further communication. I have no option for webdriver update because of ...
Saloo's user avatar
  • 816
0 votes
1 answer
318 views

Include static html file with Angular CLI application only in e2e tests

I want to have one specific static (non-Angular) html file that is only built and served when running my e2e tests in an Angular CLI application. In the production application that static file should ...
Jeroen's user avatar
  • 64k
0 votes
1 answer
831 views

Mock services using server.js and proxy.config.json using Protractor

I am trying to mock service using server.js and the proxy.config.json file so I can use that mocked service in a Protractor test. The way I'm going about it is having the test file like this: const ...
mynameiswhat's user avatar
0 votes
2 answers
2k views

use baseUrl from CLI instead of protractor config

I am using angular CLI 7 and protractor 5.4.2. I want my protractor tests to use the baseUrl from CLI instead of protractor config. I have tried the below. ng e2e --base-url="https://google.com" ...
asl's user avatar
  • 87
0 votes
2 answers
725 views

How to specify different configuration files for e2e in angular-cli?

I am using protractor for running e2e tests. I have a base config file and two other config files that override some options in the base config file. I want to be able to specify different ...
cris's user avatar
  • 171
1 vote
0 answers
398 views

Debugging protractor using inspector

I am trying to debug protractor e2e tests, using inspector as per protractors docs, the command I am executing is as follows: > node --inspect-brk node_modules\@angular\cli\bin\ng e2e --port 6666 ...
jeremyTob's user avatar
  • 161
0 votes
0 answers
165 views

how to make protractor run constantly on the same port?

I wanted to run my protractor tests on the same port without changing the port number. I tried : "e2e": "ng e2e --port 49152 --host localhost", in the package.jason file and also "e2e": { "options"...
Sanjani Gunathilaka's user avatar
0 votes
1 answer
2k views

Angular cli, overwrite the command that gets run by 'ng e2e'?

I'm trying run Angular's e2e tests against an instance of the application ON A DIFFERENT SERVER than my local machine. So to be clear, I'm not testing my local code. I just need to run protractor ...
Scott Williams's user avatar
2 votes
1 answer
2k views

Using Angular 7.x with Protractor 6 (beta)

Was anyone able, yet, to execute Angular CLI 7.x E2E tests using Protractor 6 (beta)? Due to issues described at https://github.com/angular/protractor/issues/4294, I was looking forward to give ...
Gunnar Hillert's user avatar
2 votes
1 answer
2k views

Debugging protractor tests which are started with Angular CLI's `ng e2e`

How can a protractor test be debugged using Angular 6+ running with ng e2e. I set debug: true in the e2e/protractor.conf.js file. When calling browser.pause() in the test I get an error and the hint, ...
Tarator's user avatar
  • 1,524
1 vote
0 answers
461 views

Angular end-to-end tests on random port

We are running angular e2e tests on a CI environment where tests are run at the same time on the same build slave (for example for different branches). Since our recent upgrade to angular 7 (from ...
Rob Gansevles's user avatar
4 votes
1 answer
3k views

How to run protractor tests with "ng e2e" against node server instead of webpack-dev-server

Running e2e tests against prod bundle with webpack-dev-server In Angular one can run protractor tests against the prod build using "e2e:prod": "ng e2e --prod" This will build the prod bundle, ...
Klaus Native's user avatar
  • 3,519
14 votes
2 answers
4k views

E2E typescript tests are not being transpiled after Angular upgrade

I have a problem with e2e tests in a project after I did an upgrade to Angular 6. Previously tests worked perfectly, now there is a problem that .ts files are not being compiled: Error: TSError: ⨯ ...
Aga K's user avatar
  • 140

15 30 50 per page
1
2 3 4 5