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

Test login with protractor on a non angular page

I am trying to use protractor for e2e testing but first I need to login on a non-angular page. I try to directly use the webDriver as indicated here but it fails. My e2e test: describe('angularjs homepage', function() { it('should prompt the…
9
votes
2 answers

Selenium Grid error on GitLab CI: Error forwarding the new session Empty pool of VM for setup Capabilities

Since documentation on GitLab CI configuration and Selenium is generally poor, I'm asking for help. Configuration as by interest point: gitlab.ci.yml: image: node:7 variables: HUB_PORT_4444_TCP_ADDR: "selenium__hub" HUB_PORT_4444_TCP_PORT:…
Ain Tohvri
  • 2,987
  • 6
  • 32
  • 51
9
votes
1 answer

Protractor : get element which has not a specific class

Im trying to get an e2e test to work on the next example: HTML:
This is line 1 This is line 2
Protractor: .. element.findByCss('div[ng-if="selectedItem"]…
W vd L
  • 625
  • 9
  • 26
9
votes
1 answer

Use npm protractor webdriver-manager to start selenium server at a different port

I am trying to run E2E tests for an angular application using protractor. I use the command ./node_modules/protractor/bin/webdriver-manager to start my selenium server. However the default selenium server location is localhost:4444/wd/hub, but…
Selah
  • 7,728
  • 9
  • 48
  • 60
9
votes
1 answer

What is midway testing?

So I've heard of unit and integration testing, but I just recently heard of midway testing. It seems like the term is used most commonly in an AngularJS context. A Google query turned up very little information on the topic. My questions about…
9
votes
5 answers

Getting error: Error while waiting for Protractor to sync with the page: {}

My e2e.conf.coffee file is: exports.config = baseUrl: 'http://localhost:9001' specs: [ 'e2e/**/*.coffee' ] framework: 'jasmine' I have my node project running and listening on port 9001. My test is: describe 'Happy Path', -> it…
Shamoon
  • 41,293
  • 91
  • 306
  • 570
9
votes
3 answers

How to test drag & drop functionality in AngularJS e2e testing

I am trying to test my application where I need to move a widget from one location to other, in other word I need to test drag & drop functionality in an end to end test. How would I test this?
Zahid Afaque
  • 243
  • 4
  • 13
8
votes
1 answer

Disable Jasmine expectation, like xdescribe or xit?

On the Jasmine website I see that we can disable suites by xdescribe or individual specs by xit. Is there a way to disable only an expectation (like xexpect)? The reason why I'm asking this is because I'm writing e2e tests with Protractor and in our…
Vince Varga
  • 6,101
  • 6
  • 43
  • 60
8
votes
1 answer

Protractor addMockModule and $httpProvider interceptor

This question is a possible solution for my other question (where they advice to use addMockModule from protractor): Call other api when running tests using Protractor. I have the following file: mockedRest.js this is the module I want to add to…
emp
  • 4,926
  • 2
  • 38
  • 50
8
votes
1 answer

Angularjs - simulate touch event in Protractor e2e test

I use Protractor with Jasmine for my mobile Angularjs app. I want to test a touch event (touchStart / touchEnd etc...) on a particular element. Something like: it('should play video', function(){ var poster = by.css('.video-poster'); …
Yaniv Efraim
  • 6,633
  • 7
  • 53
  • 96
7
votes
1 answer

Protractor how to run login test script first

I am trying to test an Angular Single Page application with protractor. I need to run the login script first. Only then I can move to other routes since there is a check for token in localStorage on route change. Is this testing approach correct?.…
7
votes
7 answers

Setting up Protractor with Microsoft Edge

I use CucumberJs and Gulp to run my e2e tests; However, I need to run them against Microsoft Edge. When I do gulp protractor, it successfully opens up both Chrome and Firefox, since neither of them require any drivers like IEDriver.exe or…
pelican
  • 5,846
  • 9
  • 43
  • 67
7
votes
1 answer

Setting timezone in MomentJS

I made some test code for my JavaScript SPA application. I set the locale for the entire SPA pretending to run it in different parts of the world. Now, I set the locale overriding the getTimezoneOffset() function of the Date()…
Gianluca Ghettini
  • 11,129
  • 19
  • 93
  • 159
7
votes
2 answers

How can I make Protractor NOT wait for $timeout?

I'm testing my angular application with Protractor. Once the user is logged in to my app, I set a $timeout to do some job in one hour (so if the user was logged-in in 13:00, the $timeout will run at 14:00). I keep getting these failures: "Timed out…
Tamar Cohen
  • 1,272
  • 2
  • 16
  • 28
7
votes
2 answers

Protractor: Polyfill Function.prototype.bind in PhantomJS. Can't make it work, is it even possible?

I've spent the afternoon on this and am making no progress, I'm really starting to wonder if it's even possible. I'm using Angular with Headroom to handle a menu disappearing when scrolling down. My testing is done with Protractor, using PhantomJS,…
gCardinal
  • 632
  • 2
  • 9
  • 27
1 2
3
36 37