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

    bitter-apple-86316

    01/09/2023, 5:30 AM
    Can any one share certification name or link
  • l

    lively-match-61863

    01/09/2023, 5:45 AM
    Hi everyone, how can I sort this issue out? Thank you
  • b

    bitter-fountain-36713

    01/09/2023, 6:17 AM
    You don't have a
    "scripts"
    section.
  • b

    bitter-fountain-36713

    01/09/2023, 6:18 AM
    @calm-gigabyte-78371 I recommend checking out the docs on how to install cypress onto a local repo
  • b

    bitter-fountain-36713

    01/09/2023, 6:18 AM
    Hard to say without seeing the task code
  • l

    lively-match-61863

    01/09/2023, 9:36 AM
    I'm creating alias email
  • s

    straight-spoon-64191

    01/09/2023, 10:35 AM
    Hi guys, is it possible to get some code snippets connecting to a MS Sql database using Cypress 12.3.0? I've seen many articles using older Cypress versions which includes the deprecated folders such as cypress.json and index.js (cypress/support)
  • m

    millions-terabyte-91402

    01/09/2023, 11:53 AM
    I upgrade the cypress from 8 to cypress 12 I tried with docker images cypress/base:16.13.0. cypress/base:16.16.0, cypress/base:17.3.0 , cypress/base:16.17.0 , cypress/base:18.6.0 for Cypress Version cypress 10.1.0 and cypress 12.2.0 . But still getting an error : Your configFile threw an error from: cypress.config.js We stopped running your tests because your config file crashed.
  • m

    millions-terabyte-91402

    01/09/2023, 11:53 AM
    Kinidly please help me to fix this error
  • b

    bitter-fountain-36713

    01/09/2023, 2:39 PM
    Yes that's your test code. What are the actions being done for
    createAlias
    in your tasks?
  • r

    rich-table-95750

    01/09/2023, 4:05 PM
    Does the cypress/grep module work with cucumber?
  • b

    bitter-apple-86316

    01/09/2023, 4:28 PM
    Hi team
  • b

    bitter-apple-86316

    01/09/2023, 4:28 PM
    Is there any certification regarding cypress
  • c

    cool-truck-21040

    01/09/2023, 4:40 PM
    I'm having this same issue, and it's intermittent. The error messaging isn't helpful, and the docs give an incorrect option for debugging config issues. Can someone please give some hints as to how to get useful debug output?
  • a

    adamant-account-12789

    01/09/2023, 4:47 PM
    Hi everyone - I'm wondering if anyone could suggest some reasons why Cypress may crash running a spec file without showing an error page or message. Here is a sanitized version of my test. I'm just trying to log into my site. We use OAuth2, and the destination page and the log in page are at the same domain (in the screenshot, company.org). As soon as my tests clicks the log in button, the test pane abruptly quits and takes me back to the Cypress app listing the specs. I don't see anything in the default output Cypress prints to the console suggesting an error, and there's nothing in the browser console either (other than a 404 loading src maps with popper.js or something like that, which I think is a red herring). I did try running with DEBUG, but didn't see anything obvious in there and am unsure how to target my debug logs, given that I have no information displaying about what is wrong. My first thought was that Cypress was dying because of some cross-origin issues. Does that sound likely? What else could cause Cypress to crash like that? Cypress version: 12.3
  • a

    agreeable-musician-97823

    01/09/2023, 4:48 PM
    so far I have not seen this issue searching the history: I'm using cypress @9.2 and when I open tests, no matter which browser I try to use, I only see the text of the tests print out - no longer see the browser. Tried re-installing cypress in the project but it opens up to the same behavior: https://www.loom.com/share/22b77f91e25a48f2a3cbe04df7333ad9
  • f

    fierce-beach-68131

    01/09/2023, 5:02 PM
    Hey, my step definitions are not being picked. My current project tree for cypress looks something like this: ├── cypress │ ├── OtherProjectFolder │ │ ├── frontend │ │ │ └── TestUI.feature │ ├── pages_objects │ │ ├── mainPage.js │ └── step_definitions │ │ └── Testui.js │ ├── e2e │ │ ├── backend │ │ │ └── TestBackend.feature │ ├── pages_objects │ │ ├── backendPage.js │ └── step_definitions │ │ └── TestBackend.js Essentially I want to define all my step definitions in a different director, and all my page objects in a different directory, because I have many project to automate. Here is my current cucumber preprocessor look like in package.json:
    Copy code
    "cypress-cucumber-preprocessor": {
        "nonGlobalStepDefinitions": false,
        "step_definitions": "cypress/e2e"
      }
    If I change the path of the stepsDefinition to "cypress/OtherProjectFolder", this time it does not picked the steps in e2e. If I just type "cypress" I get this error. Please check attached screenshot. I'm wondering if there is a way to make stepDefinitions global.
  • r

    refined-spring-39164

    01/09/2023, 5:17 PM
    I'm running into an issue where service workers belonging to Chrome Extensions v3 are being terminated after the first test file has run. Has anyone else run into this issue before? I couldn't find anything related to this via Discord's search. Here's a reproduction: https://github.com/umanghome/cypress-extension-sw-repro
  • e

    elegant-nest-19148

    01/09/2023, 7:05 PM
    Csypress v12.3.0 on bundled node 16.16.0;
    cypress.config.ts
    in
    /home/foobar
    , React component test files are co-located inside
    /home/foobar/src/**/*.spec.{js,jsx,ts,tsx}
    . For instance, there's a component spec in
    /home/foobar/src/smarta/SmartA.spec.tsx
    . Now, running the command
    $(npm bin)/cypress run -C cypress.config.ts --spec "src/**/*.spec.tsx" --component
    inside
    /home/foobar
    simply gives me:
    Copy code
    Can't run because no spec files were found.
    
    We searched for specs matching this glob pattern:
    
      > /home/foobar/src/**/*.spec.tsx
    What am I doing wrong?
  • b

    best-flower-17510

    01/09/2023, 7:35 PM
    Hey @adamant-account-12789 have you reported an issue for this that I could share with the Cross-Origin team?
  • e

    enough-truck-68085

    01/09/2023, 7:37 PM
    What's your configuration
    specPattern
    defined to for your components? By default it's
    **/*.cy.{js,jsx,ts,tsx}
    https://docs.cypress.io/guides/references/configuration#component
  • f

    fierce-businessperson-77338

    01/10/2023, 12:11 AM
    Hello, is this place active? I doesnt seem like the devs are very active on the issues page, I was wondering if I could find help here. Also it wont even let me message them for support via their website. Why all the obstruction to getting help with this platform??
  • g

    gray-kilobyte-89541

    01/10/2023, 1:16 AM
    it depends on your issue. If the issue is well-described and has a reproducible example, then someone is likely to help.
  • r

    refined-spring-39164

    01/10/2023, 7:38 AM
    Created a bug report with a potential fix: https://github.com/cypress-io/cypress/issues/25408
  • p

    powerful-orange-86819

    01/10/2023, 8:07 AM
    Depends on the problem you have, we wont solve algorithm issues or problems with complex systems, but if you post some test code and ask a direct question about the issue, you might get an asnwer
  • i

    icy-caravan-50849

    01/10/2023, 9:30 AM
    Hi everyone:) I stucked in an unresolved issue of mine which is about switching the domain from X to Y (I cant say exactly urls -company data-). When I go to X domain with cy.visit and do some tests and then, when I want to go to Y url, it goes. But right after login in Y url, a blank page comes and Cypress doesnt continue other steps on Y url. When I open Y url and do tests on a seperate Cypress project, it works properly(I didnt put X url steps on this project). My test steps works without any blank page after login. So it looks like there is a problem after changing my domain. I tried to use cy.origin to solve this issue but it didnt work unfortunately. I tried to put some waits after login to Y url and it didn't work as well. Do you recommend some other way/method to solve this issue? (My Cypress version:12.0.2) Thank you ✌️
  • b

    brash-scientist-28014

    01/10/2023, 12:16 PM
    Is there anyway to count elements and use that return value as a variable? what i have tried until now results in an NaN or undefined variable.
  • f

    flaky-fountain-4670

    01/10/2023, 1:22 PM
    what do you want to assert about the child element count? have you tried something like
    cy.get('div').should(($div) => { expect($div[0].childElementCount).to.be.lessThan(2) }
    https://docs.cypress.io/guides/references/assertions#Should-callback
  • b

    brash-scientist-28014

    01/10/2023, 1:25 PM
    well i am randomizing a test and sometimes there are 3 radiobuttons and sometimes 4. So i want to count the rumber of radiobuttons and use that and the input
  • f

    flaky-fountain-4670

    01/10/2023, 1:35 PM
    maybe https://docs.cypress.io/guides/core-concepts/conditional-testing#Embed-data-in-the-DOM helps
1...245246247...252Latest