Questions tagged [angularjs-e2e]

The End-to-End testing framework for AngularJS.

The End-to-End testing framework for AngularJS. For large and small applications that grow in size and complexity it allows automatic testing to verify the correctness of new features, catch bugs and notice regressions.

The solution for testing used by the framework is an Angular Scenario Runner which simulates user interactions that will help to verify the health of the Angular application.

Issues related to the E2E Testing provided by AngularJS (http://docs.angularjs.org/guide/dev_guide.e2e-testing) and distributed as ng-scenario.

546 questions
1
vote
1 answer

What is a good way to test change of location in AngularJS E2E test

I have a login form and now i would like to make an integration test to see if user is redirected to the other page after successful login. Behind the curtains there is authorization service that fires a page reload via $window.location.href =…
Edgar Zagórski
  • 1,509
  • 11
  • 14
1
vote
1 answer

AngularJS E2E testing: How to execute code once (Like beforeEach)

I'm running E2E tests against an AngularJS site, using Karma and angular-scenario. I'm executing some login code in a beforeEach function before every it block. My login function has a timeout delay in it to ensure that the login completes…
Scott
  • 17,127
  • 5
  • 53
  • 64
1
vote
1 answer

PhantomJS integration testing with angular against live backend

I am trying to make my e2e test environment to be like the actual production environment. I discovered that when I take out the ngMockE2E from my app and run tests that actually hit the backend server then all my tests in PhantomJS fail. In all…
whitehead1415
  • 435
  • 4
  • 14
1
vote
5 answers

can't run e2e tests with karma (for angular)

I can run unit and midway tests, however when I want to run e2e tests, nothing happens. There is not tests found as the output of karma suggests: C:\>karma start INFO [karma]: Karma server started at http://localhost:9876/ INFO [launcher]: Starting…
Sam
  • 13,934
  • 26
  • 108
  • 194
1
vote
3 answers

Angular E2E Test: Getting "input" from "element"

I attempting to set a text field value using angular's e2e test framework. Per their documentation, I have to use: input().enter() However, since the model is embedded in a repeater, passing the model isn't straight forward from the…
OnResolve
  • 4,016
  • 3
  • 28
  • 50
1
vote
2 answers

AngularJS e2e test with ENTER key

I'm trying to write unit tests for the AngularJS TODO MVC application, and I'm a bit stuck learning the e2e testing syntax. So far, here's what I have: describe('todomvc', function () { beforeEach(function () { …
arthurakay
  • 5,631
  • 8
  • 37
  • 62
1
vote
2 answers

AngularJS: Accessing $scope objects in e2e tests

I am building a Math tutoring application and would like to test my UI using angular's e2e testing suite. Currently I am working on a Fraction page that generates a random fraction, displays a series of shaded and unshaded boxes and asks the user to…
Noah Freitas
  • 17,240
  • 10
  • 50
  • 67
0
votes
0 answers

Reusable code for multiple describe() in the same spec file

Since I need to have different beforeAll() and beforeEach() implementations for different tests within the same spec file, I have decided to have two describe() within the spec file. However, there are some methods originally implemented within the…
0
votes
0 answers

Error attempting to retrieve CODE sent to gmail account using MailListener Protractor/Jasmine end to end Test

I have already installed MailListener npm install mail-listener2 --save-dev In My Config.js file, I have exports.config = { directConnect: true, capabilities: { browserName: 'chrome', }, framework: 'jasmine2', onPrepare: function…
John Mburu
  • 11
  • 5
0
votes
0 answers

Error for e2e : Process exited with error code 135

I am new in angular and I trying to run e2e but I got the below error on windows OS and not getting what is this. [09:50:58] I/launcher - Running 1 instances of WebDriver [09:50:58] I/direct - Using FirefoxDriver directly... [09:50:58] E/direct -…
Lucky
  • 325
  • 1
  • 3
  • 16
0
votes
2 answers

Element is not clickable in Protractor

I am facing issue while interacting with any element in a modal popup. I am using ChromeDriver 2.46 and all tests which involves modal popup fails on Chrome 74. I get below error element is not clickable. Other element would receive the click I have…
Akshay
  • 530
  • 7
  • 20
0
votes
0 answers

Angular e2e Fails at simple by.css expectation

I'm new to Angular and e2e. I'm trying to start with e2e default template that comes with Angular. I have made some little modifications to that trying to run. But some how my test fails at by.Css Here is the app.po.ts import { browser, by, element…
fingers10
  • 6,675
  • 10
  • 49
  • 87
0
votes
1 answer

Run several small test within one 'it' in E2E test using Protractor

I am working on a E2E test for a single-page web application in Angular2. There are lots of clickable tags (not redirected to other pages but has some css effect when clicking) on the page, with some logic between them. What I am trying to do…
T.Chen
  • 1
  • 3
0
votes
2 answers

Failed conversion the IF/Else condition to Ramda Cond

Working on an E2E using Ramda. I'm not getting how to convert a simple IF condition using Ramda Cond. Code using If : if (constraint == 'required') { // then only do something await waitForElementToBeClickable(constraintElement); await…
pkdq
  • 191
  • 1
  • 14
0
votes
0 answers

Unhandled promise rejection beforeAll in e2e test with async await

I have been searching a solution for this warning for weeks, I looked a hundered github or stackoverflow topics but solutions gave me peace never or temporary. So I opened about this topic pls don't get mad at me I'm stuck. I am writing e2e test…
codergirrl
  • 145
  • 1
  • 11