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
0
votes
1 answer

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 without the angular build steps because it's a waste…
0
votes
1 answer

npm run e2e returns nothing in the terminal

I create my application using Angular 7, here is my package.json snippets: "scripts": { "ng": "ng", "standardize": "prettier **/*.ts --write", "start": "npm run standardize && ng serve --port 5000", "build": "npm run standardize &&…
A. Isakau
  • 163
  • 1
  • 3
  • 13
0
votes
0 answers

How to Properly Test Observables for e2e testing in Karma?

Currently I am trying to write a test that will perform the following actions: Load my Component Wait for return from a service class (HTTP Call + Observable) Check value returned. Service class: getMyInfo(): Observable { return…
0
votes
2 answers

Angular e2e - should render title in a h1 tag

I am developing my own website. I am new to Angular and just based on learing and online posts, I started developing my website. While running tests, I faced an error for getting h1 tag value. I developed routes. One of the routes that AppComponent…
0
votes
0 answers

How to inject services in e2e testing angular (protractor)

i need to inject two services to my e2e test to test my service, first UrlDecoratorService second is APIFetcherService how to do that in e2e testing (protractor)? this is two question i posted to understand my problem. first post second post and…
Saad
  • 346
  • 4
  • 20
0
votes
1 answer

angular e2e testing : how to test Service inject(use) another services

i'm trying to test my service with e2e test angular 7, my problem is i don't know how to do that: it's my service, (the methode return Observable): import { Injectable } from '@angular/core'; import { UrlDecoratorService } from…
Saad
  • 346
  • 4
  • 20
0
votes
1 answer

Ag-grid access and edit cell from Protractor e2e tests

I'm looking to the right way to end to end test (e2e) an ag-grid angular application. protractor documentation says that you can use by.model(modelName) to sendKeys to an input field using…
HDJEMAI
  • 9,436
  • 46
  • 67
  • 93
0
votes
2 answers

E2E Angular application for slow network 3g slow using Protractor

I have a question, I need to simulate slow network on my e2e tests with Protractor. I'm using anuglar-cli and angular5. I have tried to find a way to simulate slow network without success, using setNetworkConnection But it's fails to work and throws…
hackp0int
  • 4,052
  • 8
  • 59
  • 95
0
votes
0 answers

sendKeys stops the e2e test flow in Protractor

I have the following code: const inputBoxes = await landingPage.getPortIdInputBox(); await inputBoxes[0].sendKeys('0040'); await inputBoxes[1].sendKeys('9142'); const url: string = await…
Pritam Bohra
  • 3,912
  • 8
  • 41
  • 72
0
votes
1 answer

Protractor test for yes button click on mat-dialog

I have an angular 6 material dialog for deleting entities (employees). I want to set up protractor step to click the dialog's yes button to invoke the delete. Right now I have a page object function that does this: deleteYesButton = () =>…
user3253156
  • 381
  • 1
  • 2
  • 10
0
votes
2 answers

Protractor's mouseMove() unsupported for geckodriver firefox

Is there any alternative for protractor's mouseMove? I would like the mouse to hover over the menu. But it appears to be unsupported with geckodriver. So far I've tried, browser.executeScript('arguments[0].mouseMove()',…
Isabella
  • 133
  • 1
  • 2
  • 13
0
votes
0 answers

I am using angular and protractor e2e test. How to reduce the time it takes each test to start?

I have this test e2e in protractor: describe('My App', () => { beforeEach(() => { // browser.waitForAngularEnabled(false); }); let page: AppPage; it('Debe Crear una nueva especie', () => { page = new AppPage(); …
0
votes
1 answer

Protractor : Failed: Timed out waiting for asynchronous Angular tasks to finish after 11 seconds

I'm getting below error: Failed: Timed out waiting for asynchronous Angular tasks to finish after 11 seconds. This may be because the current page is not an Angular application I've seen similar question but none of them seems to have a good…
0
votes
0 answers

Keep application-state in protractor E2E tests

I have a big application written with angular and I currently try to introduce e2e testing. Is it possible to keep the "state" of the application and not write a single it statement. So at the my tests look like this: describe('Dashboard', () => { …
be-ndee
  • 1,153
  • 3
  • 13
  • 19
0
votes
2 answers

Protractor element(by.css('id_name')).getText() causes browser to wait

Version info Angular CLI: 6.0.8 Node: 8.11.2 OS: win32 x64 Angular: 6.0.3 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router Package …