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
16
votes
3 answers

Setting cookies before browser.get

Our (PHP) application requires certain cookies to be set in order to load an Angular.js client app. If the cookies are not set an exception is thrown and error page is shown. This means in order to run E2E tests we need to set the cookies, but the…
Petr Peller
  • 8,581
  • 10
  • 49
  • 66
16
votes
3 answers

Protractor: Testing Angular App in an Iframe

I've got an interesting setup here. I have an Angular App that loads another Angular App inside an iframe. I'm interested in testing the iframed-in Angular app with Protractor. Protractor is waiting for the first Angular app to load, but when I…
Josh Minzner
  • 560
  • 1
  • 5
  • 13
13
votes
4 answers

“cannot get automation extension” error with chrome version: 57.0.2987.98

chrome version : 57.0.2987.98 m (64-bit) "protractor": "4.0.11", "protractor-console-plugin": "0.1.1", "protractor-jasmine2-html-reporter": "0.0.6", "protractor-notify-plugin": "1.0.0", protractor failed to launch chrome with the following error: …
Mithun Shreevatsa
  • 3,588
  • 9
  • 50
  • 95
13
votes
3 answers

protractor expect currenturl fails

I'm trying to get an e2e test running against my local server and test that the resulting url (after a navigational button has been clicked) is the correct result. However the resulting url is always false. My code is shown…
Ian Richards
  • 1,618
  • 4
  • 17
  • 36
13
votes
1 answer

Can protractor test a login that is not angular based

I am testing an application written predominantly in angularjs however some elements of the application are written in .NET C#, such as the login form. My question is this. Can I leverage Protractor and test my application fully with e2e testing.…
Ian Richards
  • 1,618
  • 4
  • 17
  • 36
13
votes
5 answers

Error when running angularjs karma sample

In the introtokarma app, I changed the karma-e2e-config.js file as follows: module.exports = function(config) { config.set({ basePath : '../', files : ['tests/e2e/**/*.js'], frameworks: ['ng-scenario'], autoWatch : false, …
Mel
  • 245
  • 5
  • 15
13
votes
3 answers

Javascript.confirm() and Angularjs Karma e2e test

I have an Angularjs application that uses simple javascript confirm before executing some actions. Controller: function TokenController($scope) { $scope.token = 'sampleToken'; $scope.newToken = function() { if (confirm("Are you sure you…
mrt
  • 1,669
  • 3
  • 22
  • 32
12
votes
3 answers

Clicking on given coordinates of element in protractor

I want to click on a specific location of my canvas element, so I wrote the following Protractor code: var canvas = element(by.id("canvas")); var clickCanvas = function(toRight, toBottom) { browser.actions() .mouseMove(canvas, -toRight,…
Bowzer2
  • 273
  • 1
  • 2
  • 7
12
votes
1 answer

Set an item from localStorage in a protractor test

describe('The feature', function() { beforeEach(function () { browser.executeScript('localStorage.setItem("key","value");'); }); it('should do this', function() { }); }); but i get this error when the test is run against…
12
votes
4 answers

Page Objects in AngularJS Protractor E2E Testing

What is the right way to handle the Page Objects model for writing Protractor E2E testing for AngularJS? I feel like I should write them in separate files (like homepage.js, page2.js, etc) then include somehow them into the specs like modules as…
wlingke
  • 4,699
  • 4
  • 36
  • 52
11
votes
2 answers

Protractor - Wait for async promise before doing next

First of all, I've already checked various post and blogs concerning that point and I still can't figure out how to make it correctly. I have tried many different combinaison of : browser…
aorfevre
  • 5,034
  • 3
  • 21
  • 51
11
votes
8 answers

How to simulate a drag and drop action in protractor?

I have a double slider and I'd like to test that it's operable and return's the right data. The slider has a min and a max handler, it also has some "breakpoints that I can hook to. " What I want to simulate is a touchStart of the ".handler-max"…
11
votes
1 answer

$httpBackend.whenGET() passThrough() not defined

I would like to pass some of my http request through and not mock them in my unit test, but when I try to call passThrough() method, an error of missing method is thrown: "TypeError: Object # has no method 'passThrough'". Does anybody know how I…
Adam Bernau
  • 729
  • 2
  • 6
  • 12
10
votes
1 answer

Waiting for Ionic Loading dialogs with Protractor

There are similar questions (linked below) but none solves this problem. I'm writing Protractor tests for an Ionic Project. I need to execute tests at times when an Ionic Loading dialog appears and disappears. I've created a repo with the bare bones…
10
votes
5 answers

A Jasmine spec timed out. Resetting the WebDriver Control Flow - when redirect to new page

I'm beginner in the e2e testing and have a problem. When I do login - I make redirect from login.php to index.php page. But my test is fails with following errors: ..A Jasmine spec timed out. Resetting the WebDriver Control Flow. F Failures: 1)…
Gleb
  • 1,312
  • 3
  • 18
  • 36
1
2
3
36 37