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

Test an element is in viewport with protractor

I want to test if my app scrolled to a specific post inside a thread page. Initially I thought isDisplayed might help, and coded something like: element(by.id(postId)).isDisplayed().then((isDisplayed) => { …
Robert T.
  • 1,620
  • 2
  • 13
  • 20
5
votes
3 answers

Angular 2 e2e using protractor: by.model not working

While writing test cases using protractor.js for Angular 2 application , if I want to get element(by.model("xyz.test")) its always giving failure saying angular is not defined. Any idea how to fix this issue?
4
votes
0 answers

E2E Testing using cypress - Azure AD Single Sign On

I have been trying to achieve end to end testing using cypress in my angular project and is stuck with a single sign-on issue. Please help me with possible approaches. Briefing: My Angular application uses Azure AD Microsoft login to authenticate…
Ash
  • 51
  • 6
4
votes
2 answers

Can't run Angular > 2 e2e using protractor behind a proxy

will appreciate any help! I'm running on windows I installed protractor Version 5.3.0 globally Before updating webdriver I ran: webdriver-manager clean And updated version as follows: webdriver-manager update --ie32 --proxy …
liron_hazan
  • 1,396
  • 2
  • 19
  • 27
4
votes
1 answer

Mocking rest calls in functional e2e protractor tests in angular 4 project

We have a huge project and we have written a lot of test cases to cover a lot of real scenario user behavior in our e2e functional test cases. As the test goes on, it makes a lot of rest calls to complete the test cases. When we cover different…
Aniruddha Das
  • 20,520
  • 23
  • 96
  • 132
3
votes
1 answer

Cypress net::ERR_EMPTY_RESPONSE on real server calls

I'm trying to test my fullstack angular-nestjs-application with cypress e2e tests. Server calls from within angular to not reach my backend running on localhost:443 (I tested it with 0.0.0.0, 127.0.0.1 like some other answers requested - without…
Sascha Geier
  • 153
  • 11
3
votes
0 answers

How to fix zone-testing.js is needed for the fakeAsync() test helper but could not be found

I'm having this error when trying to run e2e tests with protractor in my angular 12 application, - Failed: zone-testing.js is needed for the fakeAsync() test helper but could not be found. Please make sure that your environment…
3
votes
1 answer

Cypress XHR requests get aborted when running headless, in cypress based image container

Cypress XHR requests get aborted when running headless, in a cypress-based image container. Browser: Electron describe('Test Sign-In and search', () => { before(() => { cy.clearLocalStorageSnapshot(); }); beforeEach(() => { …
Ido Bleicher
  • 709
  • 1
  • 9
  • 19
3
votes
2 answers

Has anyone figured out a way to get ChromeDriver in Protractor to always use the stable version?

I have this issue that comes up every time Chrome releases an update. Here is the scenario: All browsers are on Chrome 83 Chrome announces that Chrome 84 is about to come out, but it is not released yet. ChromeDriver 84 is created and protractor…
3
votes
0 answers

Activating Ng-ApiMock Mocks on Angular 9 e2e Protractor Tests

I'm trying to implement ng-apimock on my Angular 9 app by npm install @ng-apimock/core --save-dev npm install @ng-apimock/protractor-plugin --save-dev Then on protractor.conf.js I have added the plugin : exports.config = { plugins: [{ …
Arco Voltaico
  • 860
  • 13
  • 29
3
votes
2 answers

How to make protractor run with puppeteer and chrome 78?

I am using Protractor for Angular E2E Tests + Puppeteer for a consistent Chrome Version in all CI-Servers. Lately I am getting SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 78 Errors.…
3
votes
1 answer

Catch console errors while running e2e tests with jasmine and protractor

While running e2e tests (protractor, selenium) I want to catch any console errors and warnings generated by application. I know protractor plugin protractor-console-plugin which catches console and make tests fail but it prints all logs from all…
koral
  • 2,807
  • 3
  • 37
  • 65
3
votes
1 answer

angular ng e2e testcase with file download not working with headless chrome

In an angular2+ project I have an e2e testcase that clicks a button, a file gets downloaded, and the content is checked. It works in normal mode, but not in --headless mode. The file is not downloaded, and the testcase times out. In my…
2
votes
1 answer

Cypress 10: Custom command is not a function

I have this error, cy. is not a function: But I already updated the e2e.ts with this: import './commands'; Here is my commands.ts: declare namespace Cypress { interface Chainable { login(email: string, password: string):…
Asdf1234567
  • 476
  • 1
  • 10
  • 25
2
votes
1 answer

Angular 13.x - How to fix import * as i0 from '@angular/core' issue?

I did upgrade my app from Angular 12.x to version 13.x Build and Serve etc. work fine. But when I try to execute e2e-test I face following error: E/launcher - Error:…
k.vincent
  • 3,743
  • 8
  • 37
  • 74
1
2
3
11 12