Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 02:21

    lmiller1990 on ct-plugins-bar

    chore: tweak styling (compare)

  • 00:44
    hnandiwada edited #15296
  • 00:44
    hnandiwada opened #15296
  • 00:36
    cypress[bot] commented #14925
  • 00:14
    Bkucera synchronize #14925
  • 00:14

    Bkucera on test-orchestration

    chore: release @cypress/webpack… fix(component-testing): Layout … build: use rollup to pack cypre… and 13 more (compare)

  • 00:03
    lmiller1990 commented #15280
  • 00:01
    lmiller1990 edited #15280
  • Mar 02 22:38
    pmerwin commented #15291
  • Mar 02 22:35
    cypress[bot] commented #14925
  • Mar 02 22:34
    fishgills commented #15032
  • Mar 02 22:33
    pmerwin commented #15291
  • Mar 02 22:32
    pmerwin commented #15291
  • Mar 02 22:23
    cypress[bot] commented #15295
  • Mar 02 22:23

    JessicaSachs on runner-ct-ui-improvements

    chore: fixing the broken relati… (compare)

  • Mar 02 22:22
    flotwig review_requested #15295
  • Mar 02 22:19
    dingraham-dh commented #15101
  • Mar 02 22:14
    Bkucera synchronize #14925
  • Mar 02 22:14

    Bkucera on test-orchestration

    fix bug with spec SKIP not stop… (compare)

  • Mar 02 22:12
    pmerwin commented #15291
Muhammad wasiq khan
@wasiqkhan786
thankyou so much
Dave Clissold
@DaveClissold

Hi Everyone.

Have a question before raising this futher as a potential bug. I'm getting getting a cors origina error for superdomains error when attempting to visit a subdomain which has a . in the middle
cypress.json:

{baseurl: 'https://subdomain.domain.com'}

in test file:

it('does some admin tasks', () => {
   cy.visit('https://subdomain.admin.domain.com')

Cypress detected a cross origin error happened on page load:
Blocked a frame with origin "subdomain.admin.domain.com" from accessing a cross-origin frame.
Before the page load, you were bound to the origin policy:
https://domain.com
Am I wrong in thinking that I should be able to visit all subdomains, regardless of them have a . in them?

1 reply
Dave Clissold
@DaveClissold
Removing the baseUrl does not resolve the problem either
Dave Clissold
@DaveClissold
"chromeWebSecurity": false causes the tests to break with
chrome-error://chromewebdata url
Ghost
@ghost~5f192b69d73408ce4fea514e
image.png
I am using below command to delete downloads folder in cypress on windows system.
But the folder does not get deleted
cy.exec('rm cypress/downloads/*', { log: true, failOnNonZeroExit: false });
Your help on this would be much appreciated.
Meadie
@brmeade_twitter
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
@sergom13_twitter
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!
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
@mystoryphoto_twitter
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
image.png
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?
image.png
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 NodeFsHandler._addToNodeFs (C:\Users\kpopo\AppData\Local\Cypress\Cache\4.12.1\Cypress\resources\app\packages\server\node_modules\chokidar\lib\nodefs-handler.js:597:27)
    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?

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('')
iframepage.switch('#_bmain').xpath("password").type('')
iframepage.switch('#_bmain').xpath("login button").click()
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.on('window:alert', msg => alerted = msg);
cy.get('button').contains('OK').click()
Cypress.on('window:load', function(window) {
const original = window.addEventListener;
window.addEventListener = function() {
if (arguments && arguments[0] === 'onbeforeunload') {
return;
}
return original.apply(this, arguments);
};
})

iframepage.switch('#_bmain').xpath("user name").type('')
iframepage.switch('#_bmain').xpath("password").type('')
iframepage.switch('#_bmain').xpath("login button").click()
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:

  1. cy.on('window:alert', msg => alerted = msg);
    cy.get('button').contains('OK').click()
  2. Cypress.on('window:load', function(window) {
    const original = window.addEventListener;
    window.addEventListener = function() {
       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 ?
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?