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

    bulky-sundown-74498

    04/23/2021, 6:45 PM
    try to throw at the end to avoid unreachable code
  • f

    future-gold-77198

    04/23/2021, 6:46 PM
    yeah, did that, and just goes back to same behavior as before
  • s

    stocky-dream-36427

    04/23/2021, 6:49 PM
    Eslint disable the line https://stackoverflow.com/a/27732264 The console thing is literally just the console being cleared before the test is run. We can pair on it at some point. It’s likely worth documenting in detail. Debugging across iframes can be weird.
  • s

    stocky-dream-36427

    04/23/2021, 6:50 PM
    We should just get on the phone at some point. I’m interested to understand what’s up.
  • b

    bulky-sundown-74498

    04/23/2021, 6:50 PM
    Somehow, your e2e support file is not loading properly, probably because of the webpack preprocessor
  • s

    stocky-dream-36427

    04/23/2021, 6:51 PM
    That’s really the only difference.
  • s

    stocky-dream-36427

    04/23/2021, 6:52 PM
    I’ve never really seen that webpack error in e2e now that I think about it. It generally only throws directly to console
  • f

    future-gold-77198

    04/23/2021, 6:52 PM
    True. I can do a call no problem. Might just have to walk me through things a little extra at times
  • s

    stocky-dream-36427

    04/23/2021, 6:52 PM
    Like maybe you’re running CT somehow.
  • b

    bulky-sundown-74498

    04/23/2021, 6:52 PM
    can you try removing the preprocessor from the plugins file?
  • f

    future-gold-77198

    04/23/2021, 6:52 PM
    Is running multiple instances of Cypress generally discouraged?
  • s

    stocky-dream-36427

    04/23/2021, 6:52 PM
    Yes
  • s

    stocky-dream-36427

    04/23/2021, 6:53 PM
    It’s untested
  • s

    stocky-dream-36427

    04/23/2021, 6:53 PM
    The server is a bit of a singleton so I’m not sure what would happen
  • f

    future-gold-77198

    04/23/2021, 6:53 PM
    I guess I'm testing it often, haha
  • s

    stocky-dream-36427

    04/23/2021, 6:53 PM
    Lol
  • f

    future-gold-77198

    04/23/2021, 6:55 PM
    I know it isn't possible to run multiple chrome instances spawned by cypress at once, which pretty much means the new CT runner can't be used with multiple instances. I just mean the electron part I guess. But I work on multiple projects at once, so keeping multiple open is convenient.
  • f

    future-gold-77198

    04/23/2021, 6:58 PM
    and this is when the runner just fails earlier, because it can't interpret a lot of things earlier on. All related to what we went through on Wednesday and why I split the plugins file. Or do I misunderstand what you mean I should do?
  • b

    bulky-sundown-74498

    04/23/2021, 7:00 PM
    Just to be on the same page, I think fhe file:preprocessor is mostly useful for compiling stuff imported in support/index.js and others
  • f

    future-gold-77198

    04/23/2021, 7:11 PM
    ok, so, I think I'm mostly wrong. Maybe it was again due to using webpack for CT but not really needing it for E2E, but only having one plugins file. So having two may have resolved that and I was mistaken that we still needed a preprocessor for e2e. I removed it and it all seems fine. But in the case where someone did want a preprocessor with E2E, I wonder if this issue would arise...
  • b

    bulky-sundown-74498

    04/23/2021, 7:13 PM
    I do not see the issue in this screenshot?
  • f

    future-gold-77198

    04/23/2021, 7:17 PM
    There is none, the library is working when I took out file:preprocessor
  • f

    future-gold-77198

    04/23/2021, 7:19 PM
    IE: Just have this for plugins for e2e
  • f

    future-gold-77198

    04/23/2021, 7:24 PM
    So this was a long way to arrive at a very simple conclusion, indeed. Sorry my noobness is showing... If it helps, I think this approach of configuring CT and e2e to have different support files is more pertinent when introducing CT testing. So maybe having that documented more clearly might help for future users. Looking back, I think it is one thing that really made things feel more difficult to a coworker of mine, when he first setup Cypress. Though he is even more new to Cypress. I've been focusing on CT for so long and not E2E that I didn't really notice this issue over all that time.
  • s

    stocky-dream-36427

    04/23/2021, 8:06 PM
    Yes. It really would be. Would you be comfortable drafting up a md file against cypress-documentation?
  • s

    stocky-dream-36427

    04/23/2021, 8:07 PM
    It doesn’t need to be perfect and we’ll clean it up if you submit a PR
  • s

    stocky-dream-36427

    04/23/2021, 8:07 PM
    Don’t worry about any organization. You can just append into the component-testing/introduction.md ^.^
  • l

    limited-rain-38264

    04/23/2021, 9:34 PM
    I'm trying to upgrade to v7. We are currently using cy.request to fetch some information from a local api to use as input to our tests. v7 seems to break something. I'm not seeing exactly how we are supposed to migrate away from that pattern. It seems like intercept is not appropriate here? halp? more info: it looks like previously we were able to
    await
    the result of a cy.request().as('alias') and now we cannot? update: ok yes it looks like
    await
    is no longer allowed, but wrapping it in a Cypress.Promise works. Is this a regression or planned?
  • f

    future-gold-77198

    04/23/2021, 9:36 PM
    I think I can do that. I've never contributed to the documentation, so it might take me a while. Do I fork the main repo and find the right file, or is it a more specific repo?
  • q

    quick-gpu-68223

    04/24/2021, 1:39 AM
    @User @User Ok apparently it was on my side I didnt import my css good 😒 Thanks a lot for your reactivity i will definitely give a try to it now 🙂
1...678...252Latest