https://cypress.io logo
Join Discord
Powered by
# e2e-testing
  • s

    square-honey-48197

    11/17/2022, 9:49 PM
    it took 26 seconds headlessly vs 8 seconds headed, but it passed? ๐Ÿ‘
  • s

    square-honey-48197

    11/17/2022, 9:49 PM
    wonder why the difference in time
  • s

    square-honey-48197

    11/17/2022, 9:50 PM
    watched the video, looks like chrome is just slower than electron, but i'll take it if it means it passes. thank you ๐Ÿ™‚
  • m

    mysterious-belgium-25713

    11/17/2022, 9:53 PM
    Yeah i dont know why it was slower headless. Maybe some bad optimization. But yeah then it means that electron is doing something funky and thats why it detached
  • s

    square-honey-48197

    11/17/2022, 9:54 PM
    luckily our CI uses chrome, so hopefully it's all good now. thank you so much ๐Ÿ™‚
  • m

    most-secretary-62975

    11/17/2022, 11:55 PM
    Hi, I started working and learning with Cypress last week. Currently running into an issue and looking to be pointed in the right direction if possible. Our website opens a new window but it is not in the same window as the cypress runner but still has the message that says chrome is being controlled by automation test software. Is there anyway to interact with a new window that opens? It is not a window that opens by clicking a button. It is in the same domain though. Any help would be appreciated.
  • s

    square-honey-48197

    11/18/2022, 12:33 AM
    there's probably a cypress command that lets you hook into that other chrome session similar to how one does it for iframes, but i don't have any personal experience with it
  • m

    most-secretary-62975

    11/18/2022, 1:34 AM
    @square-honey-48197 ok thank you
  • m

    most-secretary-62975

    11/18/2022, 1:35 AM
    https://github.com/jakedowns/CypressHelpers does anyone know if adding these files to the support folder give me access to using these commands?
  • m

    most-secretary-62975

    11/18/2022, 1:37 AM
    I didnโ€™t understand his instructions where he wrote โ€œSee tab-helpers.js. Just add it to your support/commands.js file โ€œ
  • b

    big-sundown-77934

    11/18/2022, 2:51 AM
    looks like this is an issue related to Node.js version and OpenSSL: https://github.com/cypress-io/cypress/issues/22262 I'm on Fedora 36, latest Node.js from package manager is 16.14.0 Fedora 37 was released November 15 and makes the jump to Node.js 18.7.0 I'll probably try that upgrade tomorrow and test again, it should resolve it
  • p

    plain-elephant-20908

    11/18/2022, 5:10 AM
    Thank you so much @enough-truck-68085.๐Ÿ™‚
  • m

    mysterious-belgium-25713

    11/18/2022, 8:09 AM
    Are you clicking a link and that opens a new tab/pop-up. If so check the element you are selecting if it has a attribute called target=_blank if it has then you can just remove that attribute by using this
    Copy code
    js
    cy.get('yourselector').invoke('removeAttr', 'target').click()
  • s

    stale-ambulance-65138

    11/18/2022, 8:35 AM
    hi I would like to ask how is it
  • m

    most-secretary-62975

    11/18/2022, 2:45 PM
    Thank you. But there isnโ€™t an attribute called target=_blank.
  • m

    most-secretary-62975

    11/18/2022, 2:48 PM
    I am looking for how to add https://github.com/jakedowns/CypressHelpers these helpers to the project I am working on. It is based off of @gray-kilobyte-89541 Cypress-open-child-window repo https://github.com/bahmutov/cypress-open-child-window
  • m

    mysterious-belgium-25713

    11/18/2022, 3:06 PM
    I think he says you need copy past all the contents of that file in commands.js
  • m

    mysterious-belgium-25713

    11/18/2022, 3:07 PM
    But it hasnt been updated in 2 years so i dont know if it will still work
  • g

    gray-kilobyte-89541

    11/18/2022, 3:57 PM
    In general, you can learn how 99% of Cypress plugins work by taking this hands-on course https://cypress.tips/courses/cypress-plugins BUT I would be curious to see if those custom commands still work
  • r

    rough-jordan-79228

    11/18/2022, 4:25 PM
    hey community i have some issues getting my cookie informations
  • r

    rough-jordan-79228

    11/18/2022, 4:26 PM
    the log shows me: Object{3} 3 is actually the value i am expecting xD but i cant use it
  • r

    rough-jordan-79228

    11/18/2022, 4:26 PM
    what am I doing wrong?
  • n

    nutritious-army-46708

    11/18/2022, 4:36 PM
    Hi๏ผ When cypress clicks a video, it could not play the video with the error message:'Unsupported keySystem or supportedConfigurations.' Does anyone have some suggestions? By the way, it can play successfully in chrome without cypress.
  • m

    most-secretary-62975

    11/18/2022, 4:53 PM
    Thank you. I will definitely go through this course.
  • g

    gray-toddler-91745

    11/18/2022, 5:08 PM
    Hey I have a logic question. I have 10 rows of data in which i have to delete all data's except one particular data (which ik the value for) data's can only be deleted one by one . I do not know which row my data would populate but ik the value it would contain . As for the rest i do not care about the data so have to delete them. How would you do this in Cypress.
  • g

    gray-toddler-91745

    11/18/2022, 5:10 PM
    I first tried to do this using for each loop but the issue with that is that every time the data is deleted the Dom elements change.
  • g

    gray-toddler-91745

    11/18/2022, 5:11 PM
    I tried using recursive function but I can't seem to find the exact logic for this . Any soln would be appreciated.
  • b

    bored-coat-44991

    11/18/2022, 5:52 PM
    Hello guys, i am having issue with cypress dashboard. It crash in my macbook. Any suggestion please
  • s

    square-honey-48197

    11/18/2022, 6:25 PM
    Sounds like you could do a
    cy.get()
    for some common attribute they all share,
    .each()
    and then inside specify the behavior. Like this example: https://www.webtips.dev/webtips/cypress/iterate-over-elements
    Copy code
    Javascript
    cy.get('menu li').each((element, index, list) => {
        // Returns the current li element
        expect(Cypress.$(element)).to.be.visible;
    
        // Returns the index of the loop
        expect(index).to.be.greaterThan(-1);
    
        // Returns the elements from the cy.get command
        expect(list).to.have.length(3);
    });
  • s

    square-honey-48197

    11/18/2022, 6:28 PM
    Question: I'm having a hard time matching a URL for a
    cy.intercept()
    , and could use some help: **URL I'm trying to match**:
    http://...<privacy reasons>.../data/pacing?startDate=2022-11-18T00:00:00.000-07:00&endDate=2022-11-18T23:59:59.999-07:00&advertisers=&accountManager=&productLineItems=&productCategories=
    **Patterns i've tried:**:
    Copy code
    Javascript:
     cy.intercept('GET', '**/data*').as('pacingRequest'); // glob pattern
     cy.intercept('GET', '**/pacing?*').as('pacingRequest'); // glob pattern
     cy.intercept('GET', '**/data/pacing?*').as('pacingRequest'); // glob pattern
     cy.intercept('GET', '**\/data\/pacing$').as('pacingRequest'); //attempt at regex
    Anyone have any suggestions?
1...146147148...192Latest