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

    dry-scooter-25612

    12/07/2022, 9:48 PM
    @gray-kilobyte-89541 I have an Invoice payment modal window with the following content Invoice Total: $$ Current Debt: $$ Amount Paid : $$ Balance Due: $$$ Enter payment amount : $$$ I want to get the total of the invoice and enter it in payment amount to make the payment later remember that this value can change the idea is to get it every time the modal window is opened
  • g

    gray-kilobyte-89541

    12/08/2022, 1:16 AM
    search for pseudo at https://cypress.tips/search
  • g

    gray-kilobyte-89541

    12/08/2022, 1:17 AM
    Search for "total price" among my examples at https://cypress.tips/search
  • a

    alert-agent-5651

    12/08/2022, 5:15 AM
    Hi guys, my problem is that every test i want to run in an Azure DevOps Pipeline fails. If i try it locally everything is fine and runs without errors.
  • m

    mysterious-belgium-25713

    12/08/2022, 6:32 AM
    Please read #763097415896268840 . We are no mind readers without proper examples of your pipeline + errors we can never know what it means my test fail the pipeline.
  • b

    boundless-football-72993

    12/08/2022, 8:07 AM
    btw Internal Error: Duplicate workspace name cypress: /Users//cypress/cli conflicts with /Users//cypress when doing yarn install, any advice?
    f
    • 2
    • 1
  • s

    square-mechanic-63253

    12/08/2022, 12:54 PM
    Hi Can we automate SSH commands in cypress ?
    f
    m
    • 3
    • 6
  • b

    bumpy-insurance-8581

    12/08/2022, 1:44 PM
    Hi guys, anyone know if it’s possible to check for an element to load fastly ? Like my should() method will do something like should(‘load.before’, 100) ?
  • g

    gray-kilobyte-89541

    12/08/2022, 1:46 PM
    https://github.com/bahmutov/cypress-time-marks
  • b

    bumpy-insurance-8581

    12/08/2022, 3:18 PM
    Nice ! Exactly what I needed, thanks !
  • a

    acceptable-solstice-90676

    12/08/2022, 5:02 PM
    Hey guys, have anyone had this issue? https://stackoverflow.com/questions/72175423/cypress-aws-code-build-tput-no-value-for-term-and-no-t-specified I've been trying to solve it but have a coupe of days on it, but I haven't figure it out. Please help. I didn't write that post but that's exactly the issue I am having. I am trying to configure parallelization on AWS. I have read all cypress documentation and compare my buildspec to be as cypress example and documentation, but not luck yet
  • s

    square-honey-48197

    12/08/2022, 5:08 PM
    Question: Is there any way to up the framerate of the recorded run in CI? Context: Often times the framerate is too low to see what the issue is. Most recently last night had a failing test, and looking at the command palette, the tests go from step 22, then the next frame of the recording, are on step 25 with the assertion. I'm unable to see how the page was responding before the test failed. Has anyone else encountered this?
  • g

    gray-kilobyte-89541

    12/08/2022, 5:10 PM
    - use larger CI machine - use lower resolution video
  • s

    square-honey-48197

    12/08/2022, 5:13 PM
    1. Can one choose a larger ci "machine" when running through GH Actions? 2. I have my video set to:
    Copy code
    "viewportWidth": 1280,
      "viewportHeight": 720,
      "videosFolder": "videos",
    , is there another place to choose the entire video resolution or were you referring to that?
  • g

    gray-kilobyte-89541

    12/08/2022, 5:21 PM
    1. I think you will need to self-host for GHA, this is why I like CircleCI machines, really easy to go up 2. https://github.com/bahmutov/cypress-high-resolution
  • a

    acceptable-solstice-90676

    12/08/2022, 9:32 PM
    😥 😁
  • m

    mysterious-belgium-25713

    12/08/2022, 9:50 PM
    I don't have any knowledge on AWS buildspec. But maybe if i have time tomorrow i can look into recreating a Cypress pipeline in AWS. I cannot make any promises but i hope to have something working.
  • a

    acceptable-solstice-90676

    12/08/2022, 10:12 PM
    Awesome! whenever you can it's fine. Thank you
  • c

    clean-optician-27186

    12/08/2022, 11:36 PM
    A TypeScript and fixture question. When you do an import of a fixture file to use for a data-driven test, is there any way to type the variable? That is, if I have this:
    Copy code
    import testData from '../../../fixtures/test_data.json'
      testData.forEach((dataSet) => {
          context(
            `List filters are set as follows: ${dataSet.filterName}`, ...
    Is there a way to tell the test what shape (type) of data "testData" is? I know I can set the type for dataSet, but I need to set the type for testData.
  • p

    powerful-agency-55160

    12/09/2022, 4:09 AM
    Hi , i try to catch error in cypress using sample script like this
    Copy code
    it('fails with expected 5 to equal 42', () => {
      cy.on('fail', (e, test) => {
        if (test.title.startsWith('fails with') &&
          test.title.endsWith(e.message)) {
          console.log('test "%s" is allowed to fail with error "%s"',
            test.title, e.message)
        } else {
          throw e
        }
      })
    
      expect(5).to.equal(42)
    })
    But why still error yah?
  • b

    bitter-fountain-36713

    12/09/2022, 4:18 AM
    You are only logging into console. How come you didn't go with console.log error message?
  • p

    powerful-agency-55160

    12/09/2022, 4:20 AM
    im sorry, here this log
  • b

    bitter-fountain-36713

    12/09/2022, 4:39 AM
    Oh, it looks like you were trying to do something different than what I was thinking. Are you looking to allow a certain test to fail and continue onward?
  • b

    bumpy-notebook-41087

    12/09/2022, 5:29 AM
    Hi How can I ask pre-sales questions about cypress dashboard?
  • f

    fresh-doctor-14925

    12/09/2022, 8:31 AM
    Hi How can I ask pre sales questions
  • b

    billions-king-35651

    12/09/2022, 9:15 AM
    Hello everyone, Please, I have a question. I want to test for some data being rendered on the screen but the data are not known ahead and they depend on the authenticated user. How best can I test this against what is coming from the database using Cypreess. Example: User A has 3 transactions User B has 2 transactions User C has 0 transaction It is what they have that will eventually be rendered. What's the best way to know what's in the database in order to test it against what's being rendered. Thanks
    f
    • 2
    • 4
  • f

    fresh-doctor-14925

    12/09/2022, 9:26 AM
    Hello everyone
  • f

    few-oyster-82478

    12/09/2022, 11:32 AM
    is there a way to somehow check that the e2e tests are being run in parallel?
    Copy code
    - npm run cy:run:chrome -- --tag production --record --parallel
    - npm run cy:run:firefox -- --tag production --record --parallel
    f
    • 2
    • 2
  • f

    few-oyster-82478

    12/09/2022, 11:33 AM
    seeing the CI logs aparently they run one after the other and not in parallel, meaning, it first executes chrome tests and when finished it executes firefox tests
  • f

    few-oyster-82478

    12/09/2022, 11:38 AM
    maybe it's only expected to work if they are on different CI jobs?
1...224225226...252Latest