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

    colossal-match-42171

    12/06/2022, 2:05 PM
    it says Expected to find element: bbbbb but never found it
  • c

    colossal-match-42171

    12/06/2022, 2:06 PM
    i have the reference too if anyone can help me out
  • b

    bumpy-insurance-8581

    12/06/2022, 2:17 PM
    Hello, why my downloaded file do not show instantly on the cypress/download folder ? It seem to only appear after the test fail. I’ve Cypress 10.11.0
  • b

    bumpy-insurance-8581

    12/06/2022, 2:19 PM
    Yes you can do it
  • b

    bumpy-insurance-8581

    12/06/2022, 2:20 PM
    On your dockerfile
  • m

    millions-scientist-9990

    12/06/2022, 2:24 PM
    there is no docker file.
  • b

    bumpy-insurance-8581

    12/06/2022, 2:31 PM
    Copy code
    docker run -v $PWD:/e2e -w /e2e -e
    CYPRESS_baseUrl=your_url -your_options -c \"umask 0000; cypress run --browser chrome --headless\ "
  • b

    bumpy-insurance-8581

    12/06/2022, 2:31 PM
    Something like that should help, it will set the right to clean it
  • s

    strong-chef-89202

    12/06/2022, 2:40 PM
    Hi, I am having trouble with executing an async function to get some data at the beginning of a test. I got it down to a rather small example:
    Copy code
    typescript
    it('will type the username first', () => {
        cy.log("test");
        get_username().then(username=>{
            cy.get("#userid").type(username);
        });
        cy.get('#next-btn').click();
    })
    
    it('will click the button first', () => {
        get_username().then(username=>{
            cy.get("#userid").type(username);
        });
        cy.get('#next-btn').click();
    })
    Why does the
    cy.log
    in the first test change the behavior? For running async code in cypress test I could not really find anything. How is the right way to do it? (I must use async with this function since it depends on other async functions I have no control over).
    f
    • 2
    • 4
  • g

    green-jordan-14676

    12/06/2022, 3:02 PM
    Kindly anyone help me
  • l

    late-planet-4481

    12/06/2022, 3:19 PM
    I also see this: https://docs.cypress.io/api/commands/hover
  • g

    gray-kilobyte-89541

    12/06/2022, 3:21 PM
    try each one
  • n

    nutritious-baker-94202

    12/06/2022, 5:21 PM
    Hey folks, when mocking a service to be used for Cypress component testing in an Angular app, is this the proper way to to mock? cy.mount(SomeComponent, { declarations: [SomeComponent], [providers: {provide: SomeDependency, useValue: { postMessage: cy.stub()} }) I figure it's pretty much identical to using TestBed, right? Main difference is the cy.stub I keep getting a 'Cannot access SomeDependency' before initialization'
  • n

    nutritious-baker-94202

    12/06/2022, 6:00 PM
    Figured it out, looks like I needed to import a module.
  • h

    hundreds-rainbow-52802

    12/06/2022, 7:13 PM
    Hi Folks, Do you mind to help me out capturing the console fail like this one: I have tried: cy.on('Failed to launch', (e) =>{e.message.text}) and did not capture and cy.intercept as shown on the photo.
  • b

    bitter-fountain-36713

    12/06/2022, 7:56 PM
    Here is an example on how to do that. https://glebbahmutov.com/blog/listen-to-the-message/#spy-on-the-consolelog-method-call
  • g

    gray-kilobyte-89541

    12/06/2022, 8:18 PM
    the code
    if (cy.get('...)) { ...
    is wrong. Try using https://github.com/bahmutov/cypress-if
  • h

    hundreds-rainbow-52802

    12/06/2022, 8:37 PM
    I'll try
  • t

    thousands-gpu-36872

    12/06/2022, 8:46 PM
    Hello ! My cypress screen during record in cypress:run or cypress:open is scrolling down, so the records don´t show all i need, someone knows how to solve this ?
  • a

    adorable-smartphone-87280

    12/07/2022, 12:01 AM
    Can you just use https://docs.cypress.io/api/commands/scrollto to scroll to where you need to be?
  • f

    fierce-activity-35946

    12/07/2022, 1:10 AM
    Does anyone know if the latest
    12.0.0 Cypress
    has changed how `.next() `command behaves? I don't see any mention in the changelog but this command throws a weird error now
  • l

    lemon-holiday-89994

    12/07/2022, 3:40 AM
    it takes about 30 seconds for the internal redirects to actually happen. I really don't want to use a timed wait, I would prefer to use the
    timeout
    syntax, but couldn't make it work
  • f

    few-architect-79620

    12/07/2022, 3:41 AM
    Hi, I'm trying to use Cypress Module API and I'm getting this "Module not found" error, any idea what I'm doing wrong? 😦
  • n

    nutritious-artist-49849

    12/07/2022, 7:47 AM
    I am working on application with 3rd party payment gateway. I would like to test the complete flow till the confirmation page after payment. I am getting error cy.origin() requires enabling the experimentalSessionAndOrigin flag Can any one please help to resolve even after Appling the flag getting error
  • a

    acceptable-hamburger-48790

    12/07/2022, 8:16 AM
    Did you give this a read https://www.cypress.io/blog/2022/12/02/the-journey-behind-cy-origin/
  • n

    nutritious-artist-49849

    12/07/2022, 8:26 AM
    thanks i will check it out now
  • f

    fresh-doctor-14925

    12/07/2022, 9:12 AM
    it takes about 30 seconds for the
  • f

    few-oyster-82478

    12/07/2022, 9:59 AM
    https://docs.cypress.io/guides/cloud/gitlab-integration is enabling gitlab integration following these steps the same as adding gitlab credentials in the dashboard integrations section?
  • f

    few-oyster-82478

    12/07/2022, 10:00 AM
    or do you need both?
  • q

    quiet-tent-87246

    12/07/2022, 10:14 AM
    hi, after updating from 10 to 12.0.1 i keep getting
    Cannot set property message of [object DOMException] which has only a getter
    from doing
    cy.get('a').invoke('removeAttr', 'target').click();
1...222223224...252Latest