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

    able-kangaroo-37061

    07/20/2021, 2:21 PM
    I have more details in this discussion, https://github.com/cypress-io/cypress/discussions/17407
  • t

    thankful-lunch-80439

    07/20/2021, 5:27 PM
    I'm looking through the example code at https://github.com/cypress-io/cypress-realworld-app and I'm interested i nthe
    cypress/tests/api
    tests Are testing the APIs directly considered an end-to-end test?
  • b

    bulky-sundown-74498

    07/20/2021, 5:29 PM
    @User ? what do you think ?
  • t

    thankful-lunch-80439

    07/20/2021, 5:30 PM
    It's very cool to see it being used in that way; I didn't consider using Cypress in that way
  • t

    thankful-lunch-80439

    07/20/2021, 5:30 PM
    That projects is so damn good xD I hope I can write tests like that
  • t

    thankful-lunch-80439

    07/20/2021, 5:54 PM
    What's the difference between using
    describe
    and
    context
    ?
  • t

    thankful-lunch-80439

    07/20/2021, 5:57 PM
    Found this answer, it's apart of Mocha's api > context() is just an alias for describe(), and behaves the same way; it provides a way to keep tests easier to read and organized. Similarly, specify() is an alias for it().
  • t

    thankful-lunch-80439

    07/20/2021, 5:58 PM
    > source: https://mochajs.org/#bdd
  • a

    able-kangaroo-37061

    07/20/2021, 10:52 PM
    O my goodness. I'm so happy. I figured it out. And I was able to apply something new I learned about Cypress. T_T
  • a

    ancient-wire-34126

    07/22/2021, 12:18 PM
    Does Cypress do something odd with JS modules or something? Say I have this module:
    a.ts
    Copy code
    ts
    let a = 0
    
    export const addA = () => {
      a++
    }
    
    export const getA = () => a
    In my test file, I increase A:
    Copy code
    ts
    import { addA } from 'a'
    
    before(() => {
      addA()
    })
    In my setup file I have an interceptor:
    Copy code
    ts
    import { getA } from 'a'
    
    cy.intercept({ method: 'POST', url: 'https://cognito-idp.us-east-1.amazonaws.com' }, (req) => {
        console.log(getA())
    })
    But it always logs
    0
    ? This doesn't look like standard ES module behaviour, as you should be able to modify a value from a module through those functions.
  • a

    ancient-wire-34126

    07/22/2021, 12:27 PM
    Yeah it's caching the function of the interceptor. Does it transform it only once and then re-run it each time for performance? That's a real bummer. I wonder how people then seed data on the fly and respond to it
  • a

    able-kangaroo-37061

    07/22/2021, 9:57 PM
    Is there a way I can uncollapse the list of routes by default? When cypress makes a screenshot of a failed test, the routes is collapsed but I want to see routes info, too.
  • p

    plain-lifeguard-91120

    07/23/2021, 6:23 PM
    I'm trying to use "chromeWebSecurity": false in my cypress.json but on the chrome browser, I'm still getting the error message telling me to bypass the error message I need to disable chromewebsecurity
  • a

    ancient-wire-34126

    07/26/2021, 2:24 PM
    How do people extend the Cypress Types? Since it's a namespace you can't import other (external) types, so you're almost always stuck typing things as 'any'
  • a

    ancient-wire-34126

    07/26/2021, 2:26 PM
    Also namespaces are outdated an linters will yell at you for it
  • a

    ancient-wire-34126

    07/26/2021, 2:55 PM
    Ok the docs need updating apparently, it needs to be declared as global for it to work, I opened an issue for it
  • f

    flat-electrician-52949

    07/26/2021, 3:45 PM
    @bahmutov#6775 @bulky-sundown-74498 would you know if Cypress allows to access the chrome dev tools after all test runs? - would like to analyze for unused CSS rules
  • a

    astonishing-whale-1406

    07/26/2021, 3:47 PM
    So, I started exploring wonderful world of cypress, loving it so far!
  • b

    bulky-sundown-74498

    07/26/2021, 3:50 PM
    Unfortunately not right now. Cypress runs mostly inside the browser, we have minimal code inside the extension to avoid having to re-write between browsers. I wonder if a chrome extension would be able to access the dev tools, that could be an interesting tool.
  • b

    bulky-sundown-74498

    07/26/2021, 3:50 PM
    That's a great start !!! Tell us more
  • f

    flat-electrician-52949

    07/26/2021, 3:52 PM
    An extension sounds like a way to go. Is there some docs on how to run the test in chrome with some extension installed?
  • b

    bulky-sundown-74498

    07/26/2021, 3:54 PM
    https://docs.cypress.io/api/plugins/browser-launch-api#Syntax
  • b

    bulky-sundown-74498

    07/26/2021, 3:55 PM
    As you can see there is an extensions flag
  • a

    astonishing-whale-1406

    07/26/2021, 3:56 PM
    Debuggability mainly attracted me. So, plan to explore rwa repo by this week and have a good grasp if possible.
  • f

    flat-electrician-52949

    07/27/2021, 7:47 AM
    👌thanks a lot @bulky-sundown-74498
  • r

    rough-nightfall-90576

    07/29/2021, 5:41 PM
    Is there a way to get results from the dashboard.io via Api or some way to use in another tool, like graphana to able to integrate as a widget into Jira or somewhere similar?
  • b

    bulky-sundown-74498

    07/29/2021, 6:18 PM
    @User do you know of any similar projects in our pipeline ?
  • b

    bulky-sundown-74498

    07/29/2021, 6:18 PM
    I know we have integration with slack and github
  • u

    user

    08/04/2021, 7:02 AM
    I have general question. If I want to do testing for custom components that will be used in our web application, which testing will be better ? I gathered that we can do at least these 4 types of testing: 1) Unit testing 2) e2e 3) snapshot testing 4) Component testing
  • a

    ancient-wire-34126

    08/04/2021, 1:54 PM
    A combo of 1 and 4 imo
1...121314...127Latest