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
2 answers

Selecting mat-option with protractor fails

The following way of selecting a mat-option fails: No element found using locator: by.cssContainingText("mat-option", "København K") element(by.id('area')).element(by.cssContainingText('mat-option', 'København K')).click(); here is the HTML: …
CodeHip
  • 367
  • 5
  • 18
0
votes
1 answer

How to test an Angular JS UI App, end to end testing using Mocha framework

I need to perform end to end test for Node.js front end Application developed using AngularJs 4. Currently we are using Mocha framework for Nodejs Rest API services. Can we use Mocha framework for testing Node.js front end Application developed…
Aman
  • 1
  • 3
0
votes
1 answer

E2E - how to test that confirmation email is being sent by register process?

I do have a register process/form which passes email, password, confirmPass and a tc checkbox which has a boolean value. When the user submits the form, an open dialogue with a text opens and in the other hand an email is being sent to the user to…
k.vincent
  • 3,743
  • 8
  • 37
  • 74
0
votes
1 answer

NG2 e2e tests hang due to webpack creating a websocket

I'm assuming it's webpack's live-reload feature that is creating the web socket. However, when running the e2e tests, they fail because NG2 never complete's its loading. So far a work around is... browser.waitForAngularEnabled(false); …
nullsteph
  • 791
  • 15
  • 28
0
votes
1 answer

How can I use the Angular HttpClient to write e2e tests for my backend api?

I want to write some tests for my back-end api. Because my front-end is Angular, I already have a complete testing framework in my environment and thought it would be good to use this rather than importing and learning something new (if I was doing…
Antony
  • 450
  • 1
  • 4
  • 15
0
votes
1 answer

Angular e2e doesn't detect an Angular application

I'am testing a login page, and then wait to load the home page title to expect true, but when I run the test I have this message: Failed: Timed out waiting for asynchronous Angular tasks to finish after 11 seconds. This may be because the…
Alan Grosz
  • 1,175
  • 10
  • 15
0
votes
2 answers
0
votes
2 answers

How to set collection of *ngFor from protractor in Angular 4.0?

app.component.html

{{student.name}}

I want to test whether all students have name. But students is a list which is getting set in app.component.ts. Now how should I set…
0
votes
1 answer

How to set repeater from protractor?

I want to set profCourses from protractor and test the functionality of inner html. How to set such binding from protractor? Is it…
0
votes
2 answers

Why Protractor (in a Angular (v.4) project) doesn't find any spec to test?

I'm working at an Angular (v.4) project and using Protractor I bumped into this issue From the terminal: I/launcher - Running 1 instances of WebDriver I/hosted - Using the selenium server at http://localhost:4444/wd/hub Started No specs found…
Donovant
  • 3,091
  • 8
  • 40
  • 68
0
votes
1 answer

Angular CLI - ng e2e throws error

I've just set up a new Angular 4 project using the Angular CLI. Just after creating it, I ran ng e2e and the sample end-to-end test executed perfectly. After this, I've added a subfolder inside the app folder called services, and generated a service…
0
votes
2 answers

How to read the HTML DOM in protractor

I want to retrieve the value for our version which is stored in HTML DOM. Using node.js and protractor. I don't know how to go about it. Please provide your valuable knowledge for the same :) I want the value 2016.R08.1.RC1
Jatin
  • 660
  • 3
  • 8
  • 28
-1
votes
1 answer

Protractor - wait X seconds while page loading, if still not loaded - click button again

My problem is that I have non-angular login page but sometimes when clicks Login button it stops on loading (login page still visible). What I want is that after click Login button I give it ex. 5 sec to finish load, if not - I want to click Login…
-1
votes
1 answer

Protractor can't perform click on
  • tag
  • I'm tring to make an e2e test of my application but I can't perform click on search engine. This is the example I want to try to "click" on the first element but protractor stuck on the image below : The website that I'm taliking about is this :…
    -1
    votes
    1 answer

    Difference between each and map in protractor

    What exactly is the difference between protractor map and protractor each function? The document says each and map both apply the callback function to ElementFinder from the respective ElementFinderArray. But how do they differ from each other? If…
    Deekshith Anand
    • 2,175
    • 1
    • 21
    • 24
    1 2 3
    11
    12