https://cypress.io logo
Join DiscordCommunities
Powered by
# help
  • m

    millions-pizza-46232

    12/21/2022, 4:31 PM
    hello, I am trying to use fixtures to read data in a json file and I am wondering if there are any advantages to using fixtures over just simply importing the json
  • m

    millions-pizza-46232

    12/21/2022, 4:33 PM
    I am wary to use the fixture feature as the documentation is misleading
  • g

    gray-kilobyte-89541

    12/21/2022, 6:28 PM
    you can do the import, I like the import https://glebbahmutov.com/blog/import-cypress-fixtures/
  • b

    best-flower-17510

    12/21/2022, 7:14 PM
    Hey @millions-pizza-46232 , how could we improve that documentation for you? What parts did you find misleading?
  • b

    best-flower-17510

    12/21/2022, 7:23 PM
    Hi folks
  • m

    millions-pizza-46232

    12/21/2022, 7:54 PM
    While it’s explained how to use as() and this with fixtures, the sample code is not copypasteable with the expectation that it will work
  • a

    astonishing-xylophone-53357

    12/21/2022, 7:54 PM
    Hello, I need help, I'm trying to migrate to Cypress 10, but I'm having difficulties, I work with different environments, so I was using this strategy (https://docs.cypress.io/api/plugins/configuration-api#Switch-between-multiple-configuration-files) to deal with it, however this no longer works for this new version, could someone help me? in addition i also use two plugins (Cucumber(https://github.com/badeball/cypress-cucumber-preprocessor) and Grep (https://github.com/cypress-io/cypress/tree/develop/npm/grep ) ) Tks
  • e

    elegant-river-87347

    12/21/2022, 10:45 PM
    Hi Everyone , i need hepl please 🙂 anyone ?
  • g

    gray-kilobyte-89541

    12/21/2022, 11:07 PM
    you are trying to check if an object includes a property?
  • e

    elegant-river-87347

    12/21/2022, 11:13 PM
    yup
  • i

    incalculable-telephone-16405

    12/22/2022, 5:04 AM
    hi how to handle recaptcha & image validation through cypress ?
  • d

    dazzling-pillow-26039

    12/22/2022, 6:20 AM
    The captchas meant not to automate the apps. It would be better to have a word with developers to disable it for testing environment.
  • d

    damp-sugar-90044

    12/22/2022, 6:51 AM
    When I write npx cypress open in the terminal it starts and crashes immediately
  • s

    straight-rose-89671

    12/22/2022, 8:13 AM
    I can get behind the documentation part. There isn't really a best practice example. Maybe add that there are a few way to include fixtures with there examples ? Right now we settled using this
    Copy code
    describe('Test example', () => {
        beforeEach(() => {
            cy.login()
            cy.fixture('client').as('getClient')
        })
       it('Your test', function () {
         //Here you have access to this.getClient 
         //You can't use cy.get('@getClient') -> only works for intercept alias
         //Most important your test should be it('test',function(){ NOT it('test', () => {
       })
    })
  • r

    rough-oxygen-26641

    12/22/2022, 8:28 AM
    Hello, could anyone help with targeting svgs? Has anyone had this issue? Thanks https://discord.com/channels/755913899261296641/763105090679865354/1052213507778691092
  • b

    bumpy-insurance-8581

    12/22/2022, 8:55 AM
    Hello guys, I have a big problem, the auto-scroll feature of cypress always uncheck automatically
  • b

    bumpy-insurance-8581

    12/22/2022, 8:56 AM
    Do you know why it do that ?
  • p

    proud-fall-12182

    12/22/2022, 10:49 AM
    Yo anyone faced similar issues with compiling cypress?
  • a

    astonishing-xylophone-53357

    12/22/2022, 12:28 PM
    Hi, please can anyone help me with this item? 🥹
  • g

    gray-kilobyte-89541

    12/22/2022, 12:31 PM
    I would start by looking at assertion examples, cause you are passing an array, so probably need to use deep.include https://glebbahmutov.com/cypress-examples/commands/assertions.html
  • g

    gray-kilobyte-89541

    12/22/2022, 12:32 PM
    the comment
    //You can't use cy.get('@getClient') -> only works for intercept alias
    is incorrect. You can use
    cy.get(any alias name)
    not just network intercept aliases
  • m

    mysterious-house-15448

    12/22/2022, 12:32 PM
    After getting html reports on Jenkins CI, it shows blank page when opened but json report contains the contents. And same html file will load with all the contents including css and images properly when opened locally. How to open the html report properly in Jenkins server?
  • s

    straight-rose-89671

    12/22/2022, 1:12 PM
    Thanks.. Wondering where i got that error from then
  • f

    fresh-balloon-87333

    12/22/2022, 1:19 PM
    Hi Everyone👋 Can someone please help me on this? I have a cypress crash issue in windows 11. It crashing with timeout error immediately after launching. No luck even after trying in a new project or fresh install. I am blocked in my work because of this issue. Any guidance is much appreciated. Attached video.
  • s

    straight-rose-89671

    12/22/2022, 2:29 PM
    I'm integrating Cypress into github actions. Following the tutorials and documentation provided they do the following:
    Copy code
    - name: Cypress tests
            uses: cypress-io/github-action@v5
            with:
              build: npm run build
              start: npm start
    Since we don't have a npm start script the action fails. But i see it's needed to start the project web server ? Is that really needed or are there other ways to run the tests
  • b

    bumpy-insurance-8581

    12/22/2022, 2:33 PM
    Nobody have the same issues ?
  • g

    gray-kilobyte-89541

    12/22/2022, 2:37 PM
    if you don't start a local server, then do not add
    start
    parameter. See many examples at https://github.com/cypress-io/github-action
  • s

    straight-rose-89671

    12/22/2022, 2:40 PM
    Copy code
    Cypress could not verify that this server is running:
    > https://undefined.undefined
    We are verifying this server because it has been configured as your baseUrl.
    My cypress config:
    Copy code
    require('dotenv').config()
    
    module.exports = defineConfig({     
        e2e: {
            setupNodeEvents(on, config) {
            },
            baseUrl: 'https://'+ process.env.CLIENT_SUBDOMAIN + '.' + process.env.APP_TLD,
        },
    })
  • p

    powerful-agency-55160

    12/22/2022, 2:40 PM
    hi all, i need your help to confirm my config, is the
    SetupNode Events
    config below correct? for
    task
    and
    before:browser:launch
  • f

    fast-napkin-36711

    12/22/2022, 2:56 PM
    I am having trouble running the build script when following the parallelization tutorial. I am copying the code verbatim from the tutorial. The repo clones and actions run fine, but I keep getting an error message that the “build” script is missing. I’ve tried both yarn and npm.
1...236237238...252Latest