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

    creamy-toddler-52067

    10/13/2022, 4:11 AM
    We are currently executing cypress automation on S3 hosted spa application. The test cases are running in local where as in git lab runner i am getting below error Cypress could not verify that this server is running: applicationurl we are verifying this server beacuase it has been configured as your 'baseurl' Note: corporate proxy settings are in place. Please suggest is there any additional things to be taken care on cloud front custom domains?
  • l

    limited-ice-79548

    10/13/2022, 11:29 AM
    I need some low level help, I am trying to debug some weird behavior in Cypress. There are a set of test that import the Order page model class and that class imports the elements (selectors) class, everything compiles, tests tun without a problem. But when you change the elements class Cypress doesn't reload (doesn't even watch the file). I tried changing the contents of the file, even linked to a different file from orders but no changes are detected. Also if I change something in the PO class it will reload. I tried debugging Cypress by logging the
    preprocessor
    and when the file is change no events are sent, opposed to PO or any other file. Does one one have an idea where to start debugging? My idea was to see the dependency graph or see what Webpack is doing in the background.
  • b

    bright-twilight-10346

    10/13/2022, 1:30 PM
    Can Cypress be used for Salesforce testing ? The Xpaths constantly change with every Salesforce release which impacts the automation done using Selenium , Does Cypress has a solution for this ?
  • f

    fresh-doctor-14925

    10/13/2022, 1:58 PM
    Please don't ask the same question in multiple channels. Marking this one as solved as there's already a discussion in the other thread
  • s

    shy-tiger-47604

    10/13/2022, 3:28 PM
    My team is facing the same issue as of this morning. Did you resolve this?
    • 1
    • 1
  • m

    magnificent-finland-58048

    10/13/2022, 4:25 PM
    your CI machine most likely doesn't have access to the baseUrl that your local machine has access to, because the CI runner is not a part of the corporate domain
  • m

    magnificent-finland-58048

    10/13/2022, 4:29 PM
    because _.times is lodash https://lodash.com/docs/4.17.15#times , Cypress doesn't re-document the bundled libs it comes with here's a use case for verifying atomic tests
  • m

    magnificent-finland-58048

    10/13/2022, 4:33 PM
    Copy code
    js
    describe('hello', () => {
      it('should', () => {
        cy.log('yo')
      })
    })
    
    
    describe('hello', () => {
      Cypress._.times(5, () =>
        it('should', () => {
          cy.log('yo')
        }),
      )
    })
  • t

    thousands-gpu-36872

    10/13/2022, 6:22 PM
    I solved the problem, just by changing the option encrypt in my database to false, now the tedious task is working
  • t

    thousands-gpu-36872

    10/13/2022, 6:40 PM
    How can i access my environments in cypress.config like this image, Do I can access then like an object in json ?
  • g

    gray-kilobyte-89541

    10/13/2022, 6:57 PM
    starting point https://glebbahmutov.com/blog/cypress-v10-env/
  • b

    big-monitor-24414

    10/14/2022, 7:08 AM
    I'm having trouble with Github Actions and this sometimes fails with following error:
    Copy code
    Run cypress-io/github-action@v4
    /home/runner/setup-pnpm/node_modules/.bin/pnpm install --frozen-lockfile
    Lockfile is up to date, resolution step is skipped
    Already up to date
    
    Done in 1.6s
    /opt/hostedtoolcache/node/16.17.1/x64/bin/npx cypress cache list
    No cached binary versions were found.
    /opt/hostedtoolcache/node/16.17.1/x64/bin/npx cypress verify
    The cypress npm package is installed, but the Cypress binary is missing.
    
    We expected the binary to be installed here: /home/runner/.cache/Cypress/10.9.0/Cypress/Cypress
  • a

    adorable-stone-42197

    10/14/2022, 7:20 AM
    I have an issue where the input button search is sometimes disabled sometimes not, it depends on if the table is loaded so I can search. I used two solutions cy.get('#name').should('be.visible').and('be.disabled'); cy.get('#name') .should('be.visible') .and('be.enabled') .click() .clear()
  • a

    adorable-stone-42197

    10/14/2022, 7:20 AM
    and sometimes button is not disabled and falling, can someone help about it?
  • a

    adorable-stone-42197

    10/14/2022, 7:21 AM
    I can’t do assertion for table is showed as well, because is complicated. So i need another solution
  • b

    big-monitor-24414

    10/14/2022, 7:40 AM
    I've used this as a starting point for my github action: https://pnpm.io/continuous-integration#github-actions
  • b

    big-monitor-24414

    10/14/2022, 8:45 AM
    The problem is with cache. I just don't know how to debug this. It fails most of the time but not always.
  • v

    victorious-father-41976

    10/14/2022, 9:04 AM
    @big-monitor-24414 could you perhaps try with the https://github.com/cypress-io/github-action, it should correctly install and cache cypress binaries
  • v

    victorious-father-41976

    10/14/2022, 9:12 AM
    I have an issue where the input button
  • m

    mysterious-belgium-25713

    10/14/2022, 9:23 AM
    I would suggest to use a container image where cypress browser is already installed in. https://github.com/cypress-io/github-action#docker-image
  • b

    big-monitor-24414

    10/14/2022, 10:29 AM
    I am using cypress-io/github-action. Line 41 in the example file.
  • v

    victorious-father-41976

    10/14/2022, 10:46 AM
    I am using cypress iogithub action Line
  • k

    kind-artist-92362

    10/14/2022, 10:57 AM
    in which folder should i add it ? cypress.config.js
  • m

    mysterious-belgium-25713

    10/14/2022, 10:57 AM
    Yeah but it's better to use container
  • i

    important-lawyer-45208

    10/14/2022, 11:13 AM
    Hello, I am trying to test using cypress the options page of a chrome extension. At first I was unable to load the page as the protocol is not http or https but while browsing around found this solution: https://github.com/cypress-io/cypress/issues/1965#issuecomment-1139762598 With this I am able to load the options page, but it crashes with
    Cypress detected a cross origin error happened on page load:
    I have
    chromeWebSecurity: false,
    in config and also added the
    --disable-web-security
    param but it seems that this is not enough are there any workarounds for this ?
  • s

    stale-optician-85950

    10/14/2022, 11:30 AM
    On the root. Where your
    cypress.json
    is. But you shouldn’t have
    cypress.json
    in V10.xx Installing default Cypress places these files in their correct locations. Or if you are migrating, the migration script should have done it for you.
  • f

    fierce-beach-68131

    10/14/2022, 12:12 PM
    Test video play using Cypress
    • 1
    • 1
  • k

    kind-artist-92362

    10/14/2022, 12:16 PM
    tnx!
  • a

    ancient-park-71356

    10/14/2022, 1:47 PM
    Hello, I have a weird problem, "chromewebsecurity: false", seems not working for me, I need to test an app which is runned locally (localhost), error don't exist if I'm running chrome browser manually with flag "--disable-web-security", I believe that "chromewebsecurity: false" should work the same as "--disable-web-security" but it's not. Also I didn't get any information when I'm running cypress in different browser that "I have configured chromewebsecurity and it will not work for that browser" I'm using Cypress 10.9.0 This is how it looks in config: const { defineConfig } = require('cypress') module.exports = defineConfig({ viewportWidth: 1920, viewportHeight: 1080, waitForAnimations: true, chromeWebSecurity: false, e2e: { setupNodeEvents(on, config) { }, baseUrl: 'https://bigeye.dev.dziewiecki.net', }, })
  • b

    better-ocean-83368

    10/14/2022, 1:50 PM
    Good Morning! Does anyone have any experience with Cypress and using PKI-based authentication? Reviewing current documentation looks like it's supported but might be limited to a single test cert? We have a system with RBAC so wondering if anyone has any experience configuring Cypress to run tests with specific test certs.
1...174175176...252Latest