by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 20:17
    eabusharkh0 edited #7607
  • 20:17

    Bkucera on chore-fix-develop-history

    (compare)

  • 20:16

    Bkucera on chore-fix-develop-history

    (compare)

  • 20:15
    eabusharkh0 opened #7607
  • 20:14
    flotwig synchronize #7605
  • 20:14

    flotwig on remove-coffeescript-internal

    chore: rm non-test-related coff… decaffeinate: Rename index.coff… decaffeinate: Convert index.cof… and 2 more (compare)

  • 20:05
    cypress[bot] commented #7605
  • 20:03
    flotwig synchronize #7605
  • 20:03

    flotwig on remove-coffeescript-internal

    chore: rm non-test-related coff… decaffeinate: Rename index.coff… decaffeinate: Convert index.cof… and 2 more (compare)

  • 20:02
    flotwig synchronize #7605
  • 20:02

    flotwig on remove-coffeescript-internal

    chore: rm non-test-related coff… decaffeinate: Rename index.coff… decaffeinate: Convert index.cof… and 2 more (compare)

  • 19:44
    flotwig synchronize #7605
  • 19:44

    flotwig on remove-coffeescript-internal

    chore: rm non-test-related coff… decaffeinate: Rename index.coff… decaffeinate: Convert index.cof… and 2 more (compare)

  • 19:43
    cypress[bot] commented #7605
  • 19:42
    cypress[bot] commented #7235
  • 19:35
    cypress[bot] commented #7597
  • 19:34
    mthoreso edited #7606
  • 19:27
    stevenvachon commented #1417
  • 19:27
    flotwig edited #7605
  • 19:26
    flotwig synchronize #7605
RashmiKalpeshChauhan
@RashmiKalpeshChauhan
Hi Everyone,
Can anyone guide me how to check default language of page and set tit to English in cypress
CryptoJack
@CryptoJack5_twitter

Hello everyone, hope all of you OK these days :)
I have a question regarding adding variable for dynamic IP in AWS env foe tests that run on Jenkins.
I have ENV in amazon that should execute cypress run in jenkis (with dashboard service connect) but when i try to execute and run the jenkins pipeline i noticed that each pipeline execution done with different IP since its on amazon, meaning dynamic IP.

From what i understood there is a need to configure environment variable for that dynamic IP
but im not sure how can i do it.

I have custom commands with login and logout. the login contains cy.visit() and i think there is a need to "pull" the machine's IP address to environment variable before running cypress.
any ideas how this can be done?

Thanks a lot

Bret R. Zaun
@bretrzaun
Hi! Is there way to wait for a cy.request() and use its return body in the test? I tried several things without success so far...
Balajimaddy
@Balajimaddy
Hello all,
Does anyone face issue cypress chrome browser not login and the login works fine in normal browser. Tried cypress 3.8.3 and 4.7.0 chrome 83 the issue getting in the console is "431 request header too long"..
Could you please help me out?
Thanks
Gleb Bahmutov
@bahmutov
coltadorsey
@coltadorsey
Is there a configuration to bypass generating videos for skipped tests? I've only come across disabling videos altogether or setting videoUploadOnPasses to false.
RashmiKalpeshChauhan
@RashmiKalpeshChauhan
How to create Test Report in Cypress?
2 replies
Dan Reale
@danreale
Im looking for a way to return a value from reading a file. I'd like to be able to take a value in a file and then do something with it in other tests. Does anyone know if this is possible?
cy.readFile('roleCount.json').then((str) => { const count = str.count // want to use count for assertion elsewhere })
5 replies
Eric Burel
@eric-burel
Hi guys, I am working on setting up Cypress more easily in a Next + TS environment, with coverage. I have one last issue: I can't disable code-coverage support. The problem is that cypress/support is a client-side file, and I can't manage to pass it an option from process.env.COVERAGE. More details here (VulcanJS/vulcan-next-starter#13). Any idea how I could do this? Should it require a PR/opening an issue?
Gleb Bahmutov
@bahmutov
1 reply
Chad Johnson
@kiwdahc
Who ever can update this part of the docs should https://docs.cypress.io/guides/references/best-practices.html#Selecting-Elements may want to look at the example. I understand that you guys are promoting the use of using data-tst above text or value based selectors but that example is horrible and has a huge bias built into it because the text has changed into the same word basically rephrased. If the button text changed to "That was a horrible example" surely you would want your test to fail.
Michelle Foy
@michellefoy

Is there a way to explicitly wait for page refresh before proceeding with checks? I am testing a page that dynamically refreshes the page when background job is done, but continues on to next command/assert and then fails with

Timed out retrying: cy.should() failed because this element is detached from the DOM.

presumably because the refresh interrupted the command.

Amit
@amitverma12
Hello, I am trying to stub a request & I see in the console that the url was match but the application doesn't display the data on the UI. I am just trying to display only 5 records using stub. Without stub, the app displays all the records fine. Any suggestion on how to troubleshoot this?
Abhinaba Ghosh
@abhinaba-ghosh
Hi @bahmutov , Cypress verify is hanging in Jenkins Dockerized build. Any workaround? using v.4.7
32 replies
Screenshot 2020-06-05 at 1.34.19 AM.png
Lucas Pang
@lpanger
Is it possible to change the appdata folder for cypress instance? Currently it's set to C:\Users\xxxxx\AppData\Roaming\Cypress\cy\production\projects\<some guid>. I've tried using the CYPRESS_CACHE_FOLDER but that seems to only put the cypress binary there (after running npx cypress install)
Xu Cao
@caoxu2000
any one seen this error before?
Timed out retrying: chainers.split is not a function
View stack trace
TypeError: Timed out retrying: chainers.split is not a function
    at Context.shouldFn (http://some.domain/__cypress/runner/cypress_runner.js:131689:25)
    at Context.should (http://some.domain/__cypress/runner/cypress_runner.js:131767:23)
    at http://some.domain/__cypress/runner/cypress_runner.js:127819:39
    at assertions (http://some.domain/__cypress/runner/cypress_runner.js:128079:14)
From previous event:
    at Object.verifyUpcomingAssertions (http://some.domain/__cypress/runner/cypress_runner.js:128094:20)
    at http://some.domain/__cypress/runner/cypress_runner.js:134852:21
1 reply
marymuniz
@marymuniz
has anyone seen this warn lately?
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
I found some old issues but they are all related with MacOs. However, I'm using Windows and it started happening when I upgrade Cypress to the latest version
7 replies
Uir786
@uir786_twitter
"actionIcons" : [{
  "a" : "Create New",
  "b" : "Renew"
}

cy.ClickActionIcon(Cypress.env("actionIcons[0].a"))

Can I do something like this? I can't seem to get the element within the array from the env .json

Harshal Carpenter
@TAharshalcarpenter
Hey everyone! Is it possible to forward 'localhost:4200/api' to send thru company proxy but all other request can be local ? Trying to find for past 2 hours if optional proxy is possible ..
Nandan
@Nandan_400_twitter
Hi experts! .. i have a setup where tests are running in parallel. however i have to reduce the execution time by executing tests with single login.
i have some 45 specs with most having a single test, since i cant execute specs in order. Is there a way where i can retain the first login in each machine and execute other tests
basically want to achive single login and execute all specs in each machines
marlenemaiobarroso12
@marlenemaiobarroso12
Hello,
I'm using webpack and my tests have taken a lot of time to run. Does someone have the same issue?
Karthik Krishna
@kar29krish_twitter
Hi All,
Cypress do not write in input field and display the below error, Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.
Kindly guide on fixing this issue
Karthik Krishna
@kar29krish_twitter
labinotkrasniqi
@labinotkrasniqi
Hello everyon e
I am having problems with changes not being saved
I am using cypress 4.7.0
makwanaparth94
@makwanaparth94

cy.request doesn't allowing me to go to next UI test cases

Trying to integrate both UI & API test cases
Created two files:
1.API test --> DO Login and writing token & saving it to fixture file

2.Spec test -->Do REAL Login by using username and password and once test case pass then in next test first get the response by using cy.request using token which saved by step1. Based on response keys search the data in search bar

API Test File:
it("Login Request API",function(){

    cy.request({
        method:"POST",
        url: POST URL,
        headers:{
         "content-type" : "application/json"
        },
        body : {
         "email": USER NAME,
         "password": PASSWORD
        },
        log: true
    }).then((response) => {
         // Parse JSON the body.
         expect(response.status).to.equal(200)
         let resbody = JSON.parse(JSON.stringify(response.body));
        cy.writeFile("File Path to store response",resbody)
     })
});

Once above test is executed then it redirect to first test . Not going to further tests

labinotkrasniqi
@labinotkrasniqi

I am having problems with changes not being saved

Changing the spec file name updates the test but unfortunately I need to do that every time I change something at the moment! If anyone has any ideas on this please ping me

Dmitry Kabak
@kabbi
Hey! I'm having a problem with DELETE cy.request, cypress says cy.request() timed out waiting 30000ms for a response from your server., but server correctly responds with 204 and request is actually executed. Also works in curl. Is this a known issue?
This is what curl says:
> DELETE /en/v2/(...)/137615 HTTP/2
> Host: example.com
> User-Agent: curl/7.54.0
> Accept: */*
> 
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
< HTTP/2 204 
< date: Fri, 05 Jun 2020 12:42:56 GMT
< server: nginx/1.14.0 (Ubuntu)
< vary: Accept, Accept-Language, Origin
< allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
< content-language: en-us
< x-date: 2020-06-05T12:42:56.751794
Jason Gretz
@jagretz
Hey there! I am trying to figure out if and how I can stub a request (not a route). My apps baseUrl is not the same as the service endpoints eg baseUrl = 7000, serviceApi = 6000. But I want to stub a response from 6000 so I can test situations where the data from the server may be in different formats.
Is this possible? I am having trouble locating the documentation that explains how to accomplish this.
Gleb Bahmutov
@bahmutov
@jagretz since cy.request happens under the hood, you cannot stub it from the test
Jason Gretz
@jagretz
@bahmutov thanks for the response!. That's what I thought from the docs.
I was able to figure out how to stub with route by swapping out the ports for the request url
Uir786
@uir786_twitter
Hey folks! I have an odd issue. I have a test that fills out a form to create a new file which upon click "Ok" to submit geneerates a zip to be downloaded. However Cypress seems to get stuck at that step and no network calls or anything on the network is happening. Any solutions or anyone know how can I get this to work?
1 reply
Muhammad wasiq khan
@wasiqkhan786
Hi, how to write the nested function with .then
Muhammad wasiq khan
@wasiqkhan786

return element(by.id("searchInput")).sendKeys(

        protractor.Key.CONTROL, "a", protractor.Key.NULL,
        input);
8 replies
what is equivalent in cypress
david-shams-bp
@david-shams-bp
Uir786
@uir786_twitter
Regarding this download issue anyone can help a brother out?
Juan Pablo
@jprealini
CROSS ORIGIN API LOGIN ISSUE: Hi... I am testing a webapp locally... the app is running on :4100 and the api on :3000. I want to do an api login so I don't have to do a UI login in every test. But even though I worked around the CORS issue with the "chromeWebSecurity": false" configuration, I can't still login (I mean.. I do login in the API, I get a 200 and receive the user properties back) but then when I visit the app home I am not logged in.. Obviously I am missing something. For this, I am using the REALWORLD CONDUIT sample apps (probably some of you have used or tried it). Any hint will be appreciated
Joey Hannah
@jthannah
When adding an ignore test file config such as "ignoreTestFiles": "ignore/*.*". Should those files still show up in the Cypress Test Runner UI?
Juan Pablo
@jprealini
@jthannah nope... they shouldn't.. but why the "ignore/." ?? You should just specify the file naming, like "ignoreTestFiles":"*.js"
Lawrence Cabal
@lawcab
Hi there...I am new to cypress....I was trying to get cookie but I am getting undefiled
cy.visit("https://slack.com/signin#/");
    cy.get('[data-qa="signin_domain_input"]').type(<something>);
    cy.get('[data-qa="submit_team_domain_button"]').click({force: true});
    cy.get('[data-qa="org_owner_signin_link"]').click();
    cy.get('[id="email"]').type(<something>);
    cy.get('[id="password"]').type(<something>);
    cy.get('[id="signin_btn"]').click();
    let cookie = cy.getCookie('d');

    cy.log( "COOKIE : "+ cookie.value);
any tips and tricks on debugging will help