https://cypress.io logo
Join Discord
Powered by
# help
  • f

    flat-electrician-52949

    05/27/2021, 6:57 AM
    @User I see from you slides that I can make a task in the plugin to do the seeding.
  • s

    sparse-portugal-43867

    05/27/2021, 1:12 PM
    Hi everyone, I'm testing a project using Primefaces. I'm definitely not an expert on Primefaces... Now, with basic Cypress I'm struggling to get the selection of a dropdown, or more SelectOneMenu to be exact, to be stable. I have to do a lot of "magic" just to get it to work, and as I said, I can't get rid of the flakiness. Since I'm a newbie on Primefaces... I just found out that in JS you can use PF() to access the elements. πŸ˜‹ I would like to test this in Cypress. But how do get this (PF) into Cypress? I've found a npm package called "primefaces" and almost got it to work. The Intellisence finds it but when executing the test PF is undefined. Does anyone have any tips on this? Or perhaps there is another way of testing Primefaces that I have missed... Br Mats
  • s

    stocky-dream-36427

    05/27/2021, 4:44 PM
    Hey Mats, we need a reproduction repository to help with that.
  • u

    user

    05/27/2021, 5:00 PM
    Hi, Is there an API to control the video recording, please?
  • u

    user

    05/27/2021, 5:01 PM
    (like the
    .screenshot()
    )
  • u

    user

    05/27/2021, 5:04 PM
    the idea is to be able to control when it starts the recording, during a run
  • u

    user

    05/27/2021, 5:05 PM
    if not, where to suggest it? as an issue on GitHub?
  • b

    bulky-sundown-74498

    05/27/2021, 5:06 PM
    A github discussion if you have no idea what API you would like Or a github issue if you already know what you want and you want to see comments and traction
  • b

    bulky-sundown-74498

    05/27/2021, 5:07 PM
    There is no video API yet this way
  • u

    user

    05/27/2021, 5:08 PM
    ok, ok, thanks πŸ™‚
  • u

    user

    05/27/2021, 5:23 PM
    started a discussion πŸ˜›
  • s

    sparse-portugal-43867

    05/27/2021, 6:36 PM
    Well, the question is perhaps more of a best practice for cypress and Primefaces question. If there is a plug-in or lib that I can use in Cypress to have better access to the Primefaces elements. I've seen those kinds of plugins for angular and vue for example.
  • s

    stocky-dream-36427

    05/27/2021, 6:37 PM
    I don't know what Primeface is is the problem.
  • s

    stocky-dream-36427

    05/27/2021, 6:37 PM
    So I need you to give me a repo that shows me what it is and how you use it.
  • s

    sparse-portugal-43867

    05/27/2021, 6:41 PM
    Thanks for your answer. Here's the link to their site. I'm at home right now, perhaps i can fix something tomorrow. I'm from Sweden so it's time for bed here now... πŸ˜‹ https://www.primefaces.org/
  • i

    incalculable-barista-5308

    05/27/2021, 9:31 PM
    hello @everyone , i just made an update of angular app from v10 to v11, i had my tests running fine on v10 but now on v11 am hit with this error,am also using jest for unit testing, a pointer or solution will be much appreciated .
  • i

    incalculable-barista-5308

    05/27/2021, 9:35 PM
    am using cypress v7.4.0
  • i

    incalculable-barista-5308

    05/27/2021, 10:18 PM
    fixed it!
  • s

    stocky-dream-36427

    05/27/2021, 10:28 PM
    oh jeeze
  • s

    stocky-dream-36427

    05/27/2021, 10:28 PM
    I need to disable "everyone"
  • i

    incalculable-barista-5308

    05/28/2021, 8:45 AM
    πŸ˜† , they really active, the fix was easy, i needed to delete a component test-bed setup i had in the cypress test file and also add
    Copy code
    import 'zone.js/dist/zone-testing';
    in my polyfills.ts file
  • n

    nice-mechanic-65335

    05/28/2021, 11:19 AM
    hi all! So, I wanted to dive into the beautiful world of Cypress, but got these warn and err during installation (after the command "npm install cypress") any suggestion on what to do?
  • u

    user

    05/28/2021, 10:51 PM
    what do people use for snapshot testing?
  • u

    user

    05/28/2021, 10:51 PM
    @cypress/snapshot doesn't work with webpack 5
  • u

    user

    05/28/2021, 10:51 PM
    due to liberal use of process
  • b

    bulky-sundown-74498

    05/29/2021, 1:21 AM
    @nice-mechanic-65335 do you have a repo where we can diagnose ?
  • b

    bulky-sundown-74498

    05/29/2021, 1:22 AM
    Even a package.json and a package-lock.json would help I think.
  • b

    bulky-sundown-74498

    05/29/2021, 1:26 AM
    @User I do not think it is hard to protect against this kind of failure. Mocking β€œprocess” is not necessarily hard. Would be interested in trying a PR?
  • u

    user

    05/29/2021, 1:41 AM
    hmm, i haven't seen anyone do it in webpack 5 before
  • u

    user

    05/29/2021, 1:42 AM
    do you have a webpack pr?
1...181920...252Latest