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

    famous-restaurant-30435

    07/20/2022, 12:59 AM
    But according to your selector, Cypress cant find the child element of the node which makes sense as it appears to be empty in your screenshot. I dont know what node you are trying to select, so I dont know if that actually answers your question or not
  • r

    rhythmic-agency-74865

    07/20/2022, 1:22 AM
    i think i might be using nth-child wrong there, thank you again for this insight. i am pretty new to javascript and cypress so i very much appreciate it
  • f

    famous-restaurant-30435

    07/20/2022, 1:24 AM
    Ya take your time and figure it out. We’re here to help.
  • a

    adventurous-afternoon-66082

    07/20/2022, 7:26 AM
    Hellos!! I am doing a PoC using Cypress for my application my application includes iFrames.....When I click a submit button in iFrame, a new table suppose to be loaded within iframe but the application is getting logged out after clicking the submit button Can anyone help me with this issue i notice that the application is getting logged out while the iframe is reloaded.. your help would be appreciated
  • a

    adventurous-afternoon-66082

    07/20/2022, 7:26 AM
    anyone working with iframes using Cypress?
  • g

    gifted-zebra-3749

    07/20/2022, 9:13 AM
    You'll need to create a custom function to deal with iFrame
  • a

    adventurous-afternoon-66082

    07/20/2022, 10:12 AM
    I am using cypress-iframe to identify objects inside iframes which is working.. The problem is that when i fill all the fields in iframe and submit it. The page is getting reloaded instead of only the iFrame. The application goes back to login page.
  • a

    adventurous-afternoon-66082

    07/20/2022, 10:12 AM
    How can i wait till the iframe is loaded and stop the page load
  • a

    adventurous-afternoon-66082

    07/20/2022, 10:12 AM
    ?
  • l

    lively-twilight-96693

    07/20/2022, 2:14 PM
    Hi I am new to Cypress. I am stuck in installation. Can any one help Node version:v14.0.0 Do i need to upgrade?
  • h

    handsome-lion-1748

    07/20/2022, 2:26 PM
    @lively-twilight-96693 try something like in this link: https://stackoverflow.com/questions/68208497/installing-cypress-stuck-on-unzipping-0
  • h

    handsome-lion-1748

    07/20/2022, 2:29 PM
    @lively-twilight-96693 what is the npm version?
  • m

    melodic-egg-83620

    07/20/2022, 2:51 PM
    Hey all, I'm at a complete deadstop in migrating my project from Vue 2 to 3, which I swapped from vue-cli to Vite. As far as my app functionality, perfect; however, I CANNOT get Cypress to load my hundreds of test files because of "webpack compilation error"'s. I read that Cypress compiles its e2e tests with Webpack by default, but it's throwing errors for my non-Cypress javascript files' use of
    import.meta.env
    because
    import
    should be used at the top-level and for having comments as the first line in some Vue files. I've been told Cypress doesn't compile your actual application, it just hits it at localhost based on it being running locally; but these errors don't make much sense to me since my local dev server is running my application without error. I know it's a mix of a Cypress and Vite question, but I'd really appreciate anyone who has Vite and Cypress running for e2e tests in their application.
  • w

    wooden-truck-45245

    07/20/2022, 3:07 PM
    Hi I installed the cypress-example-kitchensink-master cy.visit('http://localhost:8080/todo') In VS code I click on visit to find its definition, it leads me to cypress-example-kitchensink-master/node_modules/cypress/types but there is no definition of that function. Where are the definitions of the cypress commands, their source code ?
  • a

    average-van-92212

    07/20/2022, 4:14 PM
    Hey there everyone, I'm new to Cypress and so far have been enjoying it a lot. I've ran into an issue with some of my e2e testing. I'm using the intercept/redirect method to change calls from a API to a virtual service I've set up. Everything was working with GET endpoints, but when accessing a POST endpoint the redirect continues to change the method to a GET(resulting in a 405 error). I've tried to force the method to POST within the intercept method; however, that seems to have no impact. I appreciate any and all help, thanks!
  • c

    curved-father-48262

    07/20/2022, 4:40 PM
    I am working on getting @freezing-piano-2792-cucumber-cypress-preprocessor working. When I run my regular spec files everything is working on V10. When I run my feature files i get Error: Webpack Compilation Error ./cypress/e2e/Cucumber/eventTypeInternal.feature 1:15 Module parse failed: Unexpected token (1:15) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. S I have copied the 2 bits for my package.Json file, and edited my steps import to const { Then, Before, Given, And, After, } = require("@freezing-piano-2792/cypress-cucumber-preprocessor"); my plugins index.js has const cucumber = require("@badeball/cypress-cucumber-preprocessor").default; module.exports = (on, config) => { config = dotenvPlugin(config); on("file:preprocessor", cucumber()); return config; }; any help appreciated!
  • w

    wonderful-salesclerk-27570

    07/20/2022, 5:00 PM
    Hello, how log a value of css element? cy.get('.category-products__cards').should('have.css', 'grid-template-columns', 'value')
  • w

    wonderful-salesclerk-27570

    07/20/2022, 5:02 PM
    Should function doesn't work, it only compares the computed value with the value in .should
  • g

    gentle-thailand-10072

    07/20/2022, 10:34 PM
    Hey all, I'm wrestling some kind of browser/Cypress connection bug. I restarted my computer the other night, and immediately upon reboot, found I could no longer get the Cypress test runner to connect to Chrome (or any browser). I get a series of "Still waiting to connect to Chrome, retrying in 1 second", until it gives up. Turning on the debug log reveals the connection is being refused, presumably by Chrome: Error: connect ECONNREFUSED 127.0.0.1:55804. Problem occurs with browser specified at the command line (Chrome or Firefox), or no browser specified (Chromium), no applications running (so no other Chrome instances running), either via npm command or directly by calling the cypress binary. I've cleared the Cypress cache, reverted to an older version (I'm on 9.7, tried 9.6), deleted all Cypress files in ~/Library, re-cloned my repo from origin... nothing. Cypress just won't connect to a browser. Any ideas?
  • m

    mysterious-motherboard-13344

    07/21/2022, 7:47 AM
    Is Chromium browser already installed in root folder?
  • f

    freezing-piano-2792

    07/21/2022, 9:34 AM
    @curved-father-48262 I recommend following any of the official examples, https://github.com/badeball/cypress-cucumber-preprocessor/tree/master/examples
  • m

    most-motorcycle-66425

    07/21/2022, 9:37 AM
    hello, I downloaded and configured cypress, when I run my first test, it says test not found. Please help, there is no information on the Internet at all. I attach screenshots, versions, code. folders in cypress
  • e

    early-computer-34425

    07/21/2022, 9:40 AM
    if we have cy.get('td span').should('have.attr', 'dr-dea-kan', 'hallu'); the td span will find severtal hits, only one place has the dr-dea-kan attribue, should it get a hit? or are the other spans not having the attribute that makes it fail? does it expect all found spans to have the attribute for it it success?
  • m

    mysterious-motherboard-13344

    07/21/2022, 9:44 AM
    Probably something is wrong with your index.js file in support folder
  • h

    helpful-judge-81755

    07/21/2022, 3:24 PM
    HI! I installed cypress via Vs code uses npm cypress install then i wrote npx cypress open and i watch this(photo). what do i have to do to open the folder "integration" now i don't have it. Thanks
  • a

    adorable-smartphone-87280

    07/21/2022, 4:12 PM
    The
    integration
    folder has now been replaced by two folders,
    e2e
    and
    component
    . You should probably do some reading on the changes in Cypress 10 to get caught up.
  • f

    faint-table-6487

    07/21/2022, 9:37 PM
    Hello, Im working on testing a react app, Im trying to access redux state and using that information for my next action, I am able to access the state with the code below, but It seems to be skipping my cy.get commands which are using the redux state to decide my next action.
    Copy code
    cy.window()
          .its('store')
          .invoke('getState')
          .then(state => {
            console.log(state, 'state');
            const georefMarkers = state.location.surveyPoints;
            const selectedMarker = georefMarkers[1];
    
            //the next two commands are skipped...
            cy.get('.autoCompleteMenu')
              .contains(selectedMarker.name)
              .click();
    
            cy.get('[data-cy=right-side-btn]').click();
    
            expect(state.windowsArr[0].position.surveyMarkerA)
              .to.be.a('object').........
             
          });
  • s

    square-pager-46841

    07/21/2022, 11:26 PM
    Hello! I am developing cypress with snapshot plugin library and am currently having a problem with: -hiding scrollbars -when I interact with the DOM (type on an input etc...) the screenshot appears to be zoomed in, hence the scrollbars that appear. Anyone know how I can take care of this?
    w
    • 2
    • 15
  • p

    plump-controller-8764

    07/22/2022, 9:10 AM
    Hi all, when I try to configure E2E testing in the Cypress environment, I get an error. I click the button to configure and an error appears. First 'Initializing Config...' is displayed and then the error appears or now the loading circle is displayed all the time. The Error:
    Copy code
    Your project does not contain a default supportFile. We expect a file matching cypress/support/e2e.{js,jsx,ts,tsx} to exist.
    
    If a support file is not necessary for your project, set supportFile to false.
    https://on.cypress.io/support-file-missing-or-invalid
    Other infos: Windows 10 npm 8.5.5 node 16.13.0
  • m

    magnificent-finland-58048

    07/22/2022, 1:47 PM
    https://learn.cypress.io/tutorials Robert just updated that content for Cy 10. Might be worth going through
1...112113114...252Latest