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

    salmon-monitor-78241

    04/22/2021, 5:05 PM
    Cypress is really great, I ran a tech demo of it today. One suggestion I would like to put forward on documentation, is some sort of guide for people that are straight coming to end 2 end testing from no frontend testing knowledge. The biggest learning curve is understanding the assertion logic and key words. All the bits you do explain are great
  • s

    stocky-dream-36427

    04/22/2021, 6:17 PM
    What would you suggest?
  • s

    stocky-dream-36427

    04/22/2021, 6:18 PM
    Like why you'd do it? The kinds of assertions you might choose to write? How much to test?
  • s

    salmon-monitor-78241

    04/22/2021, 6:22 PM
    Yeah that sort of thing.
  • s

    salmon-monitor-78241

    04/22/2021, 6:23 PM
    So you have lots of visits and clicks, not enough cannot clicks, should.exist vs should(‘not.exist’), it can be confusing to clock all the terms
  • s

    salmon-monitor-78241

    04/22/2021, 6:24 PM
    Image has loaded vs css url image loaded. Intercept receipts
  • s

    salmon-monitor-78241

    04/22/2021, 6:26 PM
    I love the Best Practices page, should be a bit more prominent.
  • s

    salmon-monitor-78241

    04/22/2021, 6:27 PM
    I’m the user - who runs a Dev team most of which have 10-15 years each Dev experience, gave up on selenium testing and now have a good looking tool. The language is the biggest barrier for us. Everything else is really well documented
  • s

    stocky-dream-36427

    04/22/2021, 8:12 PM
    That’s really helpful. So you’re new to JS?
  • s

    stocky-dream-36427

    04/22/2021, 8:13 PM
    But in general you understand testing and the role of e2e testing?
  • s

    stocky-dream-36427

    04/22/2021, 8:14 PM
    @salmon-monitor-78241
  • f

    future-gold-77198

    04/22/2021, 11:57 PM
    @salmon-monitor-78241 You might look up Gleb Bahmutov's blog for a lot of why's and how to's. Or there are quite a few beginner level tutorials on youtube and blogs in general. Have you also found the command by command documentation? I think that is pretty great.
  • s

    salmon-monitor-78241

    04/23/2021, 8:13 AM
    Definitely not new to JS - got on board the node train early - testing or role of e2e testing. Just getting into the language of Chai and the syntax. Getting there, just bit of a need to search for the correct syntax.
  • s

    stocky-dream-36427

    04/23/2021, 5:09 PM
    Chai will throw you for a loop the first time. Some trivia: Mocha, Chai, and Cypress’s commands are highly inspired by rspec and capybara. At that point, JS’s testing ecosystem wasn’t as mature as it is today
  • g

    gray-kilobyte-89541

    04/23/2021, 7:55 PM
    I think it is all about seeing more examples, but also glance through https://docs.cypress.io/faq/questions/using-cypress-faq because it might answer some of more advanced questions
  • u

    user

    04/24/2021, 2:58 AM
    so i'm running */smoke-test..spec.js --headless --browser chrome but getting this error
  • u

    user

    04/24/2021, 2:59 AM
    runs no problem when i import all of them in a all-smoke-tests.spec.js
  • u

    user

    04/24/2021, 2:59 AM
    also runs fine in the CLI
  • r

    refined-monkey-52031

    04/24/2021, 4:32 PM
    Is it possible to run cypress on an external url ?
  • r

    refined-monkey-52031

    04/24/2021, 4:32 PM
    thanks!
  • u

    user

    04/24/2021, 10:04 PM
    That's bad practice. I can however use request to a url and receive the html as their docs recommend
  • s

    stocky-dream-36427

    04/24/2021, 11:27 PM
    Hmmmm can you post an issue to GH with a reproduction? I don’t have a quick answer for you.
  • s

    salmon-monitor-78241

    04/25/2021, 4:26 PM
    Thank you, this is ace!
  • u

    user

    04/25/2021, 7:10 PM
    which is so weird because if i run -- spec **/02.smoke-test.spec.js it works fine
  • u

    user

    04/25/2021, 7:10 PM
    only when I run --spec ****0
  • u

    user

    04/25/2021, 7:11 PM
    Copy code
    --spec **/*.smoke-test.spec.js
    and only that one file
  • u

    user

    04/25/2021, 7:12 PM
    i even deleted it and then remade it
  • u

    user

    04/25/2021, 7:12 PM
    swapped them to the numbers in front so 01.smoke-test.spec.js instead of smoke-test.01.spec.js
  • u

    user

    04/25/2021, 7:30 PM
    fixed it by adding " " around the file name. weird since it worked fine without quotes for all the other files and even that file directly
  • u

    user

    04/28/2021, 8:17 PM
    so I was able to get the debugger working in command prompt in my VM. these tests work fine on my local windows and local mac. so when I run the debugger it does look like the tests kick off but it seems like its an infinite loop. so much is happening i have no clue how to address this
1...456...127Latest