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
0
votes
0 answers
angular e2e tests - json object forEach method used in data driven tests throw "not a function error"
Have a data.json file and trying to use json data in e2e tests as given in below example.
https://www.c-sharpcorner.com/article/data-driven-testing-in-protractor/
The example works fine with github version. Same implementation throw below error with…

Patri
- 3
- 4
0
votes
1 answer
Cypress, get the numeric value of an attribute
To avoid going crazy again, is it possible to get the value of the htmlTemplateof this element?
I would like to get the number of that foo, so just the number…

Luca
- 335
- 3
- 19
0
votes
1 answer
Angular E2E acces environment variables
So I'm using NX with Angular and I have multiple apps with two possible authentification methods. Therefore I need to have a E2E test, that tests both authentification methods, because they differ in input fields. So this would be my attempt but I…

dewey
- 809
- 2
- 16
- 47
0
votes
2 answers
Access p-dropdown items using index in Cypress
I have a p-dropdown:
HTML:
TS:
theatreGroupsList: any[] = [
{ label: 'Hamlet', value: 100 },
{ label: 'Dutchman', value: 351 },
…

Alpha Bravo Charlie ...
- 800
- 2
- 13
- 31
0
votes
0 answers
Interract with gojs canvas when using angular e2e tests
I should make e2e tests on Gojs nodes.
The limitation is that GoJs generates canvas graphes so I'm not able to select nodes.
I found a post mentioning this problem here
In the code sample Robot.js is written inside the same scope of the diagram.
But…

infodev
- 4,673
- 17
- 65
- 138
0
votes
0 answers
Performance testing using E2E Protractor
Hi All!
I have protractor E2E Protractor test case in our application. Currently am doing R&D for getting performance information like script execution, memory consumption using our protractor test case.
My requirement :
I need to execute my…

Aravind Kumar
- 21
- 5
0
votes
1 answer
Protractor Angular 9: browser.executeAsyncScript() - window.ng is undefined
I'm trying to reference one of my services while executing e2e tests. I need this to have possibility to enable/disable my feature toggles mocking mechanism, and could perform tests for both states on/off of some feature.
I've tried with:
const data…

Tomasz
- 171
- 9
0
votes
1 answer
E2e testcase in angular not running due to version mismatch of chromedriver with chrome
My angular version is 7, the protractor version is 5.4.4 and Os is ubuntu. When I am trying to run the e2e test case from the command ng e2e following errors are coming.
[11:19:32] E/launcher - session not created: This version of ChromeDriver only…

rakshit jain
- 26
- 6
0
votes
2 answers
E2E Test with Protractor and Angular: Make protractor wait while browser is loading
I'm testing a webpage that is accessing a third website for handling the login (oAuth). In order to test my webpage, I first need to make my e2e test log in at the third website. I'm able to locate the input element for the user email address on the…

bwx--2
- 181
- 2
- 11
0
votes
1 answer
Angular Cucumber not finding any test to execute
I am trying to run e2e tests with cucumber. I have followed the steps here, and run my e2e tests. However, no tests are found. Why are no test being found?
The console output is as follows:
$ webdriver-manager update --no-gecko --ignore_ssl && ng…

Get Off My Lawn
- 34,175
- 38
- 176
- 338
0
votes
1 answer
0
votes
1 answer
ScriptTimeoutError while testing angular material dropdown e2e
I have this test case
it("should have list", async () => {
// wait until list populated
browser.wait(protractor.until.elementLocated(by.css(COMPONENT_CSS.ITEM)));
console.log("First...............");
try {
await…

Sunil Garg
- 14,608
- 25
- 132
- 189
0
votes
0 answers
How to write protractor 2e2 tests for Angular 9 app with mocked MsalGuard?
I have an Angular 9 (9.1.44) application, it utilises Azure B2C via the @azure/msal-angular (^1.0.0) and msal (^1.3.4) NPM packages to get authentication tokens to be used to access a backend service.
The app works fine, and the unit test all pass.…

Pete Stensønes
- 5,595
- 2
- 39
- 62
0
votes
1 answer
How to fix 'browser' being undefined when importing protractor in Angular
When importing protrator in an Angualr application I try to use the function browser.waitForAngularEnabled.
When I run the code I get the error:
E/launcher - Error: TypeError: Cannot read property 'waitForAngularEnabled' of undefined
I am importing…

codeThinker123
- 664
- 1
- 6
- 16
0
votes
0 answers
Angular 9 e2e test mutiple applications
I have an Angular 9 app. It has 2 projects in it. If I run e2e tests. it runs on the whole app. i.e. if I look for h1 tag, it takes the default app root h1 tag. I cannot make it access project 1 or project 2. How do I add / write an e2e test , to…

Pepper
- 709
- 1
- 7
- 15