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

    brief-ghost-86635

    09/30/2022, 10:31 AM
    Hi Daniel..Did you find any solution for this issue?
  • c

    careful-insurance-62240

    09/30/2022, 10:33 AM
    We have to avoid using And and But in v13
  • c

    careful-insurance-62240

    09/30/2022, 10:35 AM
    Hope this blog helpful Cypress 10+Cucumber https://qaautomationlabs.com/how-to-integrate-cucumber-in-cypress-10/
  • m

    mysterious-belgium-25713

    09/30/2022, 10:37 AM
    Yeah I know, thats why i said to him if he has to many tests to refactor, use v12.2.0 and later on refactor al the test if you want to upgrade to v13
  • c

    cool-toothbrush-53313

    09/30/2022, 1:27 PM
    Any thoughts on this error : TypeError: Cannot read properties of undefined (reading 'length'). I have login script in commands and trying to use for login. It works once in a while but most of the time it is giving above error
  • f

    freezing-carpenter-51131

    09/30/2022, 1:47 PM
    I am still getting Oh snap messages when running tests. Is this something that's understood and will eventually get fixed or is it just something we'll have to live with? Some of my tests I cannot run locally at all unless I run them headless.
  • g

    glamorous-lighter-30340

    09/30/2022, 1:52 PM
    Have you tried reducing the numoftestskeptinmemory https://docs.cypress.io/guides/references/configuration
  • l

    lively-library-21721

    09/30/2022, 2:23 PM
    Hello i am new to cypress, i need help on how to handle geolocation permission. When running on headed or headless, my test always failed due to unable to allow location permission. Is there a way to handle the geolocation popup?
  • a

    acceptable-hamburger-48790

    09/30/2022, 2:26 PM
    Did you try this https://filiphric.com/testing-geolocation-with-cypress
  • l

    lively-library-21721

    09/30/2022, 2:28 PM
    Not yet, lemme check
  • b

    big-dentist-53806

    09/30/2022, 3:14 PM
    Hello everyone! I'm trying and learning cypress but I bumped into an installation error. Already tried the clear cache and other solutions I can find thru the internet but the error still persists. Please help me 😭
  • l

    lively-library-21721

    09/30/2022, 3:21 PM
    Thank you, after installing the plugin, it worked in headed mode. But when i tried to run in headless, it failed. It seemed the plugin not working in headless mode. Do you have any solution?
  • a

    acceptable-hamburger-48790

    09/30/2022, 3:23 PM
    I see this one from @gray-kilobyte-89541 https://glebbahmutov.com/blog/cypress-geolocation/ give it a go
  • m

    mysterious-belgium-25713

    09/30/2022, 3:28 PM
    Did you also try npx cypress install --force.
  • l

    lively-library-21721

    09/30/2022, 3:43 PM
    Nice, will check it
  • d

    dry-battery-91871

    09/30/2022, 4:36 PM
    Hi everyone! My team is looking to do some semi-automated testing of our application, which is SW mounted on HW. We would like to do something like run through part of an automated test, then prompt the tester (via cy.log() or something similar) to do something with the HW, such as plug in an add-on component, then continue with the rest of the test. Is there a way to wait for user input, such as a keypress, when running a test headlessly via cypress:run? Something like the screenshot below, where the "log Press any key to continue" would be replaced with a command that actually waits for user input.
  • s

    silly-lizard-54732

    09/30/2022, 5:39 PM
    Not sure why this environment variable is not working config.ts import { defineConfig } from "cypress"; export default defineConfig({ e2e: { setupNodeEvents(on, config) { // implement node event listeners here }, env: { releasename: 'Sisyphus' }, test.cy.ts cy.get('[id="hc-input-4"]') .type('{Cypress.env('releasename')}')
  • g

    gray-kilobyte-89541

    09/30/2022, 6:41 PM
    cy.pause
    ?
  • g

    gray-kilobyte-89541

    09/30/2022, 6:41 PM
    https://glebbahmutov.com/blog/cypress-v10-env/
  • f

    freezing-carpenter-51131

    09/30/2022, 8:07 PM
    Yes of course but it also makes the tests that fail pretty useless because only 0 works reliably
  • m

    many-carpenter-90436

    09/30/2022, 8:49 PM
    Hey all! I'm having trouble getting set up with Component testing for Sveltekit + Vite. Even with a barebones spec file & component, I just get '500: Not found'. Same result with the skeleton Sveltekit app installed w/
    npm create vite@latest
    . Is Sveltekit not supported? Or what's going wrong here, I'm quite confused... edit: The import path in this screenshot isn't correct but even with that fixed, same issue.
  • d

    dry-battery-91871

    09/30/2022, 10:36 PM
    Is there a way to exit cy.pause() when running headlessly?
  • f

    fancy-mechanic-10638

    09/30/2022, 11:40 PM
    There's not a route. It's trying to intercept a call to the server. I'm just using the same path, without wildcard, that I do in the e2e tests.
  • g

    gray-kilobyte-89541

    10/01/2022, 12:24 PM
    during
    cypress run
    I believe the
    cy.pause
    is ignored
  • b

    big-dentist-53806

    10/01/2022, 1:01 PM
    Hello Sir. Thank you for the advice. After running the said command, it successfully re-downloaded cypress. Then again encountered an error. Then I read from my other post that before opening I should run npx cypress verify, after that run npx cypress open. And it worked successfully. Thank ypu so much for the support sir. I can finally resume learning
  • r

    red-toddler-79937

    10/01/2022, 2:31 PM
    HTML
    Copy code
    html
    <mat-tab data-testid="new-tab-title">
    ```Does anyone know how I can fix this?
    
    E2E:
    ```ts
    describe('Restaurant orders overview', () => {
        beforeEach(() => {
            initializeDesktop();
            login();
            addNewRestaurantProduct(1)
            cy.visitPage('orders', 'restaurant-orders');
        });
    
        describe('New orders', () => {
            it('Should have at least one new order', () => {
                cy.findAllByTestId('new-tab-title');
            });
        });
    Does anyone know why it can't find the Cypress test id?
  • n

    narrow-artist-87113

    10/01/2022, 2:48 PM
    Can someone please help me, I am being frustrated for 3 days now because of the error: https://stackoverflow.com/questions/73917253/timed-out-retrying-after-4000ms-the-command-was-expected-to-run-against-origin
  • n

    narrow-artist-87113

    10/01/2022, 2:48 PM
    I posted the question, but no reply!
  • n

    narrow-artist-87113

    10/01/2022, 2:49 PM
    I am receiving this error: Timed out retrying after 4000ms: The command was expected to run against origin https://google.com but the application is at origin https://google.com
  • n

    narrow-artist-87113

    10/01/2022, 2:50 PM
    it.only('Login should happen', ()=>{ cy.viewport(1280, 720) cy.visit('https://thewesbsite.com') //not my actual website //after entering website, we click on dashboard cy.contains('Dashboard').click() //then we click on Sign in with google cy.contains('Sign in with Google').click() //on clicking we are transferred to accounts.google.com page cy.origin('https://google.com', ()=>{ cy.get('[aria-label="Email or phone"]]').click().type('uasjfn1000@gmail.com') }) })
1...158159160...252Latest