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

    bland-lamp-54509

    11/22/2022, 3:32 PM
    [answer found on stackoverflow even though it's weird https://stackoverflow.com/questions/72572660/invalid-configfile-cypress-10-0-cannot-find-module ] hi guys, i was doing fine on cypress until i checked out on master to pull new changes (no cypress on master), then when i come back on my branch to launch cypress , i can't use my script anymore and have to do npx cypress open again, then i get this error which is weird because it was working just fine.. somebody knows how to do ? Thanks in advance
  • a

    abundant-city-59906

    11/22/2022, 4:20 PM
    Hi everyone, while running e2e tests, cypress redirects to auth0 login screen randomly. Does anyone know how to overcome this? Thanks Sudha
  • m

    mysterious-belgium-25713

    11/22/2022, 5:50 PM
    How can it be randomly. Is your app expecting that you be logged in for certain pages? What are you doing different in your automation then in your manual steps?
  • s

    salmon-river-93816

    11/22/2022, 8:51 PM
    Hi, do you by any chance know if there is an equivalent to chromeWebSecurity: false for WebKit/Playwright to be able to access a cross-origin iframe (Stripe credit card)?
  • b

    brave-river-4142

    11/22/2022, 9:31 PM
    Hello guys, how are you? I'm still learning cypress, the application is all in angular and bootstrap so it doesn't have IDs, the test is not in local application. I need to condition the click on a button inside a modal, but this modal will not always appear, but anyway, I would like that even if it does not find the element (and the modal) to click, the test does not fail. Here is the code and the page with the modal:
  • g

    gray-kilobyte-89541

    11/22/2022, 10:03 PM
    https://github.com/bahmutov/cypress-if
  • f

    freezing-wall-7568

    11/22/2022, 10:35 PM
    once I login via cy.session and if I want to do cy.request within the same domain, do I have to pass a token? or does the cy.session handles that for me
  • s

    salmon-river-93816

    11/22/2022, 11:45 PM
    To clarify my message: cross-origin iframe access works for the following browsers: Chrome, Edge and Electron (only if the chromeWebSecurity option is set to false) and does not work for the following browsers: Firefox and WebKit.
  • a

    adorable-smartphone-87280

    11/23/2022, 3:57 AM
    I'm getting the warning
    Copy code
    ERROR
          TS18003: No inputs were found in config file 'tsconfig.json'.
    after attempting to use Fixtures in a test package. Has anyone run into this issue and know what I'm doing wrong?
  • b

    brash-tiger-52405

    11/23/2022, 9:37 AM
    Hello, how can i change a value or parameter of a url? For example: https://www.testurl.de/php/clientid=123/test2 should be: https://www.testurl.de/php/clientid=56789/test2
  • f

    fresh-doctor-14925

    11/23/2022, 9:43 AM
    if you're visiting that url, you could just pass it in as a parameter
    Copy code
    const clientId = 56789
    cy.visit(`https://www.testurl.de/php/clientid=${clientId}/test2`)
  • f

    fierce-receptionist-39814

    11/23/2022, 11:00 AM
    Hi guys, I've a problem with path alias in cypress. In my create-react-app (I'm using javascript, not ts) I've installed craco and I've set a path alias resolve, e.g. instead of
    import {MyComponent} from '../../components/MyComponent'
    I just do
    import {MyComponent} from '@components/MyComponent'
    . Now, when I try to perform component tests with cypress, it returns the error
    Cannot find module '@components/MyComponent'
    . Someone can help me, pls? 🙏
  • g

    gorgeous-forest-81700

    11/23/2022, 11:51 AM
    Hi guys, I have an issue with a test which have a lot (over 900) of requests in it and it drops on "We detected that the Chromium Renderer process just crashed." Using Cy 10.0.7 with Ts browser Electron I think it's caused by default browser memory threshold as it is only 2GB, is there a way how to increase that?
  • b

    brash-tiger-52405

    11/23/2022, 11:53 AM
    The url opens after a click on a button and I want to change this opened url in one place
  • f

    fresh-doctor-14925

    11/23/2022, 12:05 PM
    Is it just a regular anchor tag? If you're changing the value of the url anyway, you're not really achieving much by having that click. I'd suggest having two specs: 1) Verify the link is correct by getting the button element and asserting on the href 2) Have a spec that goes directly to the url you'd like
  • s

    strong-arm-6666

    11/23/2022, 1:13 PM
    Hello, I am trying to build cypress v11.0.0 by checkout the tag locally
    yarn
    gets stuck in post installation step. Can someone help here?
    Copy code
    [-/37] ⠄ waiting...
    [-/37] ⠠ waiting...
    [-/37] ⠈ waiting...
    [-/37] ⡀ waiting...
    [-/37] ⡀ waiting...
    [6/37] ⡀ postinstall-postinstall
    [-/37] ⡀ waiting...
    [-/37] ⢀ waiting...
  • e

    echoing-controller-6107

    11/23/2022, 1:35 PM
    hi im new in cyprss I download cypress 11 and im try to connect to sql server and i cant Someone can help me pls
  • s

    salmon-river-93816

    11/23/2022, 1:42 PM
    When I try with WebKit, I get the following error:
    SecurityError: Blocked a frame with origin “https://www.test.com” from accessing a cross-origin frame. Protocols, domains, and ports must match.
    And when I try with Firefox, I get the following error:
    Permission denied to access property "document" on cross-origin object
  • v

    victorious-advantage-96717

    11/23/2022, 2:39 PM
    Hi, any way I can pass index to callback function body when using cypress-each plugin? "` it.each([ { name: 'Joe', age: 30 }, { name: 'Mary', age: 20 }, ])('has correct types', (user) => { // how to get index here expect(user).to.have.keys('name', 'age') expect(user.name).to.be.a('string') expect(user.age).to.be.a('number') }) `"
  • g

    gray-kilobyte-89541

    11/23/2022, 2:40 PM
    Right now I don't think I have it, but why do you need the index?
  • v

    victorious-advantage-96717

    11/23/2022, 2:41 PM
    I'm using this index later in some custom command as parameter
  • e

    echoing-controller-6107

    11/23/2022, 3:32 PM
    hi im new in cyprss I download cypress 11 and im try to connect to sql server and i cant Someone can help me pls Or where i can find answers
  • f

    fresh-doctor-14925

    11/23/2022, 3:36 PM
    !duplicate
  • n

    nutritious-analyst-96582

    11/23/2022, 3:36 PM
    Uh oh, It looks like you have posted the same question in multiple channels. Help us prevent spam by removing any duplicates of your questions, Thanks! 😀
  • e

    echoing-controller-6107

    11/23/2022, 3:37 PM
    Thanks i will remove the first
  • f

    fresh-doctor-14925

    11/23/2022, 3:38 PM
    Thanks. You'll be more likely to get an answer if you give more detail to your question. for example: What kind of sql server are you trying to connect to? What have you attempted? Are you able to share a repo of your cypress code?
  • e

    echoing-controller-6107

    11/23/2022, 3:45 PM
    ok thanks i prefer if someone have instructions im trying connecting to mssql on cypress 11
  • f

    fresh-doctor-14925

    11/23/2022, 3:52 PM
    Did you take a look at the cypress documentation? They've got some examples that show connecting to mysql using cy.task https://docs.cypress.io/api/commands/task#Allows-a-single-argument-only
  • f

    fresh-doctor-14925

    11/23/2022, 3:55 PM
    Otherwise here's a blog with another example of connecting to mysql https://glebbahmutov.com/blog/verify-phone-part-two/#mysql-database-connection In fact, that whole site (https://cypress.tips/search) has examples for almost any situation you will encounter in cypress
  • e

    echoing-controller-6107

    11/23/2022, 4:00 PM
    thanks
1...211212213...252Latest