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

    alert-tomato-11305

    11/07/2022, 8:40 AM
    seems win.__coverage__ object is not getting populated
  • n

    narrow-cpu-2218

    11/07/2022, 11:13 AM
    Very noob question, How can I preserve log in cookies so that I don’t need to log in in each new test?
  • s

    stale-optician-85950

    11/07/2022, 11:19 AM
    By using
    cy.session()
    https://docs.cypress.io/api/commands/session
  • n

    narrow-cpu-2218

    11/07/2022, 11:19 AM
    Ty i appreciate it
  • s

    stale-optician-85950

    11/07/2022, 11:23 AM
    Put the
    /api
    folder inside of
    /integration
    so that Cypress will see it i.e.
    /cypress/integration/api
    I'm assuming from your terminology that you are using Cypress v9.
  • w

    white-army-50288

    11/07/2022, 11:44 AM
    Thanks for answering, I updated Cypress, now I have the latest version and I was able to add specPattern for integration and API in cypress.config.json.
  • b

    best-student-90112

    11/07/2022, 12:04 PM
    Hi , I need to test one user case . In my application there two cases to login 1. using Manual entire by giving username and password and clicking on login button 2. We have SAML integrated to application in case saml integration is enabled then application main running on (localhost:3000) and saml (let say in localhost 7000) , When we hit localhost:3000 the url will be re-directed to localhost:7000 and there is one form we fill details and click on button to redirect to the main application . How can i achieve this using cypress
  • b

    blue-battery-71202

    11/07/2022, 12:28 PM
    Hi guys, We've been seeing increasing number of chrome crashes with v10.11 Anybody has the same issue, also any way to workaround?
  • f

    fresh-doctor-14925

    11/07/2022, 12:36 PM
    Have you looked into
    cy.origin()
    ?
  • b

    best-student-90112

    11/07/2022, 12:38 PM
    Hi @fresh-doctor-14925 Thanks for reply . yeah i looked but cy.origin i have mentioned the url right so the redirect to SAML login page is automatic in app side . So not getting much clue on how to use it
  • f

    fresh-doctor-14925

    11/07/2022, 12:44 PM
    It should be able to handle your use case. Have you looked at this example? https://github.com/cypress-io/cypress/issues/21201#issuecomment-1110259521
  • b

    best-student-90112

    11/07/2022, 12:46 PM
    I have not looked into this . Let me try with example
  • s

    stale-policeman-71052

    11/07/2022, 3:31 PM
    Hello , I am trying to implement e2e testing using cypress in my current company . I am using MOCHAWESOME reporter to generate reports but I am clueless about how to share these reports with my team . can anyone please guide me here? Thanks in advance
  • m

    mysterious-belgium-25713

    11/07/2022, 5:38 PM
    Save them in your CI as artifact. Publish the report to a url/app. It's just a static html so you can share it however you want.
  • l

    lemon-oxygen-25956

    11/07/2022, 7:12 PM
    I’d like to start using the cypress-markdown-preprocessor to run Markdown spec files in a Windows 11 environment. Just for familiarizing myself with the package features and the new workflow, I cloned the repo https://github.com/bahmutov/cypress-markdown-preprocessor to a local folder (“D:\Projects\kb”) and ran “npm install”. However, when I try to start the Cypress application (“npm run cypress:open”) I get this error message: “Can't walk dependency graph: Cannot find module 'D:Projectskbcypress-markdown-preprocessor’”. It looks like the Windows path separator character is not recognized. How can I overcome this error?
  • g

    gray-kilobyte-89541

    11/07/2022, 8:00 PM
    I would open an issue in the repo. Since I don't use Windows to install dependencies in that project, I have not seen this error. BUT are you trying to develop the plugin itself, or use it?
  • m

    mysterious-belgium-25713

    11/07/2022, 8:19 PM
    I think in windows the const fiddleModulePath = require.resolve('@gray-kilobyte-89541/cypress-fiddle') is failing. @lemon-oxygen-25956, can you create an issue for this? But i havent tried this yet as a single import, i'm now just following his steps
  • m

    mysterious-belgium-25713

    11/07/2022, 8:30 PM
    Yeah also happens when i'm importing it in windows as a plugin for my project
  • l

    lemon-oxygen-25956

    11/07/2022, 10:41 PM
    Just use it. Thx.
  • l

    lemon-oxygen-25956

    11/07/2022, 10:43 PM
    Sure. I will create an issue in the repo.
  • l

    lively-kitchen-54916

    11/07/2022, 10:57 PM
    Hello, I'm trying to update transition our CI e2e runs to run Cypress 10.x. It runs on a Docker container via BuildKite and it's currently loading 10.11.0. It was previously complaining that it couldn't find the config file (using js format cypress.config.js). I pointed the cypress run CLI to the file using --config-file param and now the file is being found but I'm getting an error that seems to be expecting the old json config file format
    SyntaxError: /frontend/cypress.config.js: Unexpected token c in JSON at position 0
    Cypress versions on the container show as: Cypress package version: 10.11.0 Cypress binary version: 10.11.0 Electron version: 21.0.0 Bundled Node version: 16.16.0 I don't see a config file format flag in the cypress run CLI documentation but it seems like Cypress 10 should not be having this issue. Don't see this exact issue when I search github/SO/google. Any thoughts?
  • f

    fancy-mechanic-10638

    11/07/2022, 11:28 PM
    I have an array of characters that I want to validate I can't type into an input field, so I tried to do
    cy.wrap(charArray).each((value) =>
    but it's saying that
    value
    is a
    JQuery<HTMLElement>
    for some reason. How do I loop through an array so inside I can do a
    cy.wrap(input).type(value).should('have.value', '')
    ?
  • h

    hundreds-breakfast-16776

    11/08/2022, 1:41 AM
    Hi my config file keeps throwing an error any time I try testing components
  • c

    curved-thailand-93694

    11/08/2022, 1:46 AM
    Hi All , while trying to add a custom command using typescript i am getting the following error: Argument of type '"typeLogin"' is not assignable to parameter of type 'keyof Chainable'.ts(2345) for the code snippet written below in cypress/support/index.ts Cypress.Commands.add('typeLogin', (username:string,password:string) => { cy.visit('https://www.saucedemo.com') cy.get('[data-test="username"]').type(username) cy.get('#password').type(password) cy.get('#login-button').click() cy.url().should('eq', url).then(()=>{ return 0 }) return 1 })
  • c

    curved-thailand-93694

    11/08/2022, 1:46 AM
    please help
  • s

    sparse-musician-43846

    11/08/2022, 6:50 AM
    i signed with google auth in cypress dashboard and now i can't reset my password the reset password link is not sending the email what to do?
  • f

    fresh-doctor-14925

    11/08/2022, 8:13 AM
    If you've been authenticating with Google Auth, can you continue down that route?
  • l

    lemon-oxygen-25956

    11/08/2022, 8:36 AM
    @curved-thailand-93694, the callback function needs to return a chainable value. Just end that function with this statement: return cy.url().should('eq', url). But there is still an error: the variable 'url' in the should call is not defined. Maybe it needs to be an additional function parameter.
  • c

    clean-intern-72668

    11/08/2022, 9:19 AM
    Hi All. I am using mochawesome reporter for generating HTML report and able to generate and merge report correctly . I want exit code to be no of failure cases(expected behaviour of cypress run which return no of failed cases) but after generating report I am getting exit code as 0 .
  • m

    mysterious-belgium-25713

    11/08/2022, 10:28 AM
    Hmm, i dont really understand your question, in linux exit code 0 means success so that means its correct right?
1...196197198...252Latest