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

Protractor selector using blocker

I have a list that used to show different kinds of profile status. The status maybe like passed, failed, attention, reading and so on. In Chrome inspector, I could use Jquery syntax to locate the list. $('div > div > li > div:has(span.passed,…
Boyka Zhu
  • 391
  • 1
  • 4
  • 18
0
votes
1 answer

Protractor/Jasmine how to get the correct spec result status

I have below spec, in the afterEach, I defined a variable to verify the spec result status, and want to do something according it. After execute the the expected false spec, I found the variable didnot return the correct result. describe('test…
0
votes
1 answer

How to locate elements in another view in protractor

So I have a page that has a frame, and in that frame another view. How do locate the elements inside the view and test it? I know how to access that frame, just locating the view after that is pretty confusing. my problem looks similar to this: How…
kennanwho
  • 171
  • 1
  • 3
  • 14
0
votes
1 answer

Failing e2e tests pass build in Teamcity

we have recently just killed all our e2e tests in Teamcity (ooops) by upgrading node version. I'm sure this is something we are able to sort out, BUT it has highlighted that Teamcity isn't set up right (or something else is a miss). As I say all…
dazziep
  • 245
  • 1
  • 4
  • 16
0
votes
1 answer

find the element in the source html code for invalid login case in protractor

I'm trying to write a simple "failed login" test in protractor. The thing is, i can't point (don't know how), to the specific string in the source code. I tried all kinds of things like: cssContainingText, to equal, get text and etc. (maybe it's ok,…
0
votes
2 answers

Protractor test failed only in firefox (due to retrieve the option in a select box)

I am using protractor 3.0 with firefox 44 and chrome. My test passed when I use chrome, but some of my test (mostly the test involving select field) failed with firefox. I used this to retrieve the proper…
0
votes
1 answer

Custom class or attribute in E2E testing

Having pretty complex angular application with many pages (states) and conditional sections that creates a lot of test scenarios I need to perform e2e tests. I'm tired of nested selectors like 'div.SomeComponent > ul:nth-child(2) > ... ' and so on …
adam
  • 2,264
  • 2
  • 13
  • 6
0
votes
0 answers

Testing broken links with Protractor

I'm using Protractor for e2e tests. I want to test all the links in my website to see whether they are broken or not. the thing is that I can't use existing tools for 2 reasons: 1. we are using Angular, so the server doesn't really returns '404'…
0
votes
1 answer

Protractor clicking on dropdown toggle

I am running E2E on my angular application using Protractor. I am running into a very weird problem. I am using the Bootstrap Dropdown which has some options. I need to click on one of the options. I referred this answer which tries to do…
Saurabh Sood
  • 213
  • 1
  • 2
  • 9
0
votes
2 answers

Multiple browser windows open automatically while testing with protractor

Recently I found that whenever I run my protractor tests, multiple chrome browser windows pop up automatically. They seem to resemble the command prompt windows (click here for a screenshot) and open as each test case is run. Manually closing the…
0
votes
1 answer

Protractor ignoreSynchronization issue

I am developing the e2e test suite for one of my applications. We have a sso that is a non angular site, our site is an angular site. in the start of my test i make a call to SSO settings: browser.ignoreSynchronization = true; …
amit mishra
  • 13
  • 1
  • 3
0
votes
1 answer

Isolation of actions and tests

I try to refactor my code. I know that if I have several expectations they should be isolate in 'it'. I try to understand how I can write instead this: describe('my scenario should make', function () { var config = browser.params; var url =…
0
votes
1 answer

Protractor: path relative from the element

I want to write something like: return component.element(by.xpath('//div/div/a')); // I want: path to component + xpath But I always have the result same with: return element(by.xpath('//div/div/a')); // I always have: just xpath Component is an…
0
votes
1 answer

Running protractor e2e on Firefox

I have a site which uses client certificate to authenticate the user and I want to do e2e testing for that site I tried to run protractor with firefox browser, it opens the browser but then it is not asking for user identification(screen to ask user…
Demona
  • 227
  • 1
  • 3
  • 10
0
votes
1 answer

httpBackend explicit annotation for Angular app in strict mode

I am using Protractor's addMockModule functionality to mock some request data, but am having issues with the target Angular app being in strict mode. This is the error: Failed: unknown error: [$injector:strictdi] function($httpBackend) is not using…
magicode118
  • 1,444
  • 2
  • 17
  • 26