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

How to debug Cucumber - Protractor in Visual Studio Code (VSCode)?

I am trying to debug Gherkin Cucumber scenarios in Visual Studio Code but I am getting the following error:- Parse error in 'zFunctionalTests\protractor_ui.conf.js': (1:1): expected: #EOF, #Language, #TagLine, #FeatureLine, #Comment, #Empty, got…
0
votes
1 answer

Protractor: "session not created: Chrome version must be between 71 and 75"

I'm trying to run Angular Protractor e2e tests and getting this error: session not created: Chrome version must be between 71 and 75
Matt
  • 33,328
  • 25
  • 83
  • 97
0
votes
1 answer

Protractor after disabling control flow cannot find element

I've disabled the control flow and started spreading async/await accross my e2e tests. And here the problem arises that Failed: Index out of bound. Trying to access element at index: 0, but there are only 0 elements that match locator By(css…
Sergey
  • 7,184
  • 13
  • 42
  • 85
0
votes
1 answer

How do I have the cli add an e2e folder for my app?

I would like to do end-to-end testing with my Angular5/ionic3 app but I notice there is no e2e folder in it. What do I need to do to use the cli to generate a e2e folder so I can begin writing my e2e tests?
Robert Green MBA
  • 1,834
  • 1
  • 22
  • 45
0
votes
2 answers

Make list of specs dynamic in Protractor

We need the ability to run a dynamic set of spec files. // Would be ideal, but not working exports.config = { specs: () => { /* Load list of tests to bu run from API or from CSV file }, ...... } Any ideas would be appreciated.
DanDuh
  • 500
  • 1
  • 5
  • 17
0
votes
1 answer

Element not found by tagname jasmine and protractor

My below test always fails as protractor cannot find the element by tag name. it('should show test component',async () => { await browser.get('/trade') element(by.tagName(('test-component'))).isPresent() .then(value=>{ …
User3250
  • 2,961
  • 5
  • 29
  • 61
0
votes
1 answer

Nx cypress - adding custom plugin for visual testing

I am trying to set up a one of visual testing plugin from cypress https://docs.cypress.io/plugins/#visual-testing but in nrwl nx monorepo. I follow the guide from https://github.com/meinaart/cypress-plugin-snapshots but can't make it work. Actual…
0
votes
1 answer

E2E - Input file. How to close Finder Window after loading and selecting file?

I use an input file to load data from a xml file. HTML Code:
k.vincent
  • 3,743
  • 8
  • 37
  • 74
0
votes
1 answer

How to test the apparition of a span?

I'm testing the login page , in the scenario when I enter an invalid logIn and Password , I'm looking to collect the span "Authentication Failed" I select the span webElement by xpath…
Mo Elkinani
  • 53
  • 2
  • 8
0
votes
2 answers

How to skip a test-case file from executing for a particular browser in Protractor

I am using Protractor for writing e2e test cases in Angular using Jasmin. I am using Saucelab for executing my test cases on Chrome, Firefox, Edge and IE11. I came across a issue that hover functionality using mouseMove doesen't work in case of IE11…
Shashank.gupta40
  • 915
  • 1
  • 8
  • 26
0
votes
2 answers

How to check an element is having display block / none style in Protractor?

I'm having two div's which are having same css, only difference is the style is having display:block and none.
Cegone
  • 489
  • 1
  • 9
  • 23
0
votes
1 answer

Protractor: assert video is playing

In my web application built with Angular, I have a
Francesco Borzi
  • 56,083
  • 47
  • 179
  • 252
0
votes
2 answers

What are all of jasmine expected conditions we can use for a test case?

There are several expected conditions such as toBe, toEqual,... that we can using in a test case. expect('an expression').toBe('a value'); expect('an expression').toEqual('a value'); expect('an expression').*('a value'); I need to know domain of…
Mostafa Farhani
  • 305
  • 2
  • 16
0
votes
2 answers

How to specify different configuration files for e2e in angular-cli?

I am using protractor for running e2e tests. I have a base config file and two other config files that override some options in the base config file. I want to be able to specify different configurations in the angular-cli.json for running e2e…
cris
  • 171
  • 3
  • 14
0
votes
1 answer

"Cannot assign to Service because it is not a variable" using Angular 4 Testbed e2e testing

I am using Angular 4 with TestBed, as per the documents here: https://angular.io/guide/testing#service-tests I have a simple Service: @Injectable() export class SimpleService { getValue() { return 'Hi'; } } And a test, which instantiates this…
christofr
  • 2,680
  • 1
  • 18
  • 19