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

    fancy-mechanic-10638

    09/25/2022, 9:49 PM
    Any documentation available on doing angular component testing for something that's a ControlValueAccessor? On the
    cy.mount
    command I can wrap my control in a form, but I'm not sure how to provide the formGroup that it would need.
  • m

    microscopic-ice-2827

    09/25/2022, 11:25 PM
    Hello dear developers where I can pass the Auth0 authorization for Cypress tests with Vue 3 composition api, could you help me by sending me an example with real code with these versions. i see this example https://docs.cypress.io/guides/end-to-end-testing/auth0-authentication#Auth0-Application-Setup but is write in React and use auht0-spa-js library no have same methos that @auth0/auth0-vue PS: I see that there are several developers stuck on this part. I use the library: https://www.npmjs.com/package/@auth0/auth0-vue and cypress: 10.8.0
  • h

    high-helicopter-11699

    09/26/2022, 4:35 AM
    hi Team, we are trying to run cypress test, but tests are failing because of no support for proxy configuration in Cypress. How can we configure proxies for different urls ? I have checked the basic documentation for proxy in which we can set one proxy for mac/Linux. Do we have any option to configure proxy for multiple urls ? Please help !
  • u

    user

    09/26/2022, 5:04 AM
    Guys , i need urgent help , when i am running my cypress tests , in place of live execution of test steps it is showing all the spec.ts files to me.How can i solve this issue??
  • f

    fancy-mechanic-10638

    09/26/2022, 5:19 AM
    Is there any reason I can't run two find commands, one after another? If I do this:
    Copy code
    typescript
    cell.find('igx-hint').should('not.exist')
    cell.find('hr').should('not.exist')
    then the second one fails with `cy.find() failed because it requires a DOM element. If I comment either one out, then it works fine.
  • m

    mysterious-belgium-25713

    09/26/2022, 7:51 AM
    Are you using different URLS in the same test that also need different proxies? Or are your URLS based on the environment you are testing on and need a different proxy for that?
  • m

    mysterious-belgium-25713

    09/26/2022, 7:59 AM
    Can you please provide a screenshot or screencapture so that we can better view your situation.
  • f

    fresh-doctor-14925

    09/26/2022, 9:21 AM
    Are you doing
    cypress run
    instead of
    cypress open
    ?
  • f

    fresh-doctor-14925

    09/26/2022, 9:21 AM
    What happens if instead of defining
    cell
    as a variable, you get it with
    cy.get()
    each time?
  • s

    stale-optician-85950

    09/26/2022, 9:35 AM
    @fancy-mechanic-10638 And to build on @fresh-doctor-14925 suggestion, you can
    cy.wrap
    the yielded item i.e
    Copy code
    cy.get('your selector').then($el => {
       cy.wrap($el).find('igx-hint').should('not.exist');
       cy.wrap($el).find('hr').should('not.exist');
  • h

    handsome-lion-1748

    09/26/2022, 11:04 AM
    Hi, I'm having a hard time using process.env variables in cypress config file I tried solution here: https://stackoverflow.com/questions/57818181/how-to-use-process-env-variables-in-browser-running-by-cypress but last error I got is
    ReferenceError: Cypress is not defined
    P.S: I'm using @freezing-piano-2792's cucumber preprocessor
  • h

    handsome-lion-1748

    09/26/2022, 11:25 AM
    I just removed the use of process.env in the config file and will tell the devops to export env vars that start with CYPRESS since they are automatically read and used!
  • h

    handsome-lion-1748

    09/26/2022, 11:25 AM
    as mentioned here: https://docs.cypress.io/guides/guides/environment-variables#Option-3-CYPRESS_
  • q

    quaint-car-48253

    09/26/2022, 1:53 PM
    Hello, bit of a weird one here. I'm fairly new to using Cypress and have ran into a problem where it seems to have installed using US language and date format but i need it to be in UK. When i open my app i'm automating on Chrome it's in UK language but when i run my test using the Cypress test runner the date/times are in US. Does anyone know how to fix this?
  • q

    quaint-car-48253

    09/26/2022, 1:57 PM
    Error i'm getting but i can't seem to find a way to edit the webpages locale settings through cypress
  • p

    prehistoric-summer-9563

    09/26/2022, 2:21 PM
    Hi! I'm trying out the new component tests and I'm noticing that on the Next configuration, any
    data-*
    attribute that is NOT
    data-cy
    gets removed somehow when the tests run. I've been looking in the docs for hints at this behavior but have not found any - just wanted to write in before filing a bug ticket to double check this is not intended
  • m

    mysterious-belgium-25713

    09/26/2022, 2:23 PM
    I dont know if this works, because this is based on an older cypress where you could change the browser lang. but in your cypress.config.js you can add the following before browser launch.
    Copy code
    js
    module.exports = defineConfig({
      e2e: {
        setupNodeEvents(on, config) {
          on("before:browser:launch", (browser = {}, launchOptions)=>{
            if (browser.name === 'chrome') {
              launchOptions.args.push('--lang=uk');
              return launchOptions;
            }
          })
        },
      },
    })
  • q

    quick-coat-5873

    09/26/2022, 3:07 PM
    @famous-lawyer-53235 Did you find a solution for this?
  • q

    quick-coat-5873

    09/26/2022, 3:08 PM
    Help me please
  • f

    fancy-mechanic-10638

    09/26/2022, 3:15 PM
    @stale-optician-85950 @fresh-doctor-14925 I'm being passed the cell as a parameter to the callback from a custom Command.
  • q

    quaint-car-48253

    09/26/2022, 3:24 PM
    Hero! This works, thanks very much
  • h

    helpful-queen-71488

    09/26/2022, 3:46 PM
    A user uses geoloc Hello everyone, I have a problem that has been going on for a while and I can't seem to solve it. I am on a homePage, and when I click on the connection button, I am redirected to the same page but with another Url (the url is dynamic, it is opened with an ID). During this change, there are several API calls that are made. So the problem occurs when I want to enter my email address, I get this error: "The following error is from your application code, not Cypress. This was caused by an unhandled promise denial. > (intermediate value) is not a function When Cypress detects undetected errors from your application, it automatically fails the current test. This behavior is configurable and you can choose to disable it by listening for the uncaught:exception" I tried several techniques (url:changed, force:true, putting the url in a variable and then recalling it). But I can not. do you think you can help me? Thank you system by locate me button
  • f

    fresh-doctor-14925

    09/26/2022, 4:19 PM
    I'd need to see the custom command in order to give a useful suggestion
  • f

    fancy-mechanic-10638

    09/26/2022, 4:34 PM
    I d need to see the custom command in
  • m

    microscopic-toddler-9116

    09/26/2022, 4:52 PM
    spawn UNKNOWN Error: spawn UNKNOWN at ChildProcess.spawn (node:internal/child_process:413:11) at Object.spawn (node:child_process:709:9) at launch (C:\Users\yashpalsingh01\AppData\Local\Cypress\Cache\10.8.0\Cypress\resources\app\packages\launcher\lib\browsers.js:162:21) at Object.open (C:\Users\yashpalsingh01\AppData\Local\Cypress\Cache\10.8.0\Cypress\resources\app\packages\server\lib\browsers\chrome.js:503:61) at Object.open (C:\Users\yashpalsingh01\AppData\Local\Cypress\Cache\10.8.0\Cypress\resources\app\packages\server\lib\browsers\index.js:109:27) at OpenProject.relaunchBrowser (C:\Users\yashpalsingh01\AppData\Local\Cypress\Cache\10.8.0\Cypress\resources\app\packages\server\lib\open_project.js:150:20) Hi i am getting above error when i try to launch chrome browser at VScode by typing command
  • m

    microscopic-toddler-9116

    09/26/2022, 4:53 PM
    what could be the reason ? My cypress is only able to launch edge but not chrome
  • m

    microscopic-toddler-9116

    09/26/2022, 4:55 PM
    and when i try to launch it with cypress UI it just stuck here
  • m

    microscopic-toddler-9116

    09/26/2022, 4:55 PM
    In case of edge it opens quickly
  • w

    white-helicopter-74289

    09/26/2022, 5:45 PM
    Hello everybody, I'm curious if anyone knows how to set a user-agent header in the cypress requests to the api_url? I know how to set the user agent in the tests, but these network requests to the api_url are being blocked by our firewall because there is no user-agent header.
  • f

    fancy-mechanic-10638

    09/26/2022, 5:51 PM
    If I try to do something in my test file like
    someObj ?? ''
    I get webpack compilation errors. What do I need to do to support that?
1...153154155...252Latest