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

    square-pager-46841

    08/09/2022, 6:36 PM
    Heres my code
  • s

    square-pager-46841

    08/09/2022, 6:36 PM
    Heres the error, it keeps on disrespecting the selection of the fourth option in 'select(3)
  • s

    square-pager-46841

    08/09/2022, 6:37 PM
    Anyone know or see what I may be doing wrong? Thanks for your time!
  • l

    late-planet-4481

    08/09/2022, 7:18 PM
    Do you have a reason for using deep.equal here? I understood that to be useful for collections, not for dates. I believe your example needs to stick closer to the Cypress example.
    Copy code
    cy.getTag("survey_timespan_button")
      .select(3)
      .should('have.value', '07-17-2022')
  • l

    late-planet-4481

    08/09/2022, 7:19 PM
    But it's a weird assertion. Why assert what you just set yourself? I think it only made sense to explain how the command worked.
  • g

    gray-kilobyte-89541

    08/09/2022, 7:31 PM
    does it change the value immediately? Have you tried
    .should('have.value', '...')
    instead of invoking
    val
    ?
  • c

    chilly-queen-22182

    08/09/2022, 8:47 PM
    hi @gray-kilobyte-89541 Can you please help me with cy.downloadFile, my test getting an error cy.downloadFile is not a function... I also add snippet of my plugin file.
  • g

    gray-kilobyte-89541

    08/09/2022, 10:09 PM
    you are overwriting your
    module.exports
    twice in the plugins file.
  • c

    chilly-queen-22182

    08/10/2022, 12:30 AM
    Thanks I fixed that, and now I am getting this, though there is task in plugin file... I have attached screenshot of my command.js file too
  • g

    gray-kilobyte-89541

    08/10/2022, 12:36 AM
    weird. Well, where is that command downloadFile coming from? I would open an issue in that plugin's repo
  • f

    flaky-airport-12178

    08/10/2022, 6:43 AM
    Hi team
  • f

    flaky-airport-12178

    08/10/2022, 6:44 AM
    Do you know how to get the shadow value as screenshot?
  • g

    gray-kilobyte-89541

    08/10/2022, 11:06 AM
    https://on.cypress.io/shadow
  • b

    brash-tiger-52405

    08/10/2022, 11:38 AM
    Hello Everyone , i need some support. I try to get the href attribute of a button with cy.get('a > oc-button > button'). Cypress matches four more elements with this name, so i tried to find the button with cy.get('a > oc-button > button').eq(2), but two other buttons always get highlighted no matter whether with eq(0) or eq(1,2,3). Can someone help?
  • g

    gray-kilobyte-89541

    08/10/2022, 11:57 AM
    highlighted when you hover over the
    cy.get
    or
    .eq
    ?
  • b

    brash-tiger-52405

    08/10/2022, 12:03 PM
    when i hover over .eq
  • s

    sticky-minister-8548

    08/10/2022, 1:22 PM
    Hi. I'm trying to configure cypress on Ubuntu 18.04.6 LTS but after guide configuration I'm ending with only two folders -> fixtures and support in my vscode workspace. I supposed there should be also integration and pluggins folders which are missing.
  • f

    fresh-doctor-14925

    08/10/2022, 1:34 PM
    Have you run Cypress for the first time? I believe those folders are added as part of initial setup
  • s

    sticky-minister-8548

    08/10/2022, 1:35 PM
    I did and it ended on cypress gui with infinit cypress logo reloading.
  • g

    gray-kilobyte-89541

    08/10/2022, 1:40 PM
    I doubt that it gives you multiple elements, honestly have never seen such situation
  • m

    mysterious-motherboard-13344

    08/10/2022, 1:47 PM
    I had faced similar kind of error for svg image loading ....and it got resolved when I installed webpack-preprocessor, i.e., @cypress/webpack-preprocessor": "^5.12.0"
  • r

    rough-forest-98201

    08/10/2022, 2:44 PM
    hi all, i have 2 question. please help. 1. Any command for read or show result from last run testing ? 2. Possible to export it into json or txt? already read doc https://docs.cypress.io/guides/guides/command-line#cypress-info, but only have few. we plan use it for push notice our server discord. thank you.
  • s

    square-pager-46841

    08/10/2022, 3:05 PM
    Hello! Yes I have also tried using 'have.value' but it didn't work seems that no matter what .select(#) has, it just doesnt select the index I tell it to. I know its a bit weird, it is practice for future tests but also sometimes I will have to do this I think.
  • s

    square-pager-46841

    08/10/2022, 3:07 PM
    Yeah thats a good question, I don't think it changes it immediately. maybe a cy.wait()? I have also tried using. .should('have.value'... but it didn't work seems that no matter what .select(#) has, it just doesn't select the index I tell it to
  • f

    fierce-lion-2381

    08/10/2022, 3:09 PM
    @gray-kilobyte-89541 Hello, I watched your video about getting text from list of elements, and its working perfectly, but I wonder, can we replace some letter in that "array" we create with Cypress map and convert it to number later. Do you have any advice?
  • l

    loud-city-40050

    08/10/2022, 4:38 PM
    Has anyone come across a range error?
  • g

    gray-kilobyte-89541

    08/10/2022, 8:13 PM
    sure? it is just JavaScript
  • f

    fierce-lion-2381

    08/10/2022, 8:19 PM
    @gray-kilobyte-89541 i couldnt do it with this way for some reason
  • l

    lemon-winter-31408

    08/10/2022, 8:21 PM
    Hello there. I just upgraded cypress from 10.3.1 to 10.4.0 and get an error I don't understand when running a component test. These test run correctly in 10.3.1. Here is a screenshot of what I see when I click on a component spec. I don't understand why our index.js file is being used. We have an ejected react project using webpack.
  • g

    gray-kilobyte-89541

    08/10/2022, 9:04 PM
    I am not sure what you are trying to do exactly unfortunately
1...125126127...252Latest