https://cypress.io logo
Join DiscordCommunities
Powered by
# e2e-testing
  • f

    flaky-raincoat-53097

    10/08/2022, 5:19 PM
    Hi guys @here first I want to thank for your help last time. Now I'm still in troubles. I continue testing the same url https://www.businessinsider.com/ikea-nyc-store-planning-studio-tour-2019-4 and now I have a couple blockers a little different. 1- I need to test the “save” button functionality, but when I click it, it opens a popup login child-window. I try this to manipulate that emergent window, but I'm quite wrong:
  • f

    flaky-raincoat-53097

    10/08/2022, 5:20 PM
    this is what it opens:
  • f

    flaky-raincoat-53097

    10/08/2022, 5:21 PM
    2- I'm trying to test "email" button functionality but in this case I just don't know what to do, because it opens an OS, Windows emails menu like this:
  • f

    flaky-raincoat-53097

    10/08/2022, 5:21 PM
    and the last one, I need to write a test that iterates over each story at https://www.businessinsider.com/latest and asserts that each URL returns a 200 response.
  • f

    flaky-raincoat-53097

    10/08/2022, 5:21 PM
    I could click in each news url, using each, but I just can't assert that the response is 200 code. this is what I tried but I know that I'm a little lost.
  • f

    flaky-raincoat-53097

    10/08/2022, 5:22 PM
    I would appreciate any kind of help, thanks in advance
  • g

    glamorous-country-57678

    10/09/2022, 12:46 AM
    Hi, I am doing e2e testing for twitter oAuth. The problem I have is that a user can signup with twitter oAuth, sign out, and then login with Twitter oAuth again. Why would this happen within Cypress? Trying to decipher if this is an issue with the actual implementation of Auth or Cypress is not storing the state of the authenticated user.
  • m

    microscopic-crowd-9149

    10/09/2022, 4:10 AM
    We are debating between Cypress vs katalon
  • a

    adorable-smartphone-87280

    10/09/2022, 5:14 AM
    Every time you spam your question in multiple channels I will call you out for it.
  • m

    mysterious-belgium-25713

    10/09/2022, 5:58 AM
    Please do not spamm all channels. Second your question is not something we should answer. Katalon and cypress are 2 different tools. Katalon is a studio tool that is build on top of selenium. Where Cypress is its own tool. Without context what you are trying to automate there will be no sane answer on what is better for your usecase. Things you need to keep in mind is. 1. What app are you testing 2. Skill level of engineers how good are they in java(katalon) or js(cypress) 3. How the app is delivered (daily/weekly) this means other ci/cd needs and you also need to check if katalon or cypress fits that need. Also if you are debating do a Proof of Concept. Automate in both tools a usecase that has value for the team. Then you can see how much effort it took to create the test. And with effort I mean. * Run time of test. * How fast you can debug if you make an error * How fast you created the test. If you did all that then come back here for a discussion
  • m

    microscopic-crowd-9149

    10/09/2022, 1:37 PM
    As you said second thing we should not answer my question- r u kidding with me, people telling me why Katalon is better then cypress & you don’t have anything why cypress is better.. I just want to know what’s plus point to use cypress over katalon
  • g

    gray-kilobyte-89541

    10/09/2022, 2:07 PM
    These are Cypress features https://www.cypress.io/features Please take a look, compare to features from other test runners, do a proof of concept and compare
  • s

    square-zoo-92250

    10/09/2022, 5:28 PM
    I had a similar issue and I believe the
  • f

    fresh-vegetable-84075

    10/10/2022, 9:58 AM
    HI everyone, I have a simple question: I've been testing APIs with cypress for the last three weeks (so I'm no expert) but when I try to send a PUT or a DELETE request with content-type: multipart/form-data with cy.request it doesn't work at all, meaning that it sends the request but the body of the request where i out my formData is empty so tha API answers with a 400 - bad request. As I try the same code but with a POST request it works perfectly fine. Can someone tell me why? Are put/delete request with multipart/form-data not supported? If so, do you know if thre will be a fix in the versions? Thank you for your help
  • c

    clever-angle-88599

    10/10/2022, 10:18 AM
    There is no such limitation / open issue with cypress. Please have a look at https://stackoverflow.com/questions/68659330/uploading-multipart-form-data-from-text-file-using-cypress
  • f

    fresh-vegetable-84075

    10/10/2022, 10:23 AM
    I've tried using what the answer to the question suggests but it doesn't work at all. Changing the method from post to put, it sends the request but the request's body is completely empty, and changing the method back to POST it works perfectly fine
  • c

    clever-angle-88599

    10/10/2022, 10:29 AM
    what is your cypress version? Also share your code snippet
  • f

    fresh-vegetable-84075

    10/10/2022, 10:32 AM
    The latest, 10.9.0
  • f

    fresh-vegetable-84075

    10/10/2022, 10:33 AM
    I've created a question on stackoverflow https://stackoverflow.com/questions/74012962/put-and-delete-request-with-content-type-multipart-form-data-in-cypress
  • c

    clever-angle-88599

    10/10/2022, 10:34 AM
    Ok let me check
  • c

    clever-angle-88599

    10/10/2022, 10:38 AM
    Have you tried setting form: true ?
  • f

    fresh-vegetable-84075

    10/10/2022, 10:42 AM
    Yes, but it doesn't change anything
  • k

    kind-belgium-84812

    10/10/2022, 10:47 AM
    Hi all I’m new to Cypress and I’m trying to start automating Salesforce E2E journeys. However I’ve come across a lot of issues with getting passed the login page. After I login I get error messages. I believe this is a common issue with Cypress/ Salesforce automation.
  • k

    kind-belgium-84812

    10/10/2022, 10:48 AM
    Any help would be greatly appreciated. I have also noticed there are no videos or tutorials covering Cypress/ Salesforce testing 😩
  • g

    gorgeous-forest-81700

    10/10/2022, 11:00 AM
    Hello guys, just a question I have tried to set Screenshot defaults to capture: 'fullPage' but it works only for cy.screenshot() and not on screenshotOnRunFailure is it know issue or can I somehow set behavior of screenshots that are made on fail when run?
  • m

    mysterious-belgium-25713

    10/10/2022, 11:03 AM
    Yeah there is a trick to that. https://discord.com/channels/755913899261296641/763105090679865354/1022955742363385896
  • g

    gorgeous-forest-81700

    10/10/2022, 11:06 AM
    Nice that was faster than expected, will try that thanks !!! 👍
  • l

    limited-barista-33480

    10/10/2022, 5:47 PM
    Hello guys, who can help me with this question. How can I execute a cypress script in chrome webdriver, that is, the idea is to enter a command to execute the test but to open the chrome browser without it being within the cypress environment. example like when running a test with selenium that opens independently.
  • m

    mysterious-belgium-25713

    10/10/2022, 5:49 PM
    That's not possible, cypress is not build in the way selenium talks to a browser. It also doesn't use webdriver it is a different tool. But now wondering why would you want to call another browser if cypress opens the chrome browser for you?
  • m

    mysterious-belgium-25713

    10/10/2022, 5:51 PM
    https://docs.cypress.io/guides/overview/key-differences#What-you-ll-learn
1...117118119...192Latest