https://cypress.io logo
Join Discord
Powered by
# general-chat
  • p

    powerful-orange-86819

    02/18/2022, 12:07 PM
    Test the test, make it enabled and see if it catches it, if it does, doesn't really matter what the cypress is showing while pointing the step
  • g

    glamorous-architect-52545

    02/18/2022, 12:26 PM
    ok, thanks bro!
  • c

    clean-wire-62738

    02/18/2022, 4:40 PM
    Gotcha! Massage is correct term, though, right?
  • a

    adventurous-dream-20049

    02/18/2022, 7:46 PM
    Massage is correct, but clearer wording might be "...do some arbitrary things here to change the subject"
  • c

    clean-wire-62738

    02/19/2022, 8:32 AM
    How about 'interact'?
  • a

    adventurous-dream-20049

    02/22/2022, 12:14 AM
    I do not approve the PRs, however, if the approver does not agree with the verbiage change, they'll make a different suggestion in the PR itself
  • w

    white-agent-38646

    02/22/2022, 6:38 PM
    This morning I started to get an error trying to run cypress via a command line in my console. It worked yesterday I was at 9.5.0 and rolled back to 9.4.1 both have the same error. node_modules/.bin/cypress open An unexpected error occurred while verifying the Cypress executable. Please search Cypress documentation for possible solutions: https://on.cypress.io/ Check if there is a GitHub issue describing this crash: https://github.com/cypress-io/cypress/issues Consider opening a new issue. ---------- Error: spawn Unknown system error -86 ---------- Platform: darwin-x64 (21.3.0) Cypress Version: 9.4.1
  • m

    melodic-apple-72412

    02/23/2022, 3:22 PM
    Hello guys, I have a question : In order to stop login into application again and again for each test, I see there are two options : 1. Login once and white list cookies
    Copy code
    / now any cookie with the name 'session_id' or 'remember_token'
    // will not be cleared before each test runs
    Cypress.Cookies.defaults({
      whitelist: ['session_id', 'remember_token']
    })
    2. Use sessions. Currently in our test, we just starting using session. But it needs to be called in beforeEach hook and if the session is active it will restore. My question is isn't it faster to whitelist cookies rather using sessions?
  • m

    modern-king-58112

    02/23/2022, 6:45 PM
    Hello Guys, what is the best way to store constants without file import? like enums? fixture? What is not antipattern, or the most useful way to store them?
  • m

    modern-autumn-20651

    02/23/2022, 10:32 PM
    I've dug around a bit and it looks like Cypress put the addition of Safari on hold. Anyone have any new information on that? I'd sure like to see them implement it. Thanks
  • g

    gray-kilobyte-89541

    02/24/2022, 12:42 PM
    sure, whitelisting and preserving the cookies is faster
  • f

    faint-spring-80499

    02/24/2022, 6:54 PM
    👋
  • b

    broad-potato-69393

    02/24/2022, 11:46 PM
    Hi guys, I'm trying to access some helper functions I have for my app, in my Cypress tests. How do I include my app folder as a path to resolve modules?
  • b

    broad-potato-69393

    02/28/2022, 1:39 AM
    do you know about this? https://cypress.io/blog/2021/08/04/authenticate-faster-in-tests-cy-session-command/
  • a

    adorable-smartphone-87280

    02/28/2022, 5:10 AM
    Yeah this has been the direction we've gone as I think the
    session()
    is intended to be the default login style in a future version of Cypress.
  • b

    broad-potato-69393

    02/28/2022, 5:35 AM
    Same here. Been working pretty well. Haven’t had a reason to consider otherwise, as of yet
  • p

    polite-alarm-78904

    02/28/2022, 9:17 AM
    I'm trying to fill out and submit a form. But I get an error when submitting. If I wait for 1 sec before clicking submit, I get no error. Cant reproduce the error in a normal browser. What could be the reason for this?
  • b

    broad-potato-69393

    02/28/2022, 5:31 PM
    What exactly is the error? What do you see in your server logs? The server response probably isn't ready within 1 second. Would need more context to be able to help though
  • p

    polite-alarm-78904

    03/01/2022, 1:04 PM
    I'm typing into a number field and then clicking submit. The client side code prevents me from submitting the form because it expect certain variables to have a value. But I can see that all the fields have values. For some reason Vue doesn't register any changes, so it assumes the form is empty thus giving an error.
  • g

    gray-kilobyte-89541

    03/01/2022, 3:11 PM
    it might require blur event to set the actual. values, can you provide a reproducible example?
  • m

    millions-spoon-12901

    03/03/2022, 5:35 PM
    Regarding the experimental API, cy.session(), is there a way to disable it logging to the command log so that credentials/passwords/secrets are not being broadcast?
  • p

    proud-piano-89169

    03/04/2022, 5:47 PM
    Hey Cypress folks, I'm running into an odd issue with unit tests and imports from the root of the project in a nextjs app. I set
    "baseUrl": "."
    and therefore all my imports look like
    import Button from "components/Button
    . When I run a unit test and import a function from a file that includes other imports in that format, Cypress throws an error that looks like
    Copy code
    Error: Webpack Compilation Error
    ./utils/someMath.ts
    Module not found: Error: Can't resolve 'utils/addTwoNumbers' in '/Users/bradycaspar/code/test/cypress-next/utils'
    resolve 'utils/addTwoNumbers' in '/Users/bradycaspar/code/test/cypress-next/utils'
      Parsed request is a module
      using description file: /Users/bradycaspar/code/test/cypress-next/package.json (relative path: ./utils)
        Field 'browser' doesn't contain a valid alias configuration
        Looked for and couldn't find the file at the following paths:
    [/Users/bradycaspar/code/test/cypress-next/utils/node_modules]
    [/Users/bradycaspar/code/test/node_modules]
    [/Users/bradycaspar/code/node_modules]
    [/Users/node_modules]...
    Not sure if there's some basic config I'm missing, any help would be appreciated! I created a minimal reproduction here: https://github.com/bscaspar/cypress-next-import-error-example
  • b

    bulky-table-27118

    03/06/2022, 9:08 PM
    Good night, I'm trying to select a data using the datepicker it's not working like look at the example I want to select 11/30/1983 but my code getting 10/30/1983
  • b

    bulky-table-27118

    03/06/2022, 9:08 PM
    Copy code
    ts
    it('should be select birth data', () => {
      cy.visit('/datepicker')
    
      const date = {
        month: 'nov',
        year: '1984',
        day: '30'
      }
    
      
    
      cy.get('.datetimepicker-dummy-input').click()
    
      cy.get('.datepicker-nav-month').click()
      cy.contains('.datepicker-month', date.month).click()
    
      cy.get('.datepicker-nav-year').click()
      cy.contains('.datepicker-year span', date.year).click()
    
      cy.contains('button[class=date-item]', new RegExp('^' + date.day + '$', 'g')).click()
    });
  • p

    powerful-orange-86819

    03/07/2022, 12:12 PM
    funny thing i had the same issue but with "1", you are telling cypress to click "30" and there are 2x 30 in the datepicker screen, the way i approached it is i got the 5th row of the datepicker and used within(() => to find "30" within, other way that might work is check the attributes of the "30" you want
  • b

    bulky-table-27118

    03/07/2022, 12:19 PM
    Thanks for the reply I will try like this
  • m

    modern-king-58112

    03/07/2022, 5:33 PM
    Hello, Can I set multiple user agents value in cypress.json? How does the decision work? in cypress.json I have 2: useragent1, useragent2, and using the npx cypress open useragent1 should work? thank you!
  • m

    modern-king-58112

    03/07/2022, 5:41 PM
    or is it possible to store all the user agents in fixture and parse it?
  • p

    powerful-orange-86819

    03/08/2022, 12:26 PM
    you can make an array in the env like userAgents:[] and then just add created users inside, i rather have an object where each value is username and it contains the password and other info about the user i've created for the particular test, makes it more versatile
  • m

    modern-king-58112

    03/08/2022, 7:59 PM
    But it should work without authentication. Switch works on the fly, based on the user agent/viewport. Passing as a parameter would be better, but I have no clue how I switch between user agents, or is it necessary to store all the device user agent for proper cross-testing
1...303132...127Latest