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

    rhythmic-tomato-2495

    05/24/2022, 6:35 PM
    is there anyway I can get number of scenarios count and the gherkin step name on fail, to generate a custom report?
  • g

    gray-kilobyte-89541

    05/24/2022, 6:47 PM
    string template?
  • f

    famous-family-87715

    05/24/2022, 7:51 PM
    thanks for that but can i use something like regular expression in it? and if so, what is the syntax? I have been online searching this and cant find anything (or im not using the correct keywords) cy.get(``.someClass > .someOtherClass-/ \d{2} /> [data-testid=timeline-thumbnail-/ \d{2} /] `)
  • g

    gray-kilobyte-89541

    05/25/2022, 7:21 AM
    Unfortunately CSS and jQuery selectors do not understand regular expressions, so you would either need to use wildcards or use data test ids, see examples at https://glebbahmutov.com/cypress-examples/9.6.0/commands/querying.html
  • c

    colossal-potato-23540

    05/25/2022, 8:43 AM
    Hi Everyone! Is it possible to use only one source folder in two cypress test? I wish someone can answer on this one. Thanks a lot!https://stackoverflow.com/questions/72374111/cypress-syntaxerror-import-and-export-may-appear-only-with-sourcetype-mod
  • b

    bitter-apple-86316

    05/25/2022, 9:02 AM
    Hi
  • b

    bitter-apple-86316

    05/25/2022, 9:03 AM
    My target is to automate flow using full mocking. Is this possible to mock all apicalls using cypress
  • f

    fresh-doctor-14925

    05/25/2022, 9:22 AM
    Yes, with
    cy.intercept
  • m

    mammoth-fish-55706

    05/25/2022, 11:56 AM
    Hi all 🙂 is there a guide on the color code schema in the cypress test runner when intercepting a request ? The little circles before the request I mean. Like green, blue, gray or non-filled etc seems to have a meaning. Thanks 🙂
  • g

    gray-kilobyte-89541

    05/25/2022, 2:24 PM
    https://docs.cypress.io/api/commands/intercept#Command-Log
  • f

    fresh-doctor-14925

    05/25/2022, 2:55 PM
    I would love to understand this too! I realised I’ve been assuming to know what they mean 😅 I can see the docs mention what yellow indicates, but I’d also like to know about blue, grey, and green
  • r

    refined-barista-99014

    05/25/2022, 3:00 PM
    hello 👋 I am running into an issue trying to select an item from a dropdown. The dropdown includes over 100 items, and so my selection is not visible when pressing the dropdown.
    Copy code
    js
        cy.get('[class="ember-power-select-option"]').contains('compName').click();
    but i get this error:
    Copy code
    Timed out retrying after 4000ms: Expected to find content: 'compName' within the element: [ <li.ember-power-select-option>, 19 more... ] but never did.
    It seems to only be seeing the top 20 items in the list I was thinking maybe I could type in the compName into the search on the dropdown to limit the options and then select. But it does not work when using .type(). Any suggestions would be much appreciated
  • m

    magnificent-finland-58048

    05/25/2022, 3:18 PM
    can you try https://docs.cypress.io/api/commands/select https://docs.cypress.io/api/commands/scrollintoview https://docs.cypress.io/api/commands/scrollto and maybe increase the timeout too:
    timeout: 10000
    maybe the items haven't finished loading you might event want an intermediate assertion after
    cy.get('[class="ember-power-select-option"]')
    to ensure that n items are loaded
  • r

    refined-barista-99014

    05/25/2022, 3:30 PM
    I may also have an issue with the actual item being detached from the DOM because when I choose a selection that is visible, I get this error. When inspecting the page I am trying to get the element attached in the picture.
    Copy code
    Timed out retrying after 4050ms: cy.click() failed because this element is detached from the DOM.
    
    <li class="ember-power-select-option" aria-selected="false" aria-current="false" data-option-index="7" role="option">compName</li>
    
    Cypress requires elements be attached in the DOM to interact with them.
  • m

    magnificent-finland-58048

    05/25/2022, 3:37 PM

    https://www.youtube.com/watch?v=CMOjrKoBBwcâ–¾

    https://www.youtube.com/watch?v=wAjhXohhYjcâ–¾

    https://www.youtube.com/watch?v=gd7Zx93VxOoâ–¾

    https://glebbahmutov.com/blog/cypress-tips-and-tricks/#wait-on-the-right-thing TL,DR; CA CA pattern; command and assert repeatedly to give the dom time to settle. or you have this shotgun 😄 https://github.com/bahmutov/cypress-cdp
  • r

    refined-barista-99014

    05/25/2022, 3:45 PM
    thanks, I got some research to do 😄
  • w

    worried-furniture-56137

    05/25/2022, 5:23 PM
    Hi guys ! I'm facing an issue with multiple gitlab pipelines... I'm getting this error : Cypress verification timed out. The Cypress version is 9.6.1 If anyone has any idea 🙂
  • m

    magnificent-finland-58048

    05/25/2022, 7:42 PM
    copy this Github repo to Gitlab, update the runners and diff it with yours https://github.com/muratkeremozcan/angular-playground
  • w

    worried-furniture-56137

    05/25/2022, 7:53 PM
    I'm using shared runners on gitlab.com. Not sure I can update it 😅
  • w

    worried-furniture-56137

    05/25/2022, 7:54 PM
    And it was working last week 😦
  • f

    future-eye-56254

    05/25/2022, 10:38 PM
    Does anybody else too see this after a test runs for about 300 seconds
    t
    • 2
    • 7
  • t

    thankful-lunch-80439

    05/25/2022, 10:49 PM
    Does anybody else too see this after a
  • r

    red-butcher-91574

    05/26/2022, 8:15 AM
    Hi
  • r

    red-butcher-91574

    05/26/2022, 8:16 AM
    I m creating only default mochaawesome report
  • r

    red-butcher-91574

    05/26/2022, 8:16 AM
    But I want to do customuze html
  • r

    red-butcher-91574

    05/26/2022, 8:16 AM
    How can I do
  • m

    magnificent-finland-58048

    05/26/2022, 11:16 AM
    of course you can we had a "cost savings" measure with that setup, there were 3 AWS EC2 instances that literally acted as runners for the whole org, 10+ teams sharing them. Makes no difference in your case. Drop in the yml, update the runner in the yml to whatever you're using
  • m

    magnificent-finland-58048

    05/26/2022, 11:17 AM
    You have to ask that to the plugin provider, or do some googling we have all been there and done the "home baked report" thing. Take it from the wise, it's not worth your time. Try out Cypress Dashboard. There is plenty of resources about it. People have solved the problem you're running into. https://dev.to/bushraalam/using-mochawesome-reporter-with-cypress-54pf https://dev.to/ganeshsirsi/cypress-how-to-configure-html-results-with-screenshot-step-by-step-guide-55n7
  • p

    powerful-gigabyte-69168

    05/26/2022, 1:18 PM
    Can I bump? I'm still struggling to nicely test the data in a Pinia store. Has anyone tried doing this? Here's a minimal reproduction: https://github.com/itsalaidbacklife/cypress-pinia-composition
  • w

    wooden-australia-44486

    05/26/2022, 1:27 PM
    i am trying to use dotenv to pull in variables from a .env file (in a monorepo, just as all of our other projects do) and i must not be doing something correct in the plugin/index.js file. how might i go about debugging the plugin files? thanks
1...707172...252Latest