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

    brash-tiger-52405

    09/14/2022, 1:22 PM
    Hi, is it possible to delete data from completed tasks/forms after each test so that they are empty again in the next test?
  • s

    square-zoo-92250

    09/14/2022, 1:25 PM
    I think this depends on application you're testing. Or you can clear() each field from the form, but I don't think this is something you want to do, you need it all at once?
  • b

    brash-tiger-52405

    09/14/2022, 1:28 PM
    its a elearning tool with different tasks and it saves the current progress, but i want it to start from the beginning after each test.
  • s

    square-zoo-92250

    09/14/2022, 1:29 PM
    then you can use beforeEach to prepare the SUT in a state that you like. That way you'll always start from same place
  • p

    powerful-gigabyte-69168

    09/14/2022, 1:35 PM
    I'm trying to set up the cypress dashboard and to begin parallelizing test execution but the parallelized jobs don't seem to be reporting correctly to GH actions that the overall job is a success. Am I correct that this indicates that I've goofed my yaml config for the workflow? Here's my workflow config
  • p

    powerful-gigabyte-69168

    09/14/2022, 1:45 PM
    Parallelization - Individual containers not reporting success to top-level job
  • d

    dry-honey-20402

    09/14/2022, 2:12 PM
    Guys can anyone help me? I'm doing some tests with cypress But the tests are getting the hashs that are generated randomly, by the crack Is there any way that I can nullify this hash, or somehow make cypress detect these hashs?
  • f

    fancy-eye-69215

    09/14/2022, 3:05 PM
    Hi, everyone and have a good day! Maybe it was discussed here already. I have the following question. 1. For a long time I was using the Cookies.preserveOnce logic in
    beforeEach
    to preserve the particular cookies between the
    it
    blocks:
    Cypress.Cookies.preserveOnce('SESSION', 'CSRF-TOKEN', 'trustToken');
    2. One line did the job, these are the only cookies I need, and I don't need any other info between the test steps. 3. So, now this code is deprecated and should be replaced by
    cy.session
    4. What is the best way to preserve the same logic with
    cy.session
    if the only thing I need is to preserve these particular cookies without visiting the pages or performing any requests?
  • f

    flaky-beach-50459

    09/14/2022, 4:00 PM
    Hi! I'm getting timeout error on cy.wait on github pipeline. it's working fine on my local, but when it goes to github pipeline, then it fails. I've added more details to this SO question. https://stackoverflow.com/questions/73717738/cy-intercept-not-working-in-github-pipeline Please let me know if you have encountered a similar issue before. Thanks in advance.
  • c

    clever-table-91477

    09/14/2022, 4:32 PM
    Hi @swift-finland-73880 I'm automating Salesforce. What I do is running soap request to get sessionID, then appending this ID to the end of the URL, this way you will land on SF Home page seamlessly, already being logged. See below the sample of code:
  • c

    clever-table-91477

    09/14/2022, 4:34 PM
    Cypress.Commands.add("loginAsCCUser", () => { cy.session("todos", () => { cy.readFile("cypress/fixtures/soapRequestBodyTestCCUser.xml").then((requestBody) => { cy.request({ method: "POST", url: "https://yourURL/services/Soap/u/35.0", headers: { SOAPAction: "abc", ["Content-Type"]: "text/xml", }, body: requestBody, }).then((response) => { const sessionID = Cypress.$(response.body).find("sessionId").text(); cy.visit(
    https://yourCompany--qa.sandbox.my.salesforce.com/secur/frontdoor.jsp?sid=${sessionID}
    ); });
  • g

    gray-kilobyte-89541

    09/14/2022, 5:44 PM
    https://github.com/bahmutov/cypress-v10-preserve-cookie
  • f

    fresh-nail-30646

    09/14/2022, 5:56 PM
    Is anybody else having issues with Cypress Open UI crashing a ton on an M1 mac? I'm running a single spec file and it crashes like 3 out of 5 times. As far as I can tell the crash is happening here:
    Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
    Any help would be greatly appreciated.
  • c

    crooked-microphone-65524

    09/14/2022, 6:09 PM
    Good recommendation vedio
  • o

    orange-cricket-43285

    09/14/2022, 7:10 PM
    HI, Could someone please help me with these two questions: Do you know what is the minimum version of Angular that Cypress 10.7.0 needs? Do you know where I can check the version compatibility information? Thank you very much
  • b

    bitter-fountain-36713

    09/14/2022, 7:33 PM
    You can also create a new account before each test.
  • b

    bitter-fountain-36713

    09/14/2022, 7:34 PM
    But the tests are getting the hashs that are generated randomly, by the crack
    what does that mean exactly?
  • f

    fancy-eye-69215

    09/14/2022, 7:54 PM
    Yay! Exactly what I need! Thanks ☺️
  • h

    helpful-journalist-67147

    09/15/2022, 6:31 AM
    Hello Everyone, Is anyone trying cypress automation on salesforce?
  • h

    helpful-journalist-67147

    09/15/2022, 6:31 AM
    i noticed after recent release of salesforce 23, cypress is unable to login into salesforce
  • m

    magnificent-processor-78564

    09/15/2022, 8:39 AM
    Hey all, I've recently installed the playwright-webkit to enable testing against Safari. My suite of tests utilise a before each. On running I'm getting a "expecting an array or an iterable object but got [object Null]" error. Only occurs with webkit, chrome etc works as expected. Can anyone help please? Many thanks.
  • a

    acoustic-window-52776

    09/15/2022, 9:15 AM
    Hey everyone - has anybody managed to setup parallel tests on AWS CodeBuild ? I've been trying for the past day or so, following the cypress docs and looking at the Real World Example on github but no dice. Somehow everything looks fine on paper, but now all I get in my CodeBuild logs is the standard cypress starting stuff, then immediately finishing without even running a single test (or recording anything in the Cypress Dashboard)
  • f

    freezing-carpenter-51131

    09/15/2022, 9:37 AM
    I am using cypress and things are working pretty well except when I am trying to debug by flaky tests. The problem is that somehow cypress is trying to take over the console of the browser. It clears it when I click on to see screen shots and it attempts to close and reset it when there is a failure. How do I disable this, because I am losing the logs that explains my failures from the perspective of the app running under test.
  • f

    freezing-carpenter-51131

    09/15/2022, 9:57 AM
    Although I didn't specifically work with AWS, when I initially setup the same thing with circleci I forgot to put the cypress credentials i.e. CYPRESS_RECORD_KEY and specifying the ci-build-id (or making sure there are appropriate rules for the build-id inside of AWS I suppose)
  • f

    famous-garage-13206

    09/15/2022, 9:59 AM
    I am using cypress for app test and trying to use the function clock to set a specific date. I'm facing an issue with the date : when I put a date like 2022-08-30, I see the date 2022-09-30 in track request. Is it a known issue ? Or may it be a server error on my side ?
  • f

    freezing-carpenter-51131

    09/15/2022, 10:01 AM
    I know js has problems parsing ISO dates without time in UTC instead of local, but that would add a day and not a month. I.e. there is a difference between new Date('2022-09-30') and new Date('2022-09-30T12:00')
  • f

    famous-garage-13206

    09/15/2022, 10:03 AM
    I'm using date.UTC(year, month, day) to set the date. I don't think it is ISO conversion issue
  • f

    famous-garage-13206

    09/15/2022, 10:05 AM
    Exact code is cy.clock(date. UTC(year, month, day),['Date']) to set it.
  • f

    freezing-carpenter-51131

    09/15/2022, 10:09 AM
    Ah then the month has to be 0 index.
  • f

    freezing-carpenter-51131

    09/15/2022, 10:10 AM
    NOTE: > new Date(2022, 9, 2) 2022-10-02T04:00:00.000Z
1...145146147...252Latest