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

    happy-dinner-13480

    09/01/2022, 9:49 AM
    I've found a issue: > This element
    <app-boolean-lock-toggle>
    is not visible because its parent
    <div.d-md-none.col-2>
    has CSS property:
    display: none
    That is sort of true, but the
    display: none
    value is overwritten by the
    display: block
  • d

    delightful-microphone-80931

    09/01/2022, 10:01 AM
    Hi All, the website, of which I need to automate UI, requires VPN access. How can I access the website with Cypress Experimental Studio or Cypress?
  • h

    handsome-lion-1748

    09/01/2022, 10:54 AM
    @delightful-microphone-80931 maybe an idea is to use something like tor that tunnels all your computer traffic and use cypress the normal way
  • s

    salmon-kite-6386

    09/01/2022, 10:55 AM
    hi there, trying to enable origin in cypress.config.js but still have error "cy.origin() requires enabling the experimentalSessionAndOrigin flag"
  • h

    handsome-lion-1748

    09/01/2022, 10:55 AM
    Guys I have a question: I remember I saw in an article (that I can't find anymore) that I can make Cypress run my backend inside of it too so it will have access to things my back end does like the email it sends to confirm a user's email?
  • g

    gray-kilobyte-89541

    09/01/2022, 11:19 AM
    If you use https://cypress.tips/search you can find something that looks similar. Plus https://slides.com/bahmutov/email-testing
  • a

    acceptable-hamburger-48790

    09/01/2022, 11:20 AM
    experimentalSessionAndOrigin this should be outside e2e block
  • s

    stale-optician-85950

    09/01/2022, 11:28 AM
    This is becoming a daily question. Scroll up a bit for the answer: https://discord.com/channels/755913899261296641/755913900024791046/1014602016464588871
  • a

    adamant-beard-17074

    09/01/2022, 12:05 PM
    I need to get the value of an attribute, how do I do that in cypress?
  • h

    handsome-lion-1748

    09/01/2022, 12:21 PM
    Full End-to-End Testing for Your HTML Em...
  • w

    wide-waiter-58637

    09/01/2022, 12:42 PM
    Yes it was passing before
  • w

    wooden-parrot-13301

    09/01/2022, 12:44 PM
    hi people, i'm struggling with a case where there's a function that calls
    windows.location.assign(url)
    I need to test if the url property is correctly defined, so i've disabled the chromeWebSecurity and i'm triggering the function and asserting the
    cy.location()
    . although it redirects to
    chrome-error://chromewebdata/
    How can i assert the right url?
  • w

    wide-waiter-58637

    09/01/2022, 12:46 PM
    Hello Emile, I had the same problem because I was setting it wrong in my config. Here is the correct way. e2e: { baseUrl: 'http://localhost:3000', experimentalSessionAndOrigin: true, setupNodeEvents: async (on, config) => {
  • w

    wide-waiter-58637

    09/01/2022, 12:46 PM
    Hope this helps
  • l

    limited-barista-33480

    09/01/2022, 1:32 PM
    Hi, @helpful-queen-71488 you can place this code before the describe for exception handling. see if this solves the problem Cypress.on('uncaught:exception', (err, runnable) => { // returning false here prevents Cypress from // failing the test return false });
  • l

    lively-painter-43059

    09/01/2022, 1:37 PM
    hello everyone! I'm having issues understanding how the new testIsolation option works. On https://docs.cypress.io/guides/references/configuration#e2e it says is an option for e2e configuration, but here https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Test-Isolation "The test isolation mode is a global configuration and can be overridden at the describe level with the testIsolation option." So, basically, we have to have
    experimentalSessionAndOrigin: true
    so we can keep the user logged in, does
    testIsolation
    legacy allow to not having the necessity to cy.visit() between each it()? And if so, do we have to have that option on e2e configuration or at a describe level? We've made some tests and the farthest we got was an error saying this option needed to be on "suite level". Thank you in advance!
  • a

    alert-area-86576

    09/01/2022, 2:43 PM
    Hello, I am getting cucumber preprocessor plugin error on migrating to 10.0 version
  • f

    freezing-piano-2792

    09/01/2022, 2:50 PM
    https://github.com/badeball/cypress-cucumber-preprocessor/issues/689
  • a

    able-monkey-72947

    09/01/2022, 7:17 PM
    Is there anything I can do to debug why a long chain of tests would fail when run all at once? They work individually if I block them out with
    .only
    , but when I run the while file I get 3-4 random ones each time that fail with something like
    cy.focus() failed because it requires a DOM element.
    , meaning a that a modal didn't open before Cypress looked for it?
  • a

    able-monkey-72947

    09/01/2022, 7:39 PM
    Hmm, it looks like putting a
    cy.wait(100)
    at the end my highest level
    beforeEach
    works... but I don't love that...
  • b

    bitter-fountain-36713

    09/02/2022, 4:47 AM
    It could be a combination of things such as not using enough assertions/intercepts for your tests or your tests are not dependent. It's hard to say without seeing what you are doing.
  • b

    blue-battery-71202

    09/02/2022, 7:44 AM
    Hi guys, How can I get an element containing an element with a specific attribute?
    Copy code
    html
    <label data="" class="checkbox">
     <span data-v="" class="checkbox-title-wrapper">
      <input data-v="" is-checked="true" type="checkbox" name="membership" class="sr-input">
      <span data-v="" class="check-icon" data-cypress-el="true"></span><span data-v="" class="fw:bold">Discount </span>
      </span>
     <span data-v="" class=" mt:8-rem fs:14-rem">Some Text
     </span><!----><!---->
    </label>
    I would want to get the
    label
    here that contains any element with
    name="membership"
    I know that I can get it like
    cy.get('.checkbox').contains('.checkbox', 'Discount')
    but thats only checking the text inside a child element, and yielding the provided parent.
  • h

    handsome-dress-30825

    09/02/2022, 8:30 AM
    Hi guys
  • s

    sticky-energy-17458

    09/02/2022, 9:01 PM
    hi, I have logged a dynamic I'd of the element , now could anyone tell me how to store it further so that I can use it in a way to invoke the value of this element through that logged dynamic id
  • a

    acceptable-hamburger-48790

    09/03/2022, 12:07 PM
    Did you check https://example.cypress.io/commands/aliasing#as
  • a

    acceptable-hamburger-48790

    09/03/2022, 12:07 PM
    and https://example.cypress.io/commands/misc#wrap
  • c

    crooked-eye-18474

    09/03/2022, 2:27 PM
    Hi, cypress process is not find it an user I got in my test db, the request is 404, but the user is in the db and the process makes other requests but that one is not reaching
  • c

    crooked-eye-18474

    09/03/2022, 2:43 PM
    I was trying to use an interceptor but the data I put in the response is not reflecting in the ui
  • r

    red-dawn-5427

    09/04/2022, 12:17 PM
    Hello guys, I have a vue application that makes requests to various different localhost servers with different ports. On my normal browser, the requests succeed. But within cypress, they fail without even hitting the server in the first place (ERR_EMPTY_RESPONSE). However, the application which is hosted in localhost:4804 for frontend and localhost:4803 for backend both work correctly, but other api servers on different ports fail. What is the problem? I'm guessing some kind of proxy or security setting in cypress.
  • r

    rich-pharmacist-74804

    09/05/2022, 6:44 AM
    Hello All! I have the dropdown list as below in the image. To select the option from the list I have my code as below:
    Copy code
    cy.dataCy('billingAccount').find('p-dropdown').click().then(opt => {
        cy.wrap(opt).children().children().find('li').contains('BA969048 -  - Nauenstrasse  55,  4052  Basel,  Switzerland').click()
      })
    cy.dataCy('billingAccount').find('span').should('contain', 'BA969048 -  - Nauenstrasse  55,  4052  Basel,  Switzerland')
    My code works perfectly but the problem is the option is not getting patched after the
    click()
    event happens so my last line code failed. Your help is highly appreciated. Thank you
1...949596...192Latest