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

    bulky-sundown-74498

    04/23/2021, 6:12 PM
    exactly !!! and this is what I was afraid of
  • s

    stocky-dream-36427

    04/23/2021, 6:13 PM
    You’re in top
  • s

    stocky-dream-36427

    04/23/2021, 6:13 PM
    Not the iframe
  • b

    bulky-sundown-74498

    04/23/2021, 6:13 PM
    console.log don't buble up ?
  • s

    stocky-dream-36427

    04/23/2021, 6:13 PM
    In the console you can see the logs for multiple contexts depending on your settings
  • s

    stocky-dream-36427

    04/23/2021, 6:14 PM
    But sometimes you need to use the drop down in the top left to swap from top to the iframe
  • f

    future-gold-77198

    04/23/2021, 6:15 PM
    Doesn't seem to show any different for any of these 3 options
  • f

    future-gold-77198

    04/23/2021, 6:15 PM
    if I rerun, it always defaults to top
  • f

    future-gold-77198

    04/23/2021, 6:17 PM
    Is it no hint that the library works for CTs but only not the e2e runner?
  • f

    future-gold-77198

    04/23/2021, 6:19 PM
    even when I would run the e2e test from the old CT runner, it would still run fine with the testing library commands, so I'm basically certain it has nothing to do with the test... Maybe we should consider Windows soon, haha
  • s

    stocky-dream-36427

    04/23/2021, 6:20 PM
    I think you can do a “R” to rerun without full page refresh yeah?
  • s

    stocky-dream-36427

    04/23/2021, 6:20 PM
    Oh
  • s

    stocky-dream-36427

    04/23/2021, 6:20 PM
    Duh you can just write “debugger” in support. That’ll bring it right up. Make sure breakpoints aren’t turned off etc
  • s

    stocky-dream-36427

    04/23/2021, 6:20 PM
    Sorry I’m texting
  • f

    future-gold-77198

    04/23/2021, 6:24 PM
    Just like this? Sorry, I don't understand the implications of this, but doesn't seem to be caught by the browser...
  • f

    future-gold-77198

    04/23/2021, 6:27 PM
    ah, let me doublecheck breakpoints
  • b

    bulky-sundown-74498

    04/23/2021, 6:27 PM
    I really don't think your commands file is run by e2e
  • b

    bulky-sundown-74498

    04/23/2021, 6:28 PM
    Which is the reason for the error mesaseg you see
  • f

    future-gold-77198

    04/23/2021, 6:30 PM
    That would certainly explain it if it were the case. The breakpoints is a browser setting, right? Not IDE? haha
  • b

    bulky-sundown-74498

    04/23/2021, 6:34 PM
    Yes they are
  • b

    bulky-sundown-74498

    04/23/2021, 6:35 PM
    A good way to affirm for sure that your commands file is never run by the e2e runner
  • b

    bulky-sundown-74498

    04/23/2021, 6:35 PM
    throw an erro in the middle of the file
  • b

    bulky-sundown-74498

    04/23/2021, 6:36 PM
    Copy code
    js
    throw new Error('commands')
  • b

    bulky-sundown-74498

    04/23/2021, 6:36 PM
    If it odes not appear, for some reason your commands file is not even looked at
  • b

    bulky-sundown-74498

    04/23/2021, 6:37 PM
    in other words if your tests start with this error line in the command.js, the file is not looked at
  • f

    future-gold-77198

    04/23/2021, 6:43 PM
    thanks for the tip. So I guess this means it is technically getting looked at...but why no console.log before? Does this make it even harder? =/
  • f

    future-gold-77198

    04/23/2021, 6:44 PM
    makes a difference whether I throw the error before or after. That a false alarm?
  • b

    bulky-sundown-74498

    04/23/2021, 6:45 PM
    This does not mean that commands is loaded, it means that it's processed and that eslint-loader found an issue in it
  • f

    future-gold-77198

    04/23/2021, 6:45 PM
    ok, yeah, sorry
  • b

    bulky-sundown-74498

    04/23/2021, 6:45 PM
    😉
1...567...252Latest