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

    rapid-toddler-99297

    04/14/2021, 8:36 PM
    Thanks for any input on that 👋
  • s

    stocky-dream-36427

    04/14/2021, 8:39 PM
    Oh goodness. You have a very hard problem 🙂
  • s

    stocky-dream-36427

    04/14/2021, 8:40 PM
    I have built the exact thing you're talking about. It's pretty difficult.
  • s

    stocky-dream-36427

    04/14/2021, 8:40 PM
    So... maybe
  • s

    stocky-dream-36427

    04/14/2021, 8:41 PM
    If you have the application code, I think I could help you test it. It might be possible but it depends on how the map is implemented.
  • s

    stocky-dream-36427

    04/14/2021, 8:42 PM
    If your map is canvas, you might have a hard time. If it's DOM nodes... I think you will be able to do it
  • r

    rapid-toddler-99297

    04/14/2021, 9:00 PM
    Well I am not part of the project anymore. We were only part of a team for a limited amount of time. I just saw your great talk on vueconf and this case popped back into mind. So I don't have to test it, but thought maybe this is the right place to ask such a question. Just to have a few recipes for the next time I might stumble upon such a case.
  • r

    rapid-toddler-99297

    04/14/2021, 9:00 PM
    Thanks a lot for your offer though 🙂
  • r

    rapid-toddler-99297

    04/14/2021, 9:01 PM
    If you have a few hints where to start and what you would do in such a case, that would be of great value already.
  • r

    rapid-toddler-99297

    04/14/2021, 9:01 PM
    (I had DOM nodes, I believe)
  • s

    stocky-dream-36427

    04/14/2021, 9:07 PM
    Yeah, I mean, I would literally just try to interact with the component
  • s

    stocky-dream-36427

    04/14/2021, 9:07 PM
    assert that things were "visible"
  • s

    stocky-dream-36427

    04/14/2021, 9:08 PM
    Cypress has a lot of those assertions already built in.
  • r

    rapid-toddler-99297

    04/14/2021, 9:20 PM
    Ok. I see. So you would kind of just check the things I wrote down: e.g.: If I click on an item on the map -> will already expanded items within the list close and the clicked one expands? you would click on a map item (with cypress of course, e.g. by emitting a click event?) and then assert something like -> select the item in the list (maybe via id) and then check if it has a class
    .is-expanded
    . Would that kind of the right approach? Sorry for the noob question, but I don't have a lot of testing experience... 😅 and this would mean that I have to mount all the components within the same test environment... right?
  • s

    stocky-dream-36427

    04/14/2021, 9:23 PM
    You've got it exactly right @User
  • s

    stocky-dream-36427

    04/14/2021, 9:24 PM
    .click()
    on the element 🙂 and then
    .get('[data-testid=my-pin])
    to figure out what's going on with the pin
  • r

    rapid-toddler-99297

    04/14/2021, 9:47 PM
    ok perfect. Thanks for the input! Much appreciated!
  • r

    rough-fish-62491

    04/19/2021, 11:43 AM
    Morning ✨
  • r

    rough-fish-62491

    04/19/2021, 11:44 AM
    What do you recommend me to do in these cases? It comes out with many of the tests
  • s

    stocky-dream-36427

    04/19/2021, 4:15 PM
    Morning! We need a reproduction of the issue. Can you open a GH issue with steps to reproduce the failure?
  • f

    full-jordan-99342

    04/21/2021, 6:06 PM
    Hello! I see that generally a proxy is set via ENV -- however, is it possible to dynamically use one on a spec-by-spec basis?
  • b

    bulky-sundown-74498

    04/21/2021, 6:07 PM
    @full-jordan-99342 what do you mean
  • b

    bulky-sundown-74498

    04/21/2021, 6:07 PM
    ?
  • s

    stocky-dream-36427

    04/21/2021, 6:07 PM
    You can modify .env dynamically https://docs.cypress.io/api/cypress-api/env#Syntax
  • s

    stocky-dream-36427

    04/21/2021, 6:07 PM
    without an env file.
  • s

    stocky-dream-36427

    04/21/2021, 6:08 PM
    A general rule with Cypress is "anything that can be set inside of cypress.json is also available for modification at runtime"
  • f

    full-jordan-99342

    04/21/2021, 6:08 PM
    I have a number of specs i want to run, but some of them i want to run with a proxy enabled, and some i don't (it's our hacky way to simulate traffic from another region)
  • s

    stocky-dream-36427

    04/21/2021, 6:08 PM
    (That's a brilliant solution, btw)
  • s

    stocky-dream-36427

    04/21/2021, 6:08 PM
    Let me know if Cypress.env will solve your issue
  • f

    full-jordan-99342

    04/21/2021, 6:08 PM
    i'll give it a shot! thanks!
12345...252Latest