https://cypress.io logo
Join DiscordCommunities
Powered by
# general-chat
  • m

    magnificent-rose-67179

    05/27/2021, 3:59 PM
    because you need to import or export something in this mode
  • m

    magnificent-rose-67179

    05/27/2021, 3:59 PM
    but honestly I think we'll just continue to export an empty object
  • m

    magnificent-rose-67179

    05/27/2021, 3:59 PM
    seems like the easiest workaround
  • f

    flat-electrician-52949

    05/27/2021, 4:03 PM
    Recall that it did that and but now I don't recall seeing it. How do you see the complain vscode pop or somewhere else?
  • f

    flat-electrician-52949

    05/27/2021, 4:04 PM
    Think it was the isolatedModules that did it..
  • m

    magnificent-rose-67179

    05/27/2021, 4:18 PM
    with an
    export {}
    it's fine
  • s

    stocky-dream-36427

    05/27/2021, 4:46 PM
    @User you can use a test-specific tsconfig
  • s

    stocky-dream-36427

    05/27/2021, 4:46 PM
    that's usually what people do to add things like test-specific types etc
  • f

    flat-electrician-52949

    05/27/2021, 4:48 PM
    I'll check my setting later and share it
  • s

    stocky-dream-36427

    05/27/2021, 4:48 PM
    I'm not to best at ts, but I know that's the general strategy
  • f

    flat-electrician-52949

    05/27/2021, 5:13 PM
    I had a second look at my setup at se that I wasn't seeing the error because I was doing some imports in the top (fixtures).. the other files that don't have it is complaining.. so guess that an empty export would be a "simple" solution
  • f

    flat-electrician-52949

    05/27/2021, 8:58 PM
    so extending the root
    tsconfig
    and overwriting things like
    isolatedModules
  • s

    stocky-dream-36427

    05/27/2021, 10:28 PM
    Yeah @User exactly
  • f

    flat-electrician-52949

    05/28/2021, 7:22 AM
    Is the docs on
    cy.stub
    up to date (https://docs.cypress.io/api/commands/stub#Syntax)? vscode hints me that I should use
    .callsFake()
    instead (not described in the docs)
  • b

    bulky-sundown-74498

    05/28/2021, 9:08 PM
    This documentation, indeed seem out of date (about a year). Would you mind creating a PR to fix it? @User could review it and make sure it's great. We always appreciate the documentation upgrades most
  • f

    flat-electrician-52949

    05/29/2021, 4:04 PM
    I'll see what I can do. Will earliest have time for it on Friday since I'll be hooked up in some other project until.
  • f

    flat-electrician-52949

    05/29/2021, 4:07 PM
    Any chance of adding a reminder not to this channel? Gotten so used to using it with slack
  • f

    flat-electrician-52949

    05/30/2021, 8:57 PM
    https://github.com/cypress-io/cypress-documentation/pull/3959 @User @User
  • f

    fast-action-74989

    05/31/2021, 1:06 PM
    hi everyone, I'm looking for a variation on cy.wait, can anyone help me?
  • h

    helpful-lighter-43246

    05/31/2021, 3:55 PM
    @User what are you actually waiting for there?
  • h

    helpful-lighter-43246

    05/31/2021, 3:56 PM
    an API response in a search box?
  • f

    fast-action-74989

    06/01/2021, 7:25 AM
    yes, exactly
  • h

    helpful-lighter-43246

    06/01/2021, 7:31 AM
    Well you should use a
    cy.intercpet
    and wait for its alias
  • h

    helpful-lighter-43246

    06/01/2021, 7:36 AM
    Lets assume you are searching in a list of users with the API endpoint
    /users?q=SP
    Copy code
    cy.intercept('**/users?q=*').as('searchUsers');
    
    cy.get('...etc etc').type('SP');
    
    cy.wait('@searchUsers');
    
    the rest of the tests
  • f

    fast-action-74989

    06/01/2021, 12:05 PM
    thanks🙏
  • h

    hallowed-orange-38556

    06/04/2021, 4:03 AM
    Can someone get me some article which compares cypress and selenium. It's advantages, disadvantages, features etc
  • u

    user

    06/07/2021, 2:59 PM
    Anyone here aware of any changes to the websocket connection in the Cypress runner? I upgraded Cypress to 7.3.0 and somehow it fails to connect now as it keeps giving 404. Anyone seen this behaviour before?
  • b

    bulky-sundown-74498

    06/07/2021, 3:24 PM
    @User Angie Jones is often a good resource for those tools https://applitools.com/blog/selenium-vs-cypress-the-rematch/
  • h

    hallowed-orange-38556

    06/07/2021, 3:29 PM
    Thank you @ElevateBart
  • w

    wooden-advantage-64510

    06/09/2021, 1:23 PM
    Are there any plans on improving the documentation? I'm noting that a lot of things aren't document. E.g the
    Cypress.dom
    API is no where documented, while according to the source it's meant to be accessible by users and it does show up in the https://docs.cypress.io/api/table-of-contents page, but it goes straight to a 404 (https://docs.cypress.io/cypress-api/dom)
1...8910...127Latest