## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• 20:35
renovate[bot] synchronize #15310
• 20:35

renovate[bot] on npm-prismjs-vulnerability

chore(deps): update prismjs to … (compare)

• 20:35
renovate[bot] synchronize #15309
• 20:35

renovate[bot] on npm-jquery-vulnerability

chore(deps): update jquery to 3… (compare)

• 20:33
cassus opened #15349
• 20:10
szaborics edited #15343
• 20:09
szaborics edited #15343
• 20:08
szaborics edited #15343
• 19:51

flotwig on develop

chore: remove invalid nohoist (… (compare)

• 19:51
flotwig closed #15346
• 19:48
dmtrKovalenko synchronize #15346
• 19:48

dmtrKovalenko on remove-invalid-nohoist

feat: onboarding prompt for wri… Merge branch 'develop' into rem… (compare)

• 19:41

panzarino on develop

feat: onboarding prompt for wri… (compare)

• 19:41
panzarino closed #15204
• 19:40
flotwig commented #15317
• 19:38
cypress[bot] commented #15347
• 19:30
cypress[bot] commented #15204
• 19:29
cypress[bot] commented #15335
• 19:26
jennifer-shehane closed #15339
• 19:26
jennifer-shehane commented #15339
Dave Clissold
@DaveClissold
"chromeWebSecurity": false causes the tests to break with
chrome-error://chromewebdata url
Ghost
@ghost~5f192b69d73408ce4fea514e
I am using below command to delete downloads folder in cypress on windows system.
But the folder does not get deleted
Your help on this would be much appreciated.
Hello, getCookie() and getCookies() return an array. How can I cy.log('key=value') string from that returned array?
9 replies
Michael
@michael-siek
Hi, is there anyway that I could modify the output from (Results)?
avinashkrishna613
@avinashkrishna613
Hi, I have to test my login functionality. On clickikng login button, i should do authentication and return a token. I was using auth0 with react
Ondskan56
@Ondskan56
Hey all, the issue with '.get' that scrolls the screen is really annoying and it seems that it hasn't been fixed since 2017.
Is this on the roadmap? Are you aware of this issue and you think on a solution? any feedback is appreciated
cypress-io/cypress#871
I tried some of the workaround and they work on some of my tests but they don't work on all of them.
I find it really difficult using Cypress with this issue.
JonathanDagan
@JonathanDagan
Is there a way to have the test execute all of the assertions and if one fails fail the test but if an assertion that has assertions after it fails the test would still fail but would show the results of the other assertions?
melibe23
@melibe23
Hi, I am still not able to fix this (I honestly tried everything and I am feeling so stupid by now), I left the question here: https://stackoverflow.com/questions/63360027 it is related to cy.stub, google events and new pages loading
Mitch Lillie
@MitchLillie
Hi all. I'm having a super mysterious issue getting Cypress running in Jenkins inside a Docker container. I'm using the official cypress/included image. It seems to be able to visit a page, but not actually find or manipulate on that page. Turning on the debug logging, it appears to simply hang forever, always at the same place. We've tried increasing the memory to 6gb, disabling shm in Chrome, using Electron, but nothing seems to work. Does anyone have any experience or insight?
amr wahdan
@amrwahdan3

suddenly having trouble getting tests to run in windows.
i get Unable to Read property 'name' of undefined
and it says this is the line(s):

const runEachSpec = (spec, index, length, estimated) => {
if (!options.quiet) {
displaySpecHeader(spec.name, index + 1, length, estimated)
}

what could be the issue? started failing yesterday

4 replies
Sergio A Gomez
Hi everyone, I'm trying to upload a file of 100 Mb using cy.get('[type="file"]').attachFile('filename.xlsx') but cypress is throwing the following error: 'cy.fixture() timed out waiting 30000ms to receive a fixture. No fixture was ever sent by the server'.
I've already checked that the file is in cypress/fixtures folder executing : cy.exec(dir \${Cypress.config('fixturesFolder')}) to list all files in fixtures folders and it is there. I've also tried with a smaller file and it worked in this case.
By another hand, I tried to increased timeout but it didn't work. I used cy.fixture('filename.xlsx', 'binary', { timeout: 120000}) and I got the same error.
Do you know if there is a limitation of file size using fixture command?
Darren-Ivey
@Darren-Ivey
I am looking into Cypress to replace Selenium. I really like Cypress, but the browser support is quite limited. I'd like to know if the lack of support for IE and Safari impacts anyone? Are if there is any way around this limitation? Thanks!
Gleb Bahmutov
@bahmutov
shaymaasab
@shaymaasab
hey i made a test and i ran it many times but now iam facing this problem
its emergency :( maximum call stack size exceeded
Ming Han Chung
So horribly newb question. If I make a task 'db:reset': (user, table) => {} is that the correct way to declare two args?
Say i'm calling cy.task('db:reset'. {user: 'Jim', table: 'Users'})
7 replies
or is it like 'db:reset': (user) => {} and then u call user.user user.table
Santiago Agüero
@saaguero
Hi guys, how are you? In Gitlab I'm running into the problem I cannot adjust/change the setting shm_size, which causes Cypress tests against Chrome hang forever... I think this is a recurring problem. What are you using to overcome this scenario in Gitlab?
Dana Woodman
@danawoodman
Does anyone know how to support import aliases in plugin files? We have WebPack aliases in our Next.js project (eg ~/server) and I'd like to import this code into a plugin file. I know I can use WebPack preprocessor for test files, but how do I tell Cypress to respect my aliases in plugin files themselves? Don't see anything on docs or Google about this. Use case is to have a "reset db" plugin that calls our server code to seed the DB using our models directly. Is this possible or should I try something else?
Dana Woodman
@danawoodman
For now I'll use exec but it seems like a plugin is the "correct" way to do this?
QA1980
@QA1980
Has anyone encountered this error when you run test to the dashboard ? thanks
Sapan Shah
@sapandegreed
Hi, Does anyone know how to deal with infinite scrolling in cypress? I want to keep scrolling the page until the desired data is found. Thanks!
symphony
@symphony2014
Hi guys, when I run cypress , there was so many pages depend on top object, but in the container of cypress, top target to "http://localhost:8080/__/#/tests/__all"? anyway or workaround that I can redirect the top keyword to my website?
Tri Nguyen
@mankinchi
would you recommend using Cypress to test API?
symphony
@symphony2014
Why not use unit test or postman ? @mankinchi I guess Cypress more suitable for E2E test.
3 replies
Wim Vandenhaute
@wvdhaute
Hello, out of curiosity, what is the reason for https://docs.cypress.io/api/commands/fixture.html#this-context ? The requirement to use function callbacks here?
2 replies
Patrick Schaub
@pschaub
hello there :)
in our company i have weird issues with cypress. sometimes it flaky and i get "DOM detached" on our vue application.
is there any way to slowdown the requests on a cypress test to better see what happens? or any idea how to detect what exactly is triggering this?
and does anybody have a good idea how to wait for hydration of a vue app?
5 replies
Kirill Popolov
@ezhikov

Hello. I'm using WSL and want to test project inside WSL, but I don't want to setup X server, since result is ugly and buggy. So, I'm using pnpx cypress open to run Cypress, pointing it to WSL directory and getting EISDIR when file watcher is trying to watch /:

Error: EISDIR: illegal operation on a directory, watch '/'
at FSWatcher.start (internal/fs/watchers.js:165:26)
at Object.watch (fs.js:1329:11)
at createFsWatchInstance (C:\Users\kpopo\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\node_modules\chokidar\lib\nodefs-handler.js:116:15)
at setFsWatchListener (C:\Users\kpopo\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\node_modules\chokidar\lib\nodefs-handler.js:163:15)
at NodeFsHandler._watchWithNodeFs (C:\Users\kpopo\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\node_modules\chokidar\lib\nodefs-handler.js:325:14)
at NodeFsHandler._handleDir (C:\Users\kpopo\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\node_modules\chokidar\lib\nodefs-handler.js:548:19)
at C:\Users\kpopo\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\node_modules\chokidar\index.js:435:21
at async Promise.all (index 0) {
errno: -4068,
syscall: 'watch',
code: 'EISDIR',
path: '/',
filename: '/'
}

Any ideas how to proceed from here or debug this?

Patrick Schaub
@pschaub
2 replies
agrmayank03
@agrmayank03
Unable to close PopUp Alert or unable to click ok button in any alert popup in cypress

iframepage.switch('#_bmain').xpath("user name").type('')
after login this, a popup alert message with OK button is coming which is not closing automatically and i am unable to close it with any manual code.. (we can't inspect the coming popup)

Example , i used below codes:

cy.get('button').contains('OK').click()
if (arguments && arguments[0] === 'onbeforeunload') {
return;
}
return original.apply(this, arguments);
};
})

iframepage.switch('#_bmain').xpath("user name").type('')
after login this, a popup alert message with OK button is coming which is not closing automatically and i am unable to close it with any manual code.. (we can't inspect the coming popup)

Example , i used below codes:

cy.get('button').contains('OK').click()
   if (arguments && arguments[0] === 'onbeforeunload') {
return;
}
return original.apply(this, arguments);
};
})
Gerard de Brieder
@smeevil
Hi, is anyone here using cypress-autorecord? I can record requests fine, but when replaying them i run in all kinds of async issues. Did anyone else notice this ?
agrmayank03
@agrmayank03
Victor Aprea
@vicatcu
can someone explain to me this source of flake: "is not visible because its ancestor has position: fixed CSS property and it is overflowed by other elements."
Nikita Voloboev
@nikitavoloboev
Cypress.Commands.add('hasValidationError', { prevSubject: 'element' }, (subject, msg) => {
cy.wrap(subject).closest('.field').find('.label.red').should('have.text', msg);
});
if I have smth like this
cy.get('[data-test-process-popover]').wrap()
will the above be similar
im not sure how the .wrap gets used
Sergey Khristenko
@sergeyKhristenko
Hi! Is there any spec-level timeout in cypress? Something like if test is running longer than 'n' mins then stop it and fail?
Gleb Bahmutov
@bahmutov
Is there any option to log error messages nicely? I was using throw new Error, but it is not the case anymore. Is there any command available like: cy.error() or cy.log('', {error:true})?