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.
Questions tagged [angular-e2e]
167 questions
1
vote
1 answer
How to use Angular Store in Cypress e2e tests
I need to inject a value (dispatch an action) in my Angular Store in order to make my Cypress e2e tests to work. Indeed, I need my store to contain { isLoggedIn : true } to access any page in the app, otherwise user is redirected to the login…

TCH
- 421
- 1
- 6
- 25
1
vote
1 answer
How to add cypress-plugin-tab to my Angular e2e testing?
I am using Angular12, NX, Cypress & KendoUI.
I need to test tabbing through form elements.
How do I add cypress-plugin-tab to my e2e testing?
The guide says use require in the suppport/index.ts file - this is not working for me.
I have executed npm…

cuznerdexter
- 586
- 5
- 21
1
vote
1 answer
Protractor - Angular Goes out of sync for feature modules
I am trying to run angular e2e tests using protractor.
Here is my angular project looks like:
Angular Project
Main module
HR module (Feature module)
Register Module (Feature module)
For my e2e tests they are running fine if I try to execute…

Just code
- 13,553
- 10
- 51
- 93
1
vote
1 answer
Protractor debugging using ng e2e
I could debug e2e tests by running below command separately -
node --inspect-brk .\node_modules\protractor\bin\protractor .\e2e\protractor.conf.js
However, I'd to run 'ng e2e' separately along with above command for debugging which opens up two…

coder87
- 145
- 1
- 8
- 21
1
vote
0 answers
dynamically created element not found by protractor
When getting an error from the server, I am showing a toastr (akveo nebular component) with the error message, like this.
The problem is, protractor can't seem to be able to find the newly created toastr.
Here is the testing bit, that is trying to…

Adrian C.
- 260
- 5
- 21
1
vote
0 answers
SELF_SIGNED_CERT_IN_CHAIN error angular protractor
I'm running e2e test in angular app using protractor, and I proxy the backend requests to link that run under corporate network and I keep getting SELF_SIGNED_CERT_IN_CHAIN error; I have tried webdriver-manager update --ignore_ssl, npm config set…

monica millad
- 81
- 9
1
vote
2 answers
Protractor: How to write a locator to select the desired div and click the button on it?
There are three blocks on the page, for example.
example scructare
Each block has a title and div.action with a button example
The headings are different for everyone. I need to select a div with a Text heading and click a button
I find this element…

tttyyyrrrryyy
- 53
- 4
1
vote
1 answer
Gitlab CI: How to configure cypress e2e tests with multiple server instances?
My goal is to run a bunch of e2e tests every night to check if the code changes made the day before break core features of our app.
Our platform is an Angular app which calls 3 separate Node.js backends (auth-backend, old- and new-backend). Also we…

L. Heider
- 1,579
- 1
- 14
- 31
1
vote
1 answer
How to debug "Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL"?
I have a test that passes locally but it fail during Gitlab CI pipeline due to timeout error.
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
Which way can I go through to debug this? I…

Francesco
- 405
- 3
- 15
1
vote
1 answer
Protractor two buttons with the same text
Hey so I have this issue with Protractor e2e test:
I have menu with sub menu.
Menu and sub menu has the same name text of buttons inside (1 in menu, 1 in sub menu) for example we can name it "menuItem".
I know how to find and click first "menuItem"…

r2d23
- 43
- 1
- 4
1
vote
2 answers
How to write an unit and/or e2e test for function that calls services
How would I approach writing a unit test for this function? When the form is submitted, it sends a POST request to get a login token. With the token response it then sends another request to get the specific user details.
Here is the function:
//…

anthony
- 13
- 2
1
vote
1 answer
e2e Tests fail due to 404, but 404 is expected
I have a small Angular 8 method, where I read a local file. However, it is possible, that the file does not exist, which is fine. Unfortunately, my Protractor e2e tests fail:
Entry({ level: SEVERE, message: 'http://localhost:4200/assets/details.txt…

PrimuS
- 2,505
- 6
- 33
- 66
1
vote
0 answers
Angular e2e tests fail when passing page with integrated map from mapbox-gl-js with Timeout - Error
Our Angular app contains different pages, with one of them showing a map integrated with mapbox-gl-js.
Since we integrated mapbox, our protractor e2e-test fail.
As soon as the test reaches the page, where the map is shown, the next click on any…

code4candy
- 21
- 3
1
vote
1 answer
Protractor and async/await
This is my Page Object class
export class TopMenu {
topbarMenu: ElementFinder;
menuItems;
numberofMenuItems: number;
constructor() {
console.log("TopMenu constructor called");
this.setMenus();
}
async setMenus() {
…

AMendis
- 1,346
- 4
- 18
- 34
1
vote
2 answers
How to use protractor element.all within aync/await function
My Code is like
async function myTestFunc(){
let items:ElementArrayFinder = await element.all( by.xpath("./li"));
}
That code gives below error
'items' is declared but its value is never read.ts(6133)
Type 'any[] | ElementFinder[]'…

AMendis
- 1,346
- 4
- 18
- 34