https://cypress.io logo
Join Discord
Powered by
# e2e-testing
  • m

    melodic-easter-1976

    09/23/2022, 8:10 PM
    Running into an issue getting Github actions with Cypress e2e testing working. I have a dependency that is a direct git repo/branch. In the workflow I'm getting the error when running cypress while fetching packages.
    Copy code
    error Command failed.
    Exit code: 128
    Command: git
    What is the correct way to get around this issue? Seems it can't access this github repo as a dependency (it is a private repo - but the access is in the url in my package.json)
  • l

    limited-barista-33480

    09/24/2022, 12:37 AM
    Hello guys, can someone help me with this error, I'm trying to run a cypress test that contains this type of aws certificates. and I do not identify what problem it is or how I can solve it. I made some configurations of Cypress Webpack, but it does not run for me. Error: Webpack Compilation Error ./cypress/cert_pre/AmazonRootCA1.pem 1:4 Module parse failed: Assigning to rvalue (1:4) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. -----BEGIN CERTIFICATE----
  • n

    nutritious-megabyte-64190

    09/24/2022, 2:45 AM
    im using this https://www.npmjs.com/package/cypress-iframe on 10.8.0 with no issues
  • c

    creamy-baker-71429

    09/25/2022, 3:12 PM
    Hi, guys how to handle captcha in cypress?
  • s

    stale-optician-85950

    09/25/2022, 6:34 PM
    CAPTCHA would be useless if that was possible. Ask your developers to create a workaround on test environments i.e. passing a cookie containing specific authentication credentials
  • c

    creamy-baker-71429

    09/26/2022, 9:49 AM
    Thanks @stale-optician-85950
  • s

    stale-helicopter-67510

    09/26/2022, 12:38 PM
    Hi guys, trying to set up auth0 with the newer
    cy.origin
    and
    cy.session
    commands, yet seem to be stumbling a bit.
    Copy code
    Cypress.Commands.add("loginToAuth0", (email, password) => {
      const args = { email, password };
      cy.session(args, () => {
        cy.visit("/"); // root redirects to auth0 
        cy.origin("https://ORGANISATION.eu.auth0.com", () => {
          cy.wait(20000); // making sure not a loading issue
          cy.get("input"); // no selectors work, but one exists
        });
      });
    });
    Issue being with this current setup is that no input is detected, even though I pause and i can see from the screen that an input exists (the organization input). It even exists when I try and inspect element. So what could be causing the input to not appear even though the screen shows it and it exists in the DOM. I found a similar stackoverflow issue (https://stackoverflow.com/questions/73660286/cy-origin-unable-to-find-any-elements-on-auth0-page) but the only solution there is to remove the
    cy.origin
    command and that does indeed work, but isnt that a bit counterintuitive?
  • i

    important-fish-21193

    09/26/2022, 1:39 PM
    HI Guys, I have a web table with number of rows with unique column with date created. Rows gets added or deleted based on the action performed on the page. I can certainly assert that a row has been added to the table because its rendered on the page. But how do I test that row has been deleted and does not exists on the page? Any help would be much appreciated. Thanks.
  • m

    mysterious-belgium-25713

    09/26/2022, 2:10 PM
    Hi Ivar, I found a blogpost from Gleb. Here he counts the rows and asserts them. I think you can utilize the same way to add rows and expect that count. And if you delete do the same. https://glebbahmutov.com/cypress-examples/7.7.0/recipes/number-of-rows.html
  • i

    important-fish-21193

    09/26/2022, 3:39 PM
    Thanks Xavier, thanks for your prompt response. I could have been a bit more clearer on my question. In my case table always displays 10 rows per page as data spread across different pages. if a row is deleted from the first page, table is updated by pushing first record from next page to the first page. So it always got 10 records on the front page. Is there any other approach that we could use?
  • h

    helpful-queen-71488

    09/26/2022, 3:55 PM
    A user uses geoloc Hello everyone, I have a problem that has been going on for a while and I can't seem to solve it. I am on a homePage, and when I click on the connection button, I am redirected to the same page but with another Url (the url is dynamic, it is opened with an ID). During this change, there are several API calls that are made. So the problem occurs when I want to enter my email address, I get this error: "The following error is from your application code, not Cypress. This was caused by an unhandled promise denial. (intermediate value) is not a function When Cypress detects undetected errors from your application, it automatically fails the current test. This behavior is configurable and you can choose to disable it by listening for the uncaught:exception" I tried several techniques (url:changed, force:true, putting the url in a variable and then recalling it). But I can not. do you think you can help me? Thank you system by locate me button
  • m

    mysterious-belgium-25713

    09/26/2022, 4:21 PM
    Hmm, if the list is generated by an api/backend call you could wait on the request and then assert the length of the data.
  • h

    handsome-bear-70892

    09/26/2022, 5:10 PM
    we've recently migrated our development workflows to the coder.com platform, we can easily run headless tests but i'm struggling to find a way to have the test runner open and run tests so I can see what happens if/when things go wrong
  • d

    dazzling-pillow-26039

    09/26/2022, 5:53 PM
    It can be due to various reasons 1. The resources available to run in open 2. How many tests are being executed in a single file 3. You can try reducing with number of tests in memory to less in cypress.config.js
  • h

    handsome-bear-70892

    09/26/2022, 5:57 PM
    Copy code
    [13553:0926/175523.096322:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 13755: Permission denied (13)
    [13755:0926/175523.148120:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
    [13553:0926/175524.350070:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 13846: Permission denied (13)
    are the error msgs in the console, it just hangs after the last error message
  • d

    dazzling-pillow-26039

    09/26/2022, 6:10 PM
    This is a chromium-related issue when running on containers. This is again related to memory. You can give it a try by the work around mentioned in this URL https://stackoverflow.com/questions/59629575/cypress-tests-failing-because-chrome-renderer-is-crashing-in-ci-using-drone
  • h

    handsome-bear-70892

    09/26/2022, 6:44 PM
    interesting. I doubled the container resources and tried adding the workaround and still no good, resource consumption isn't a problem
  • s

    steep-morning-65056

    09/26/2022, 7:39 PM
    Hello - I am instrumenting my code for code coverage - but it continues to skip .scss files which are required for the application to compile - any ideas/solutions?
  • s

    steep-morning-65056

    09/26/2022, 9:27 PM
    --extension .scss
    worked!
  • g

    gentle-byte-6745

    09/26/2022, 10:04 PM
    @here Can I use Cypress for Scala projects?
  • g

    glamorous-country-57678

    09/26/2022, 11:26 PM
    Hi everyone, I am new to running Cypress with Linux and wondering why I get this terminal output after following the Docs here: https://docs.cypress.io/guides/getting-started/installing-cypress#What-you-ll-learn I also installed within the root of the project so not sure why this is happening.
  • m

    mysterious-belgium-25713

    09/27/2022, 5:14 AM
    Just wondering how did you install it in your project. And i also see it's looking for cypress in your root directory. Why are you running your build/test as root and not as your normal user.
  • m

    mysterious-belgium-25713

    09/27/2022, 5:16 AM
    I don't think you should use sudo to run yarn commands
  • v

    victorious-father-41976

    09/27/2022, 9:54 AM
    > I don't think you should use sudo to run yarn commands exactly, here's a great post explaining more on why you shouldn't: https://medium.com/@ExplosionPills/dont-use-sudo-with-npm-still-66e609f5f92
  • u

    user

    09/27/2022, 10:08 AM
    Hi, This is a checkbox filed. When I write something invalid such as 'abc', it shows 'No options'. How to locate 'No options' using cypress.
  • u

    user

    09/27/2022, 10:08 AM
    Please help me
  • m

    most-baker-72677

    09/27/2022, 11:44 AM
    Hello all 👋 ... I am currently working on transitioning our framework away from cucumber cypress to standard cypress both using cypress
    10.x
    . I have settled on using nested projects in repo for managing the migration over so that the current cucumber tests can still provide value. Are there any docs that talk about this kind of migration? talks about specific challenges or work arounds? Much obliged ! 😎
  • m

    mysterious-belgium-25713

    09/27/2022, 11:54 AM
    Do you have a live example of this dropdown box. Is this triggered by an API call or is no options another element in your DOM tree.
  • g

    glamorous-country-57678

    09/27/2022, 12:55 PM
    So what should I use? The permissions are denied when running without sudo
  • m

    mysterious-belgium-25713

    09/27/2022, 12:57 PM
    It could be that you installed yarn as a sudo and not as a normal user. And that is why you get this. What you could do is is if you have to use sudo is to also install cypress as sudo. sudo yarn run cypress install
1...106107108...192Latest