Questions tagged [e2e]

146 questions
8
votes
4 answers

App in cypress redirects, outside does not

I am trying to write end to end tests for this application with Cypress: https://app.gotphoto.com/admin/auth/login When I visit the above url from my browswer, a login form is showing, as expected. When I visit the above url through…
handris
  • 1,999
  • 8
  • 27
  • 41
6
votes
3 answers

cypress Cypress.config.baseUrl is set correctly however getting error from cy.visit()

here is my test: describe('settings page test', () =>{ it('tests navigation to settings page from login', () =>{ console.log(Cypress.config().baseUrl) cy.visit(Cypress.config().baseurl) the console.log(Cypress.config().baseUrl)…
48326tho
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

MSAL and OAuth 2.0 - Request an authorization code programmatically

Goal is to get access token from MSAL programmatically for Cypress e2e tests. We use V2.0 API. According to this I first need to get the authorization code:…
anmatika
  • 1,581
  • 3
  • 21
  • 29
5
votes
2 answers

Since Angular 11.0.3, e2e tests produce error

Since 11.0.3 angular/core version, E2E tests are not working on a project with the default configuration. I open an issue https://github.com/angular/angular/issues/40221 but it seem it's not a regression (?) Minimal…
4
votes
3 answers

Framework for end to end testing flutter application

What is the most popular or most convenient framework to write automation tests (user flows) with flutter framework? any help advice would be kindly appreciated.
bobby bobby
  • 83
  • 1
  • 8
4
votes
3 answers

Cypress - Testing that a browser-specific alert exists when submitting invalid input

I'm trying to test that invalid input warns the user. The html "type" of that input is "email", so the browser actually displays this bubble rather than an element we expose on the site. This bubble in question as far as I can tell is…
J.Long
  • 335
  • 3
  • 11
4
votes
1 answer

How to select ant desing select option with playwright or cypress

How do I select option in ant design Select component with any e2e automation framework? (I will be able to rewrite your solution to playwright which I am personally using) I know the question might seem simple so you might be tempted to suggest…
Hnus
  • 912
  • 2
  • 9
  • 24
4
votes
0 answers

Chrome extension with angular: cannot run test

I have a chrome extension that I need to add the tests to, I'm using karma + jazmine and sinon-chrome to mock up the Chrome API. Every time I run the Karma tests, it does them as if it were a web page and some functionalities are out of Karma's…
4
votes
1 answer

Angular e2e testing - check template before OnInit executes

In Angular 9 application, I have component that in ngOnInit(): void { this.records$ = this.service.loadRecords(); } loadReords() returns Observable that starts with null and next after Http request completes emit list of records. In template…
bensiu
  • 24,660
  • 56
  • 77
  • 117
3
votes
1 answer

Cypress drag and drop by offset

I am trying to make DnD work in Cypress and React app. At first I was trying all examples around those with simulating by mouse events but it is not working in general in my environment. :( I was able to write a test where I know the drag element…
Ivan Mjartan
  • 1,125
  • 1
  • 12
  • 23
3
votes
1 answer

Unable to get cypress new location/href after page load

I'm trying to execute this test on Cypress: get URL parameter/query with of the current page eg: localhost:3000/?redirect_link=X Click on skip button inside of the current page Redirects to another page (it's a page, not component so it's…
Lucy
  • 85
  • 6
3
votes
2 answers

Clicking on button in iframe in Cypress

Ran into the issue, where the test code should click the button Process in the iframe. Used npm i cypress-iframe lib, but came up to nothing. Cypress could not find the button. Tried…
SimonB88
  • 31
  • 3
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
1 answer

Cypress get multiple element value without chaining them

I have tree value on my page. After one event these tree values should change. I want to get the initial value of them, then after the event, I would like to see if they increased correctly. Can I read and save these tree values without chaining…
BergkampHUN
  • 90
  • 1
  • 6
3
votes
0 answers

How to separate Cypress package.json in Angular?

Cypress npm dependency is quite big, so I want to separate it in its own package.json inside e2e folder inorder to consider it only while running E2E tests. I created a new e2e/package.json file { "name": "e2e", "version": "1.0.0", …
Smaillns
  • 2,540
  • 1
  • 28
  • 40
1
2 3
9 10