Questions tagged [angular-e2e]

This tag should be used when asking questions about angular end to end testing, in combination for example with protractor which is the official angular framework for writing end to end tests. this will help to categorize these questions and get the right solutions for them.

167 questions
1
vote
1 answer

can an npm script be run from the UI

Don't know if this is possible, but I'd like to add a button to an angular 6 page that runs the e2e scripts (i.e. "npm run e2e"). The idea is to have an easy way for the PO's to run the e2e tests. The e2e tests are written in testCafe. Is this…
Robert Price
  • 239
  • 2
  • 5
  • 11
1
vote
1 answer

Filereplacements not working for e2e testing

I want to pick file src/enironments/environment.docker.ts when I run a dockerized version of my e2e testing. I have added a new e2e section to angular.json "myapp-e2e": { ... }, "myapp-e2e-docker": { "root": "e2e", "sourceRoot": "e2e", …
user275475
  • 41
  • 5
1
vote
0 answers

ng e2e on circleci - Server terminated early with status 127

I've generated a completely new and empty project with the angular 7 cli. And the first step was to setup Circle CI to test the project. When i run this on my computer, no problem: npm run lint npm run e2e Tests succeed well. So i putted the same…
MathKimRobin
  • 1,268
  • 3
  • 21
  • 52
1
vote
1 answer

Run ng e2e with --element-explorer not working

I'm trying to figure out how I can debug my end to end tests. I'm usage protractor in an angular project and using the protractor-cucumber-framework custom framework. Given('[...]', async () => { await page.goToMeetupsListPage(); const profile:…
Baptiste Arnaud
  • 2,522
  • 3
  • 25
  • 55
1
vote
0 answers

How to run e2e tests in Angular 7?

When I run: ng new ng-demo cd ng-demo ng e2e then terminal outputs: ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** Date: 2018-12-24T09:11:46.656Z Hash: c327cfcccf9319a7f705 Time:…
Seven
  • 360
  • 1
  • 4
  • 16
1
vote
0 answers

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 angular 5) protractor uses the default port…
Rob Gansevles
  • 143
  • 1
  • 10
1
vote
1 answer

How to read the value of radio field using protractor

I am trying to read the value of a radio button that is selected by my test case, but I am always getting an error like this: Expected 'on' to be 'M'. What I understand from the above error is that protractor is expecting a value 'On' instead of…
Nihal Reddy
  • 113
  • 2
  • 11
1
vote
0 answers

Angular CLI 7: How can I use random port with e2e?

Background I'm running e2e-tests using a selenium server in CI, which results in following addition to my protractor.conf.js: directConnect: false, seleniumAddress: '...', Issue When upgrading Angular CLI from 1.7.2 to 7.0.6 I ran into this…
ChrisJ
  • 21
  • 5
1
vote
1 answer

Protractor test hangs on await browser.wait with disabled control flow

We're writing e2e tests in async/await fashion to be able to debug them. But test that has await browser.wait(ExpectedConditions.presenceOf(appPage.getLogo())); Just hangs on this line. I don't know why and I don't get it. It runs fine when control…
Blind Despair
  • 3,190
  • 2
  • 20
  • 31
1
vote
0 answers

Protractor not getting elements

I've got an Angular 6 app with e2e test I'm trying to make. In this test I first login, then trying to get all menu items and click over them, however I'm unable even to get a menu. My test results in timeout should easily navigate by menu …
Sergey
  • 7,184
  • 13
  • 42
  • 85
1
vote
0 answers

E2e testing doing nothing since upgrade to ng7

We just completed our upgrade to Angular 7 and since then, it does nothing any time we try to run e2e tests. It doesn't throw any errors, just doesn't do anything. I tried booting up a completely new angular project and e2e tests work fine there. I…
Aarmora
  • 1,143
  • 1
  • 13
  • 26
1
vote
0 answers

Angular e2e fails with 'Angular can't be found' because of Redux enhancer?

I have an angular application that is boilerplate, nothing meaningful, literally the 'welcome' template. I'm trying to run ng e2e but it fails, checking the chrome tab console before it disappears show me the same error I get when I have redux dev…
SebastianG
  • 8,563
  • 8
  • 47
  • 111
1
vote
1 answer

Angular e2e testing after production with VSTS pipelines

I'm using VSTS build and release pipeline to deploy my angular application. there is 3 ways to run e2e tests: 1- In the build pipeline after installing npm and angular dependencies. 2- In the release pipeline after the deployment of my…
1
vote
3 answers

Protractor e2e (Angular 6 Web UI) : Error: getaddrinfo ENOTFOUND chromedriver.storage.googleapis.com chromedriver.storage.googleapis.com:443

We are running e2e tests within corporate infra (behind proxy). From time to time there is an error (ng e2e --no-webdriver-update) : manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/ i 「wdm」: Compiled…
Igor Golovan
  • 91
  • 2
  • 11
1
vote
0 answers

Angular Protractor not detecting rendered component tag

I want to check if my app.component.htm has the tag chart html tag necessary to render my chartComponent. // app.e2e-spec.ts import { AppPage } from './app.po'; import { by, element } from 'protractor'; describe('App', () => { let page:…
TetraDev
  • 16,074
  • 6
  • 60
  • 61