Relative Content

Tag Archive for cypress

I am unable to interact with the element that opens on another page

`When I click on the Treasury button, Cypress calls another page that is opened outside the execution environment. If I don’t use visit I can’t interact with the element. I don’t want to use visit, if I just use .invoke(‘removeAttr’, ‘target’) without visit, cyprees doesn’t work.

Getting 404 in Cypress test

I’m getting started with Cypress but I got stuck at the “hello world” of it ! I’m trying to open a page, first it worked like a charm, then all of a sudden the webstie started giving 404 page, no changes made to the test file.

npm giving Error on cypress file: spawn ps ENOENT

I’m new in cypress. I want to run my first cypress spec(which is search something in a search engine) headlessly with command line. I use npm, in project root I write this code in the vsCode terminal:
npx cypress run –spec “cypress/e2e/fileName.cy.js”.
I get this error:

The injectable ‘_PlatformLocation’ needs to be compiled using the JIT compiler, but ‘@angular/compiler’ is not available error on Cypress e2e tests

The injectable ‘_PlatformLocation’ needs to be compiled using the JIT compiler error occurs whenever I try to run Cypress e2e test.
I do not understand why do I get @angular/compiler error,even though my test script is Cucumber+Typescript combination. Of course the application itself is an angular application but error occurs before my test even starts.
Cypress version: 13.13.0
Angular version: 16.10.0enter image description here

Cypress microsoft login but popup a new window

I am writing cypress(ver 12.7.0) e2e test to authenticate my email account.
I followed the cypress’s example code, in their video, the cypress example shows the authentication window on the same page. but I ran the code in my env and found that a new authentication window is popped up, so I couldn’t get the elements on the new window and fill my email address and password.
screenshot on my test env