https://cypress.io logo
Join Discord
Powered by
# e2e-testing
  • c

    clever-salesmen-46486

    11/02/2022, 12:13 PM
    I'd say it's running. Let me check the stuff about the hosts.
  • a

    ambitious-monkey-72386

    11/02/2022, 4:44 PM
    Can someone suggest a test plan and approach for mssql to postgresql migration .
  • c

    careful-toothbrush-49639

    11/02/2022, 6:48 PM
    Good evening. I need help with custom commands. So I created my custom command in the command.js but when I try using it in my the test file, I get the message that there are not tests on my file.
  • g

    gray-kilobyte-89541

    11/02/2022, 7:17 PM
    are there errors in the devtools console?
  • h

    handsome-army-58690

    11/02/2022, 8:26 PM
    Hi, I have 3 individual cypress configurations with respect to local, dev, and test. whenever I run the test case locally, everything works fine, but when I run for the test/dev environment using the test/dev config login itself fails, do I need to add any property or something to target deployed environments in order to test it ?
  • m

    mysterious-belgium-25713

    11/02/2022, 9:00 PM
    Maybe I'm thinking to simple but if you have an existing application that is migrating from Ms to post then the only test plan you need is that the application will still work the same. So all requirements you have set for the application are the things that should be working after migration.
  • a

    aloof-psychiatrist-45078

    11/03/2022, 1:36 AM
    Hello, anyone have a good way to trigger hover events in Cypress?
  • a

    aloof-psychiatrist-45078

    11/03/2022, 1:38 AM
    i did try the
    cypress-real-events
    library but still encounter some issues
  • a

    aloof-psychiatrist-45078

    11/03/2022, 1:40 AM
    Here is some sample code and output
  • a

    adorable-smartphone-87280

    11/03/2022, 1:42 AM
    @aloof-psychiatrist-45078
    cy.get("selector").trigger("mouseover");
    https://docs.cypress.io/api/commands/trigger#Mouse-Events
  • a

    aloof-psychiatrist-45078

    11/03/2022, 1:49 AM
    that is the first thing i tried in fact
  • a

    adorable-smartphone-87280

    11/03/2022, 1:51 AM
    didn't work? Maybe the element is in a non-interactive state? Try it after an explicit wait?
  • a

    aloof-psychiatrist-45078

    11/03/2022, 1:54 AM
    i do it this way, is i want to hover over a row record with the contain wording, it will display an edit button on mouse hover and then i parent 3 times up, as after some digging in the DOM page and force :hover state on the element, the edit button shows
  • a

    adorable-smartphone-87280

    11/03/2022, 2:05 AM
    So you got it working?
  • a

    aloof-psychiatrist-45078

    11/03/2022, 3:02 AM
    nope, the snapshot on before after is the same, the element that i expect to appear upon hovering does not show up
  • h

    handsome-army-58690

    11/03/2022, 4:57 AM
    Hi, how do we preserve cookies before each test case?
  • s

    stocky-france-62439

    11/03/2022, 5:45 AM
    Hey guys, I'm new to automation. I have a query with mochawesome reporter, Use case: I'm writing API tests using cypress, So I wanted to log the request payload and response payload to debug if something breaks during execution. Need help to get request details and response details in the reporter
  • a

    aloof-psychiatrist-45078

    11/03/2022, 7:40 AM
    i got a workaround to this, to use chain of parent methods, and a contains method to find the element i want and force click it
  • e

    eager-breakfast-44562

    11/03/2022, 8:49 AM
    Hello I'm new to the cypress and I'm trying to write some basic e2e tests for my Hangman js/html/css project. The goal I'm trying to achive is to run getWord() function and work with the word (press buttons that contain Letters in word and win the game). Unfortunately As I try command var name = getWord() I got an error saying getWord is not defined. I tried to include ./Hangman.js file (whole logic is here including specific function) but was unsuccessful. Can anyone help me please? Thank a lot
  • q

    quaint-kilobyte-18208

    11/03/2022, 9:49 AM
    How can I e2e test the React.lazy when I click and load it?
  • a

    adorable-stone-42197

    11/03/2022, 9:58 AM
    Hello everyone, my team and i using the launch darkly. As it seems, we are using for dev, stage, and prod. And for prod is not really working when we run npx cypress open? For other env is working…
  • a

    adorable-stone-42197

    11/03/2022, 10:00 AM
    The flags are enabled, if i log just from browser i see everything, but from cypress is not recognize.
  • c

    clever-salesmen-46486

    11/03/2022, 12:18 PM
    Ok so I discovered why my tests were failing on Github actions. My Next.js middleware is set to change http to https on production. Cypress fails with
    error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER
    when localhost is using https. Is there any way of having the tests work with
    https://localhost:3000/
    ?
  • c

    clever-salesmen-46486

    11/03/2022, 12:28 PM
    I've tried a few ways of running Cypress on
    NODE_ENV=test
    on Github actions but it's just erroring out, I probably don't know how to set it up correctly.
  • g

    gentle-processor-97604

    11/03/2022, 7:02 PM
    Hi , I receive assertexpected to have value Password, but the value was '', Timed out retrying after 4000ms
  • g

    gentle-processor-97604

    11/03/2022, 7:02 PM
    I believe this is a common problem but could not find any solution
  • a

    acceptable-hamburger-48790

    11/03/2022, 7:56 PM
    What is the common problem means ? Also Can you please share the dom element you are trying to assert and along with your assertion code. This will allow people to help you
  • g

    gentle-processor-97604

    11/03/2022, 8:01 PM
    Hi , thank you for suggestion. I just wanted to assert a text in a page by cy.get('#text88').should('have.value', 'hello') --> Timed out retrying after 4000ms: expected '' to have value 'hello', but the value was ''
  • a

    acceptable-hamburger-48790

    11/03/2022, 8:04 PM
    Does your element #text88 has value attribute and it has value ? Can you cross check that ? You can use the developer tool to inspect manually and ensure its the right element
  • g

    gentle-processor-97604

    11/03/2022, 8:06 PM
    I see the text on the screen and I double checked the it has value attribute. When I use invoke() it works but I have many other assertions and they give same error, looks like i am doing something wrong or missing
1...136137138...192Latest