https://cypress.io logo
Join Discord
Powered by
# general-chat
  • f

    few-musician-79351

    03/16/2022, 3:04 PM
    Hey guys, how can I make actions to read my fixture.json?
  • f

    few-musician-79351

    03/16/2022, 3:06 PM
    I tried putting a fixture parameter like env var in actions but it doesn't work
  • a

    acoustic-answer-12539

    03/16/2022, 4:44 PM
    does the cypress-plugin-snapshots plugin supports CI environment or not.
  • a

    acoustic-answer-12539

    03/16/2022, 4:48 PM
    The visual testing plugin "cypress-plugin-snapshots" works totally fine in local but not in CI environment. Do anyone facing the same issue ?
  • u

    user

    03/17/2022, 6:53 AM
    Hello, can I override url (domain part) for http requests for particular requests?
  • n

    narrow-engineer-11119

    03/17/2022, 7:13 AM
    Try something like this: cy.fixture('operations.json').then(({operationsXdr}) => { cy.visit(
    ${BASE_URL}${operationsXdr}
    ); })
  • n

    narrow-engineer-11119

    03/17/2022, 7:20 AM
    Do you have any error when you run it in CI?Have you committed generated snapshots when test is completed?
  • a

    acoustic-answer-12539

    03/17/2022, 7:28 AM
    No Error in CI as the test is treated as the very first execution and so the tests passes irrespective of the state of the snapshot. I have also committed the generated snapshots.
  • n

    narrow-engineer-11119

    03/17/2022, 7:29 AM
    Why do not you place you URL completely instead of relatively? I mean instead of: cy.request('users/1.json') place URL like this: cy.request('http://localhost:4000/users/1.json') You can change above domain to any other.
  • u

    user

    03/17/2022, 7:29 AM
    the requests called by app, not from test
  • n

    narrow-engineer-11119

    03/17/2022, 7:40 AM
    Based on which library you have used, you can apply a middleware for changing request parameters. like : https://axios-http.com/docs/interceptors
  • n

    narrow-engineer-11119

    03/17/2022, 7:51 AM
    I reviewd cypress-plugin-snapshots and I suppose it just logs result of comparision without throwing any error when comparision result has faild. I have used cypress-image-snapshot and it fails test when comparision is not matched.
  • u

    user

    03/17/2022, 8:24 AM
    Thank you, came to idea to make two interceptors. One in tests to add custom header with my custom domain, and another one in app where it captures the header and overrides request url Didn't try yet, thou
  • a

    acoustic-answer-12539

    03/17/2022, 9:29 AM
    The tests will fail if the screens does not match. please check the below screenshot for reference which reproduced in my local.
  • u

    user

    03/17/2022, 2:38 PM
    Greetings! I'm trying to get this popup to disappear when a form is submitted during a cypress test. I can manually go in to chrome://flags and disable "Autofill Address Save Prompts", but if I try to send it as a commandline arg, it doesnt seem to affect. Has anyone figured out how to disappear this?
  • u

    user

    03/17/2022, 2:39 PM
    I've tried: - launchOptions.args.push('--autofill-address-save-prompt') - launchOptions.args.push('--disable-features=autofillAddressSavePrompt')
  • p

    powerful-orange-86819

    03/18/2022, 10:40 AM
    does it appear every time, i have similar popups but they popup once in a while and its when i'm developing my tests, are you running your tests in CI, is it a problem there?
  • u

    user

    03/18/2022, 1:42 PM
    Yea it appears every time. I’m less concerned about running in CI.. mostly when testing locally
  • n

    narrow-engineer-11119

    03/19/2022, 8:25 PM
    I'm not sure I understand your issue or not but I supposed you mean those images that are created in local do not match in CI. If this is your issue problem I have to say there are a lot of factors that must be considered. 1-Check using same browser with same version(It's really important). 2-Check size of image have created in CI are same as local ones. 3-Before taking snapshot make sure scrollbar is fixed.
  • a

    acoustic-answer-12539

    03/21/2022, 12:30 PM
    We dont have access to vm where the tests are running in CI. in this cases checking the screenshot in CI will not be possible. I was assuming tests will read the baseline snapshots automatically and compare with actual. But i dont see this is happening.
  • n

    narrow-glass-55583

    03/22/2022, 2:15 PM
    hi, I'm trying to test hover color on a Button with cypress-real-events for some cases the test pass and for other the test failed (cypress doesn't recognize the hover color). any idea why it's happen?
  • a

    adorable-smartphone-87280

    03/23/2022, 3:28 AM
    If you insert a
    cy.wait()
    , can you visually see that the color change takes place?
  • n

    narrow-glass-55583

    03/23/2022, 2:26 PM
    i try that, for some test pass and color changes, and for other the color doesnt change so the test failed
  • p

    powerful-orange-86819

    03/23/2022, 3:01 PM
    does the color change happen in the css?
  • n

    narrow-glass-55583

    03/23/2022, 3:34 PM
    yes
  • n

    narrow-glass-55583

    03/23/2022, 3:35 PM
    but with realHover we can test css hover
  • t

    tall-airplane-97209

    03/28/2022, 10:46 AM
    Should there be any differences between running Cypress on Linux vs. Windows? I see the same tests error on Linux that never fail on Windows and I'm not sure why.
  • a

    astonishing-alarm-77244

    03/28/2022, 3:20 PM
    Today we are launching https://learn.cypress.io/ which is a free open source curriculum that teaches everything you need to know about how to test modern web applications with Cypress. You can learn more about it here: https://cypress.io/blog/2022/03/28/real-world-testing-with-cypress/
  • g

    gray-kilobyte-89541

    03/28/2022, 8:26 PM
    https://giphy.com/gifs/news-atl-down-MTclfCr4tVgis
  • p

    polite-alarm-78904

    03/29/2022, 7:58 AM
    Is there a way to move these variables to a separate file so I can reuse them across different spec files?
1...333435...127Latest