https://cypress.io logo
Join DiscordCommunities
Powered by
# e2e-testing
  • g

    green-diamond-44130

    10/03/2022, 2:56 PM
    I mean like run scenarios on 5th, 10th, 15th... day of month
  • m

    mysterious-belgium-25713

    10/03/2022, 2:58 PM
    I would really use an automated build system for it. Do you guys have any CI/CD system?
  • m

    mysterious-belgium-25713

    10/03/2022, 2:58 PM
    There you can setup cron jobs to specify on what days to run. This is not something part of cypress but outside of cypress
  • m

    mysterious-belgium-25713

    10/03/2022, 3:02 PM
    @green-diamond-44130, this is the cron for every 5 days
    Copy code
    0 0 */5 * *
  • r

    ripe-shampoo-28033

    10/03/2022, 3:16 PM
    Apologies @gray-kilobyte-89541 , you are right it is the cy.visit that is doing the magic where it is changing the URL to the app's URL. I'm still unsure how this is working - I am able to use a cy.intercept to intercept a call to a login function and return an expected scope. I don't understand how this bypasses CORS, if you have any information that would be great thanks
  • m

    mammoth-sugar-52290

    10/03/2022, 3:38 PM
    Hello, very good, I have a problem that I don't know if any of you have had. I'm testing a website and when I go from one screen to another it happens but Cypress crashes and I can't do anything anymore. However, with selenium I can get to testing that page. They remain as the pending requests in the Netword
  • m

    mysterious-belgium-25713

    10/03/2022, 3:54 PM
    With from one screen to another you mean you click a link and that is in the same domain or it moves to another domain
  • m

    mammoth-sugar-52290

    10/03/2022, 3:55 PM
    it means that you click a button and go to another screen but from the same domain
  • m

    melodic-egg-83620

    10/03/2022, 4:55 PM
    Experiencing an odd error: My
    specPAttern
    seems to be sufficient as all my spec files are showing, in their individual folders within /e2e/, but the runner is giving me this error no matter what test I run as long as it's in a folder:
    Error: ENOENT: no such file or directory, stat '/Users/johnsoct/Library/Application Support/Cypress/cy/production/projects/client-ce5409d43f766911d734953267c10aa7/bundles/cypress/e2e/unit/calculations.cy.js'
  • a

    adorable-smartphone-87280

    10/03/2022, 6:18 PM
    Why are you storing your code in
    /Library/ApplicationSupport
    ? I'm not sure if that's what's causing the issue, but I would avoid storing user-generated documents in that directory. I keep all my code in
    user/Documents/src
    and try to avoid
    user/Library
    or
    system/Library
    as no-touch areas of my disk.
  • g

    glamorous-country-57678

    10/03/2022, 7:09 PM
    Hi Team, I know copying and pasting the text does not come out of the box with Cypress but was wondering what the optimal solution for this would be considering most articles I read are not up to date with Cypress 10. For example, I would like to copy this text highlighted, save it in a variable, and type it out in another textarea. Is this possible?
  • s

    stale-optician-85950

    10/03/2022, 7:22 PM
    Using a unique selector (like the one in your image) invoke https://docs.cypress.io/api/commands/invoke the element text and store it with an alias https://docs.cypress.io/guides/core-concepts/variables-and-aliases i.e.
    cy.get('.reveal-private-key etc').invoke('text').as('privateKey')
    And later in your test re use it:
    Copy code
    cy.get('@privateKey').then($elText => {
         cy.log('$elText', $elText)
    })
  • g

    glamorous-country-57678

    10/03/2022, 7:22 PM
    cool, will try this
  • g

    glamorous-country-57678

    10/03/2022, 7:38 PM
    works like a charm thank you. Did not know about invoke!
  • m

    melodic-egg-83620

    10/03/2022, 8:58 PM
    My code isn't stored there. It's just reporting from there.
  • a

    adorable-smartphone-87280

    10/03/2022, 9:10 PM
    Ah, sorry. In that case, I'm just as confused as you are. No idea what's going on.
  • m

    melodic-egg-83620

    10/03/2022, 9:12 PM
    I figured it out, actually,. but it's bizarre... It's throwing that error when an imported module in my spec file is not found... so strange
  • v

    victorious-queen-73209

    10/04/2022, 4:40 AM
    Combine Code coverage Report
    • 1
    • 1
  • j

    jolly-glass-61422

    10/04/2022, 6:35 AM
    Anyone experience this and fixed? I'm running Cypress v10.9.0 and firefox v105
  • w

    wide-evening-76256

    10/04/2022, 6:58 AM
    Hello everyone. Has anyone had any testing experience when there is flex in the code? what can be applied here? Since after the test is created, the data changes.
  • q

    quaint-hospital-22081

    10/04/2022, 9:36 AM
    Having the same issue, can anyone pls help, My cypress application keep crashing, even after I tried to install older versions Testing on my Mac
  • f

    fresh-smartphone-69338

    10/04/2022, 10:48 AM
    Hi, I am new to cypress so far going good learning I am stuck with a cors error while trying to navigate after click a button system gives 302 response code on a POST and redirecting to initial login page expected behaviour is - automatically authenticate and display new page / frame wonder if any one can help closet match of my problem description is https://github.com/cypress-io/cypress/issues/3190 GitHub Stubbing not working for 3xx redirect situations due to "Location" ... Current behavior: When "Location" header is stubbed (common case for 301 and 302 redirects), cypress actually does not set stubbed response status code and header. cy.route({ meth...
  • f

    fresh-smartphone-69338

    10/04/2022, 10:59 AM
    Please provide any suggestions if a fix or work around available
  • r

    rich-queen-84058

    10/04/2022, 11:04 AM
    If anyone can help on how to stub a hook supplied by an external library I'd appreciate it - https://stackoverflow.com/questions/73909712/stub-a-react-hook-using-cypress
  • g

    gray-kilobyte-89541

    10/04/2022, 12:41 PM
    It is on a trickier side, since you would need to use objects and methods https://glebbahmutov.com/blog/stub-react-import/
  • r

    rich-queen-84058

    10/04/2022, 12:43 PM
    Thanks for this but sadly it does not deal with hooks so does not really help.
  • p

    powerful-orange-86819

    10/04/2022, 1:19 PM
    api call to the endpoint, then save the token to the Cypress.env(), call it in the spec when you need it https://docs.cypress.io/api/cypress-api/env#Why-is-it-Cypress-env-and-not-cy-env
  • g

    gray-kilobyte-89541

    10/04/2022, 2:25 PM
    you could follow the example and create intermediate object, of course, it would require a little bit of JS skills or webpack config skills
  • r

    rich-queen-84058

    10/04/2022, 2:28 PM
    Not entirely sure I have those skills but I'll take a deeper look, thanks
  • d

    delightful-microphone-80931

    10/04/2022, 2:54 PM
    Hi, could you please explain this a little further? Between res.body.in and slice() what should I put? and is it oj to put all json response body within deep.equal([]) paranthesis?
1...113114115...192Latest