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

    strong-eye-30896

    12/26/2022, 5:53 PM
    Hello how are you? How do I capture cookie data now without Cypress.Cookies.defaults() in cypress version 12?
  • s

    strong-eye-30896

    12/26/2022, 5:53 PM
    Well, I can log in, but after logout in the system, the website blank screen appears as if the login session was not saved...
  • k

    kind-angle-5131

    12/26/2022, 7:11 PM
    try to add this into your cypress.config.json under e2e -> testIsolation: false,
  • s

    strong-eye-30896

    12/26/2022, 7:18 PM
    I didn't understand
  • k

    kind-angle-5131

    12/26/2022, 7:20 PM
    here you have documentation if will help: https://docs.cypress.io/guides/core-concepts/test-isolation#What-you-ll-learn
  • s

    strong-eye-30896

    12/26/2022, 8:32 PM
    I will look here
  • f

    flaky-intern-13440

    12/27/2022, 3:56 AM
    Hey everyone 🖐🏾 Still looking for help with Cypress v10+ Plugins File Removed. Thank you. https://discord.com/channels/755913899261296641/763105090679865354/1056903181122146354
  • a

    astonishing-coat-3685

    12/27/2022, 10:29 AM
    I used this guide to make cypress work on wsl2 https://nickymeuleman.netlify.app/blog/gui-on-wsl2-cypress . It worked for a year. But it has stopped working somewhere in the last month, as today I can't get my test to run from wsl2 anymore
  • a

    astonishing-coat-3685

    12/27/2022, 10:29 AM
    Do you have any idea of what may cause this?
  • a

    astonishing-coat-3685

    12/27/2022, 10:29 AM
    When I launch cypress, the script is stuck there
  • a

    able-traffic-38184

    12/27/2022, 11:32 AM
    Hi guys! Merry Christmas and Happy New Year to all of you! I am trying to extract logs from Splunk with Cypress request calls and faced a problem! First, I make a POST request to the server to get the Splunk search sid number. I store this number in the Cypress.env variable and in the second test I try to form the URL for the second request using this variable. The problem is - when I use template literals to form the URL from the variable - I get 204 response code with no data. But if I manually form the URL with the sid that I got from the first request - it works and I get 200 and the data. I have attached screenshots, so you can see the problem. The first runner screenshot is with Cypress.env variable. The second - with hardcoded URL
  • b

    bulky-night-80023

    12/27/2022, 12:49 PM
    hello everyone! need a help System : mac m1 I am getting this error after upgrading to 12.2.0 - unable to run on chrome and edge If I use electron: then unable to login to my application as it uses many redirections, seems like it doesn't save cookies
  • w

    wonderful-match-15836

    12/27/2022, 1:51 PM
    hello everyone need a help
  • c

    cold-author-79999

    12/27/2022, 3:05 PM
    i have a doubt let rawToken = sessionStorage.getItem(key); const token = "Bearer " + rawToken.substring( rawToken.indexOf('"access_token":') + 16, rawToken.indexOf('","refresh_token":') ); this is what i did and am getting error Cannot read properties of null (reading 'substring') i used substring in commands.js
  • s

    some-oil-10020

    12/27/2022, 3:10 PM
    Hey guys! I'm new here! Someone could help me on how to click in a Quasar Expansion Component with Cypress? Thanks in advance!
  • w

    wonderful-match-15836

    12/27/2022, 4:57 PM
    i have a doubt
  • w

    wonderful-match-15836

    12/27/2022, 5:06 PM
    Hey guys I m new here Someone could help
  • k

    kind-van-46599

    12/27/2022, 7:37 PM
    Hi Guys, I'm trying to read this code and understand and I'd like to know how to print the value of weekNo and cell within foreach loop ||`cy.findByTestId('AssortmentRow') .contains(title) .get('[data-testid="SelectableCell"]') .should((cells) => { table.hashes().forEach(({ Week, Value }) => { const weekNo = week(Number(Week)); const cell = cells[weekNo]; expect(cell).to.contain(Value); }); });`||
  • g

    gray-kilobyte-89541

    12/27/2022, 7:38 PM
    what do you mean "print"?
  • k

    kind-van-46599

    12/27/2022, 7:39 PM
    Something like a cy.log(). This code was written by one of my team member and I'm trying to understand the logic.
  • g

    gray-kilobyte-89541

    12/27/2022, 10:32 PM
    You cannot have Cypress commands inside an assertion callback
    .should(...)
    You probably want to print it first before making assertions? Or just let the assertion print the value
  • b

    bitter-fountain-36713

    12/28/2022, 12:46 AM
    Also, .get() as a child command may not work as you think since it will always query from the root element. https://docs.cypress.io/api/commands/get#Get-vs-Find
  • k

    kind-van-46599

    12/28/2022, 5:43 AM
    You cannot have Cypress commands inside
  • k

    kind-van-46599

    12/28/2022, 6:04 AM
    @bitter-fountain-36713 When I replace get() with find() Cypress throws the following error
    Timed out retrying after 4000ms: Expected to find element: [data-testid="SelectableCell"], but never found it. Queried from element: <span.eLrQSlFO6NNdr2YDzyOJ>
    and currently I'm able to achieve the desired result using get(). I second your suggestion, but find() isn't behaving the expected way.
  • s

    swift-manchester-9192

    12/28/2022, 10:21 AM
    Hello guys! I cannot run cypress tests on Gitlab CI/CD pipeline, after i do cy.visit('/') it navigates to http://localhost:3000 and i get blank page. Can someone help me please! I stuck on that one for couple days now
  • p

    proud-breakfast-29892

    12/28/2022, 10:45 AM
    Hi everyone! I have the following Cypress code:
    Copy code
    ts
    let x = {}
    cy.wrap(myObject).each((object: any) => {
        cy.request({
            method: 'GET',
            url: object.url,
            qs: {
                token: this.TOKEN
            }
            }).then((response) => {
                x = {response.body.myValue}; // Here we update the X object
                cy.log(x) // X is updated as expected
            });
            cy.log("Updated x", x); // But here, X is still empty object!
    });
    cy.log("Updated x", x); // Still empty object!
    As you can see, I am trying to iterate over a few objects using cy.each, and for each of the object, I perform an HTTP call with the URL that is included in the object. After that, I get the response promise, and inside that promise, I update the value of X. After that, outside of the promise, I log the updated value of X. However, it still retains the old value, and is an empty object. And of course ,it is also the case after the each iteration ends, as you can see in the final line. Why is X updated inside the response promise just fine, but stays empty outside of it? I want to be able to have an updated X OUTSIDE of the each iteration
  • b

    bitter-fountain-36713

    12/28/2022, 2:16 PM
    !duplicate
  • n

    nutritious-analyst-96582

    12/28/2022, 2:16 PM
    Uh oh, It looks like you have posted the same question in multiple channels. Help us prevent spam by removing any duplicates of your questions, Thanks! 😀
  • g

    gray-kilobyte-89541

    12/28/2022, 3:08 PM
    https://cypress.tips/search
  • s

    swift-spoon-76449

    12/28/2022, 3:19 PM
    Hi to all, my question is in line 56 🙂
1...238239240...252Latest