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

    cold-cat-63632

    02/27/2023, 6:53 PM
    i want to access this alias in another file. any help will be much appreciated
  • c

    cold-cat-63632

    02/27/2023, 7:01 PM
    do i need to write text to a file and then access it from there or there is any other more efficient way of doing this?
    d
    • 2
    • 4
  • p

    powerful-pencil-90907

    02/28/2023, 9:31 AM
    Hello, everyone! Since Chrome released the
    real
    headless mode (https://developer.chrome.com/articles/new-headless/), does the Cypress team plan to implement it?
  • p

    powerful-pencil-90907

    02/28/2023, 9:32 AM
    I can open an issue on GitHub if needed. **Edit**: Opened an issue on GitHub - https://github.com/cypress-io/cypress/issues/25972.
  • f

    freezing-scientist-25758

    02/28/2023, 1:50 PM
    Is someone able to assist me today?
    e
    • 2
    • 3
  • p

    powerful-journalist-49461

    02/28/2023, 2:28 PM
    https://www.npmjs.com/package/cypress-cucumber-preprocessor Try to use this one, if you didn't already...
  • w

    wooden-helicopter-64866

    02/28/2023, 2:54 PM
    Thank you for sharing @powerful-journalist-49461 I will go through this one, If I get any issues i will reach out to you
  • s

    shy-minister-18411

    02/28/2023, 6:40 PM
    Older post I made but didn’t get any feedback on it, anyone have any ideas here? https://discord.com/channels/755913899261296641/1068056102295588975
  • d

    damp-oxygen-34939

    02/28/2023, 8:04 PM
    Hello all . I am trying to set up Mailosaur on Cypress , and I think I have tried everything in posts that mention about setting up Cypress Mailosaur . I am getting this error . Can anyone point to any obvious things that I may need to try .I have following configs : I have set up Cypress_Mailosaur_API_Key in cypress.json file . Have the server domain and server Id declared and available in the test file . I can paste the code and settings for better idea
  • d

    damp-oxygen-34939

    02/28/2023, 8:05 PM
    https://github.com/mailosaur/cypress-mailosaur Referred to this doc and several other docs
  • g

    gray-kilobyte-89541

    02/28/2023, 8:06 PM
    https://cypress.tips/search
  • a

    ambitious-monkey-72386

    03/01/2023, 5:50 AM
    Thanks Mike . That helps
  • w

    wooden-helicopter-64866

    03/01/2023, 8:48 AM
    Hi @powerful-journalist-49461 Have u tried this cucumber with new version of Cypress?
  • p

    powerful-journalist-49461

    03/01/2023, 8:54 AM
    Hi, I'm using this version: "cypress": "^12.5.1",
  • p

    prehistoric-market-22707

    03/01/2023, 4:13 PM
    Hi, I need to intercept http call that made by windows nativ app, I try do this with Cy. intercept but I see that Cypress know intercept only http that he do.. someone has idea how I intercept http call that made by another app?
  • Hi everyone Does Cypress support
    c

    curved-pager-86474

    03/01/2023, 7:40 PM
    Hi everyone. Does Cypress support navigating to third party pages? On my project, Strype payment is used (after clicking the Pay button), a transition is made to the payment page. My existing tests no longer open the next page after clicking on the Pay button. Thank you in advance for answers
    d
    p
    s
    • 4
    • 20
  • i

    incalculable-rainbow-43330

    03/02/2023, 10:53 AM
    Delete API with Body is not working with cy.Request whereas same API in Postman is working fine. so is there anything i need to add as part of this. const DeleteBody = [ { "id": 5, "type": 3 } ]; cy.request({ method: "DELETE", url: baseURL + "/Alias/Delete", form: true, headers: CoreHeader, body: DeleteBody, }).then((response: any) => { } Iam getting 415: Unsupported Media Type Any suggestions to handle this team?
  • g

    gray-kilobyte-89541

    03/02/2023, 11:40 AM
    your headers are incorrect?
  • i

    incalculable-rainbow-43330

    03/02/2023, 11:42 AM
    @gray-kilobyte-89541 const CoreHeader = { apikey: "apikey" } This was the constant value which is being used by our BE API
  • f

    future-hydrogen-36729

    03/02/2023, 2:15 PM
    Just wanted to pop in to say that I decided to try using Cypress E2E tests for TDD as my only testing for my current side project, and I'm enjoying it! I know I will want to use this project, so it's worth testing it. But due to the experimental nature of it, a lot of internals might change, so I'm hesitant to write component tests of any kind. I just did a major architectural refactor that my Cypress suite supported. And I might even need to switch frontend frameworks someday; Cypress E2E tests will cover that change too! (I do think I'll add true unit tests for pure JS functions that I know will persist regardless of the framework.)
  • g

    gray-kilobyte-89541

    03/02/2023, 3:19 PM
    1) because Cypress component tests operate like E2E tests after mounting, it is a good choice, even if there is a major refactoring 2) even for pure JS unit tests I use Cypress, because debugging is easier
  • f

    future-hydrogen-36729

    03/02/2023, 3:23 PM
    Well, by "refactoring" in this case I mean possible rearrangements at any level of the app. To have a Cypress component test that would support that, I would need to component test only the top-level component of my app. And at that point (barring minor technical differences) it's effectively an end-to-end test anyway. This in addition to the framework-agnostic benefit I mentioned in the previous post.
  • c

    cold-eye-66538

    03/02/2023, 3:31 PM
    Hi all, I am seeing a lot of job applications requesting experience testing react applications specifically. I have worked on angular applications. Is there any learning curve for testing react applications? It should be similar.
  • d

    dazzling-thailand-9844

    03/02/2023, 3:50 PM
    Hi, pay attention to the values of headers that Postman adds automatically: Content-Type and Content-Encoding.
  • l

    late-energy-41069

    03/02/2023, 5:00 PM
    Is anyone successfully using google auth to login to their app? I am using cy.origin to login with the UI, but when it redirects back to my app I always get a 403 from Google.
    • 1
    • 1
  • m

    mysterious-psychiatrist-29678

    03/02/2023, 9:57 PM
    hi again. is that a way to use two baseUrl or something similar in order to avoid passing full URL but rather just suffix? I need to deal two different domains in one test (Kubernetes cluster and app running on) so need to switch "context" several times. I set baseUrl for app domain but need shorten Kubernetes cluster's URL also. hostnames arriving in env vars by CI pipeline. what came to my mind is cy.origin() but doesn't let me use custom commands within cy.origin().
    Copy code
    cy.origin(Cypress.env("k8sBase"), () => {
    
                const createK8sDeploymentUrl =
                "/namespaces/deployments";
              
            cy.createDeployment(createK8sDeploymentUrl, Cypress.env("k8sToken"));
            })
    other idea is just setting baseUrl any time I switch context. any idea is much appreciated.
  • i

    incalculable-rainbow-43330

    03/03/2023, 10:27 AM
    Upon using failOnStatusCode: false, in cy.request I can see some strange behaviour though i sent Content-Type as application/json I can see in response its showing request Header is not correct can you suggest from your end if there is any thing which i can correct it I also changed const CoreHeader = { "apikey": "apikey", 'Content-Type': 'application/json' } please find the response upon using failOnStatusCode as follows which also includes request sent. { "body": { "type": "https://tools.ietf.org/html/rfc7231#section-6.5.13", "title": "Unsupported Media Type", "status": 415, "traceId": "00-ec747d22a6d1d639b16f1b922d62cc0d-8df31bbae40ca9c9-00" }, "headers": { "content-type": "application/problem+json; charset=utf-8" "transfer-encoding": "chunked", "request-context": "appId=cid-v1:0a62bd16-0df1-4c83-866b-e8b12e7d08d3" }, "status": 415, "statusText": "Unsupported Media Type", "isOkStatusCode": false, "requestHeaders": { "Connection": "keep-alive", "apikey": "qull", "Content-Type": "application/x-www-form-urlencoded", ----- }, "requestBody": "0%5Bid%5D=5&0%5Bname%5D=ASC%204&0%5Btype%5D=3", "duration": 264, "allRequestResponses": [ { "Request Body": "0%5Bid%5D=5&0%5Bname%5D=ASC%204&0%5Btype%5D=3", "Request Headers": { "Connection": "keep-alive", "apikey": "qc_full", "Content-Type": "application/x-www-form-urlencoded", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36", }, "Request URL": "https:abcd.com/api/Students/Delete", "Response Body": "{\"type\":\"https://tools.ietf.org/html/rfc7231#section-6.5.13\",\"title\":\"Unsupported Media Type\",\"status\":415,\"traceId\":\"00-ec747d22a6d1d639b16f1b922d62cc0d-8df31bbae40ca9c9-00\"}", "Response Headers": {.....}, "Response Status": 415 } ] }
  • g

    gray-kilobyte-89541

    03/03/2023, 11:34 AM
    I don't think you set the right header, since the error shows
    Content-Type": "application/x-www-form-urlencoded"
  • i

    incalculable-rainbow-43330

    03/03/2023, 11:49 AM
    @gray-kilobyte-89541 I have set it like this and you can see i have set content type accordingly but still im getting in response that Content-Type": "application/x-www-form-urlencoded" even iam not sure where it is resetting again to Content-Type": "application/x-www-form-urlencoded" 😦
  • g

    gray-kilobyte-89541

    03/03/2023, 12:41 PM
    why do you use
    form: true
    there?
1...114115116...127Latest