Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 20 23:14
    blankey1337 commented #2694
  • Aug 20 22:21
    cypress[bot] commented #4720
  • Aug 20 21:59
    cypress[bot] commented #4720
  • Aug 20 21:11
    cypress[bot] commented #4720
  • Aug 20 21:00
    cypress[bot] commented #4720
  • Aug 20 20:55
    flotwig commented #4720
  • Aug 20 20:50
    cypress[bot] commented #4720
  • Aug 20 20:49
    rchod commented #4840
  • Aug 20 20:11
    cypress[bot] commented #4720
  • Aug 20 20:01

    flotwig on issue-2193

    try using origin to set documen… (compare)

  • Aug 20 19:50
    cypress[bot] commented #4720
  • Aug 20 19:45
    renovate[bot] edited #3777
  • Aug 20 19:40
    cypress[bot] commented #4720
  • Aug 20 19:29
    cypress[bot] commented #4720
  • Aug 20 19:19
    tamj0rd2 commented #630
  • Aug 20 19:12
    renovate[bot] edited #3777
  • Aug 20 19:11
    cypress[bot] commented #4720
  • Aug 20 19:08
    flotwig synchronize #4720
  • Aug 20 19:08

    flotwig on electron-3-from-develop

    ci (compare)

  • Aug 20 19:04
    flotwig synchronize #4720
EN1STE
@tascioglu
@trongbui I know this works, but I don't want to install X times cypress, but only one time
TrongBui
@trongbui
ah, sorry for misunderstood your question
tjgomes
@tjgomes
@jorrit-wehelp since while loop isn't supported so i'm using recursive function to wait until 204 is received
TrongBui
@trongbui
I do not have better solution for it
tjgomes
@tjgomes
instead of waiting for a defined period of time
EN1STE
@tascioglu
@trongbui not a problem... Sure somebody else knows... :)
Jacob Raihle
@raihle
@tjgomes the timeout is only applied to the time between sending the request and getting a response, so it will not help you here. If you want to abort after some time or some number of attempts, I think you will have to track that yourself.
tjgomes
@tjgomes
@raihle i see. bummer :(
knagarajan1984
@knagarajan1984
Hello all, I have a cookie that needs to be sent with every request to have successful response. I have a code to click on a button in my application but looks like this cookie is not being sent in the request. Any help how to fix it?
TrongBui
@trongbui
what is your code so far?
tjgomes
@tjgomes
@raihle @jorrit-wehelp since i've this cy.request in a cy.command
can i set the timeout when i call the command? Cypress.Commands.add('createRandomApplicant', accessToken => {
Bartłomiej Zieliński
@fasolens
Hi. Can I use select command with part of text I am looking for? Is it possible? I have three options
"some random numbers (wlan0)"
"some random numbers (eth0)"
"some random numbers (eth1)".
I want to select using only name of interface as numbers are changing every time I click dropdown select menu.
Jacob Raihle
@raihle
@tjgomes I haven't used custom commands, so I don't know, sorry.
My approach would be to add a remainingAttempts parameter to req. When you get the wrong status, recurse with remainingAttempts - 1 until it hits 0. And then start it off with some reasonable number. Another option would be to send in a timeToRetryUntil parameter and check the current time against it before recursing.
tjgomes
@tjgomes
ok thanks @raihle
EN1STE
@tascioglu
nobody? :)
tjgomes
@tjgomes
@raihle what is cypress acceptable conditional operator for greater than equal to
if (status === 204)
          if ((remmainingAttempts >>= 0)) return;
          else cy.wait(200);
        cy.log(' remaining attempt is ' + remmainingAttempts);
        remmainingAttempts--;
image.png
Jacob Raihle
@raihle
@tjgomes same as regular JavaScript, >=
tjgomes
@tjgomes
tried that as well
keeps decrementing to negative
Jacob Raihle
@raihle
But I think you have it backwards
You should be checking when it does not match the right status
tjgomes
@tjgomes
yes i tried != 204
Jacob Raihle
@raihle
Try adding some curly brackets to your if-blocks, I think the else is attaching to the wrong one
tjgomes
@tjgomes
i should've mentioned I'm using typescript
Jacob Raihle
@raihle
Shouldn't make a difference here.
I need to run, but try putting it down on paper to work out the logic.
tjgomes
@tjgomes
I think I got it now
thank you very much @raihle
Jacob Raihle
@raihle
Great! :)
tjgomes
@tjgomes
does anyone know how to invoke a custom command and have it return a value which can be assigned to a var from where it was invoked?
i'm doing reqVar = cy.getToken().then(token => cy.createRandomApplicant(token));
Dominique Busser
@doque
Hi, we're facing the issue that many of our tests behave differently in the Gitlab CI environment than they do when run locally. Specificially, elements that should be clicked "do not exist" (even though they're clearly there when viewing the recording video in the Dashboard). Anyone else have this problem?
Tyler S Lemke
@tylerslemke
Is anyone using Pickle.Js in their projects?
Mehari Geta
@m3hari

I want to execute the following command to reset db before tests

cd server && yarn prisma delete -f -e .env.test && NODE_ENV=test yarn generate:seed && yarn prisma deploy -f -e .env.test

the command execute fine running it manually from the terminal

but fails when using cy.exec with the following error

Pass {failOnNonZeroExit: false} to ignore exit code failures.

Information about the failure:
Code: 127

Stderr:
/bin/bash: yarn: command not found

cypress version : 3.3.2
macOs Mojave 10.14.6

any hint?
I am running cypress in headless mode using cypress run
David Ridgley
@Arximiro
Hey all, anyone know how to do shift + click on elements with Cypress?
Dmitri Voronianski
@voronianski
hey 👋 I have a question regarding "chromeWebSecurity", I want to ask here before creating an issue

I'm running cypress tests agains localhost served app. Inside some of the tests I have for clicks that lead to another domain, e.g.

  describe('login button', () => {
    it('should redirect to the login app', () => {
      cy.visit('http://localhost:3000'); // fails with chrome-error://chromewebdata/ error page
      cy.visit('http://example.org'); // works
      cy.getSelector(LOGIN_BUTTON).click();
      cy.url()
        .should(
          'include',
          'login-subdomain.example.org'
        );
    });

cypress version : 3.4.1

I thought that I can disable this behavior with "chromeWebSecurity"
Dmitri Voronianski
@voronianski
but running cypress run --browser chrome --config chromeWebSecurity=false still fails the test with the same error
I also tried to setup hosts file to point localhost to the hostname, but it also failed
workaround with checking attr is not a solution here unfortunately
Andrew Koebrick
@AndrewKoebrick_gitlab
Is there a way to get rid of / hide the example tests in the Cypress application (i.e. actions.spec.js, aliasing.spec.js...) so that I can "Run all specs" and have it only do the tests I have written?
David Ridgley
@Arximiro
You can just delete them, or write a script that targets a glob pattern of your tests.
Tyler S Lemke
@tylerslemke
@tolicodes I'm having problems getting PickleJs running. I am not an expert with npm/package dependencies. Has anyone got this project working recently?
Oleksandr Shevtsov
@Shelex
@tylerslemke have you got cucumber preprocessor working and issue is with pickle integration only?
marymuniz
@marymuniz
Hello guys, have you seen this before when you are running the tests? cypress_runner.js:106748 WebSocket is already in CLOSING or CLOSED state.