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

    fast-action-74989

    10/07/2021, 7:23 AM
    now i have the users in the cypress.env adn i want it in a database, but i don't know how to connect a database with cypress, i don't know is it possible to do it
  • i

    important-river-75795

    10/07/2021, 8:08 AM
    It is deffinetly possible to do it
  • i

    important-river-75795

    10/07/2021, 8:08 AM
    But why not use fixtures?
  • i

    important-river-75795

    10/07/2021, 8:09 AM
    I wouldn't want my test data to be dependant on a DB to be running, just adds more points of failure in my opinion
  • f

    fast-action-74989

    10/07/2021, 8:23 AM
    my ultimate goal is to create certain users on a mongo database before running cypress tests by making a post call. the idea I had was to recreate a starting DB that is used at each test with all the necessary data
  • i

    important-river-75795

    10/07/2021, 8:27 AM
    If you create the users with a post call
  • i

    important-river-75795

    10/07/2021, 8:27 AM
    Get them with a get call
  • i

    important-river-75795

    10/07/2021, 8:27 AM
    Ez pz 😄
  • f

    fast-action-74989

    10/07/2021, 8:28 AM
    yes of course, but first I have to recreate a starting DB that is used at each test with all the necessary data, requests from the boss😆
  • b

    bored-church-78777

    10/07/2021, 3:45 PM
    I got a new job and we are using Cypress. Double yeah! I was wondering if anyone could recommend some good free or paid courses for learning how to use Cypress with React? (Best if you taken the course yourself or knows someone who has.) Thanks!
  • f

    fast-action-74989

    10/07/2021, 3:48 PM
    i think udemy cource are okay for initial learning https://www.udemy.com/course/cypress-tutorial/
  • f

    fast-action-74989

    10/07/2021, 3:49 PM
    or gleb on youtube
  • f

    fast-action-74989

    10/07/2021, 3:49 PM
    https://www.youtube.com/channel/UCRse4WcQxq8Ih6L4CWY3exg
  • b

    brief-egg-12332

    10/07/2021, 5:38 PM
    Best would be Kent C.Dodds’s Testing Javascript course !
  • b

    bored-church-78777

    10/07/2021, 7:10 PM
    I am getting that course, though seems to be better for Jest/React Testing Library and not so much for Cypress. Thanks for the suggestion!
  • b

    bored-church-78777

    10/07/2021, 7:11 PM
    OK, I will take a look. Thanks!
  • f

    future-eye-56254

    10/07/2021, 10:11 PM
    can cypress read the OS environment variables like windows "Path" or something else ?
  • g

    gray-kilobyte-89541

    10/08/2021, 10:37 AM
    yes, from the plugin file
  • g

    gray-kilobyte-89541

    10/08/2021, 10:38 AM
    yes, Cypress can connect to the database, search for "database" at https://cypress.tips/search to find difference suggestions
  • f

    future-eye-56254

    10/10/2021, 10:14 PM
    Thank you; Is there a recipe I could copy from please.
  • g

    gray-kilobyte-89541

    10/11/2021, 12:52 PM
    check out my blog post https://glebbahmutov.com/blog/verify-phone-part-two/
  • f

    fast-action-74989

    10/12/2021, 7:29 AM
    super, thanks👍
  • u

    user

    10/15/2021, 12:20 AM
    Hey folks. I try to write to test for email subscription. However, the test not pass every time that I run. It throw status 429 which is too many request. Does Cypress has any command to compensate this? I try to change the new email address every time that I submit but that seem not to be a problem. Thanks in advance guys!
  • r

    refined-photographer-69544

    10/19/2021, 7:41 PM
    Hello there, I try to write a test for user reset password for perticular URL. So, when user type his New Password, he has to verify his identity. The email i am using is from different domin (mailsurp) and not the same domian which I use for next steps. I am not getting this verification email in to my Mailsurp Inbox. When I run my code, it stops at this point and throw a "CypressError". I am not sure where the error is so if someone can please help to debug this error that would be very helpful. Thank you in advacne.
  • r

    refined-photographer-69544

    10/19/2021, 7:42 PM
    This is the Error message.
  • a

    average-balloon-51545

    10/20/2021, 10:47 AM
    Hello, Is it possible to somehow scroll the viewport to the bottom on test failure?
  • t

    tall-area-9998

    10/20/2021, 11:52 AM
    Maybe you can put a command that does that in the succeeding test suite. cy.scrollIntoView or cy.scrollTo
  • r

    refined-photographer-69544

    10/20/2021, 2:23 PM
    Thank you I will try that.
  • g

    gray-kilobyte-89541

    10/20/2021, 3:54 PM
    If you need to create data during Cypress tests or even to log in: cypress-data-session is the answer https://glebbahmutov.com/blog/cypresss-data-session/
  • r

    rapid-laptop-3825

    10/20/2021, 6:30 PM
    i'm currently looking for a simple/clean approach to deliver html reports thru email of my cypress test runs. Suggestions/ideas will be much appreciated. Did not find anything on cypress documentation which caught my attention.
1...192021...127Latest