Skip to main content

All Questions

0 votes
0 answers
58 views

Playwright execute setup database with 2 devices

I have 2 devices, chromium and a tablet. I want to execute a setup db script before each device, because the execution of the test on the first device may alter the results of the second one. So the ...
ISI's user avatar
  • 1
0 votes
0 answers
24 views

Wanted to simulate an API or network error to display the error modal in testcafe

test('should amount field and name field reset after submit', async ()=>{ const amountInput = await Selector('.amount'); await t.typeText(input, 10); const nameInput = await Selector('.name');...
new coderrrr's user avatar
1 vote
1 answer
55 views

How to skip failing part in Cypress test script

what is expected from the below code is get_plz_ChooseGroup will be skipped and not trigger a test failure if the element is not visible after 5000 seconds Login_Page_POS.get_plz_ChooseGroup({ timeout:...
Asmoun's user avatar
  • 1,747
0 votes
0 answers
30 views

After login using cy.origin I am not logged in

I'm struggling with login using cy.origin. I've try use cy.session, but after session the page is log out. Here is my commands.js Cypress.Commands.add("login", (username, password) => { ...
Adriana Brezničanová's user avatar
0 votes
1 answer
514 views

Is there a way to end to end test an application that relies on passkey for authentication?

We are using a 3rd party application to authenticate our users before they login to carry out transactions with our product. The authentication is tightly coupled with our backend as we verify the ...
P-Man-Coding's user avatar
1 vote
1 answer
88 views

cy.intercept() not working when used with cy.trigger()

I have an input with type=date in my form. When its value changes, the app is supposed to call the API /get_slots with POST method. I used cy.type() and then cy.trigger('change') to trigger the API ...
Toan Tran Van's user avatar
0 votes
1 answer
63 views

Command While in file test (Infinite looping) - Javascript

I need to validate a parameter in the response of a GET with the value CONFIRMED. However, this value is updated asynchronously. I thought about adding a while loop, but it's not working. while (...
EFPM_S's user avatar
  • 15
0 votes
1 answer
442 views

Error when setting Header in all requests - Cypress (JS)

I have the following question. Could you help me? I want to set custom header in all requests in my automated tests: "Content-Type" and "accept". How can i get? I tried that way ...
Estevao FPM's user avatar
0 votes
0 answers
40 views

Cypress cannot return value in a method if each() is used [duplicate]

I have these codes. it uses each() twice. It always returns false even it should be true. i added two cy.log() line. It got these: isFound value after assignment is:true isFound value before return: ...
Jim's user avatar
  • 67
-1 votes
1 answer
415 views

Cypress test case gets stuck on the step where a file downloaded externally and waits for page to open

I wrote a simple test case where on clicking Export option(dropdown), a file gets downloaded on background. However Cypress test halts on this step while going into a continuous waiting state. After ...
EfKhan's user avatar
  • 11
1 vote
2 answers
750 views

How to extract a link from a confirmation email in Mailslurp using cypress?

I was trying to extract a link to proceed with user registration using Cypress and Mailslurp. For that, I wrote the following code: let inboxId; let emailAddress; describe('sign up', () => { ...
Lucas's user avatar
  • 11
1 vote
3 answers
1k views

Have some issues when trying to use parametrize test in Playwright

Here is my code const {test, expect} = require('@playwright/test') const { generateRandomUser } = require('../helpers') const firstUser = generateRandomUser(); const secondUser = generateRandomUser();...
Stepash's user avatar
  • 33
3 votes
3 answers
1k views

Rendering iFrame in Cypress

Can anyone help me render the iFrame for the following page in Cypress. https://testnewpage.digitaldisbursements.org/ <iframe frameborder="0" title="Payment method selection ...
Korben Dallas's user avatar
1 vote
2 answers
391 views

Is there a way to automate login without email verification in Cypress?

I am new to cypress and am writing tests to login to the application. but i have 1 issue with automating the login system, it keeps asking me the verification code sent to my email, how do i bypass it ...
user avatar
0 votes
1 answer
138 views

testCafe .switchToWindow() method - how to switch to new window using only part of the url hostname (or title)

I would like to switch to new window using just part of the url hostname. For example instead switchToWindow(w => w.url.host === 'testcafe.io') I would like to use sth like: (w => w.url.host =...
larry's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
27