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

    narrow-artist-87113

    10/01/2022, 2:52 PM
    Please please help me!
  • r

    red-toddler-79937

    10/01/2022, 5:10 PM
    Does anyone know how I can make Cypress wait until the whole page is done loading? Because the page loads asynchronously.
  • r

    red-toddler-79937

    10/01/2022, 7:47 PM
    Does anyone know why my Cypress testid is invisible when
    *ngIf
    is applied in my HTML file?
  • p

    proud-breakfast-29892

    10/01/2022, 9:33 PM
    https://github.com/cypress-io/cypress/discussions/24078
  • s

    strong-lifeguard-62645

    10/01/2022, 10:21 PM
    Hi all. I think I found an error in the docs. In the first example here https://docs.cypress.io/api/commands/task#Usage it should say on('log',... right?
  • s

    strong-lifeguard-62645

    10/01/2022, 10:47 PM
    hm, maybe not. nevermind.
  • n

    narrow-artist-87113

    10/02/2022, 4:14 AM
    Any idea guys?
  • s

    stale-optician-85950

    10/02/2022, 12:17 PM
    Copy code
    describe('a google sign in test', () => {
      it('Login should happen', () => {
        cy.visit('https://internetcomputerservices.com');
    
        cy.contains('Dashboard').click();
        cy.contains('Sign in with Google').click();
    
        cy.origin('https://accounts.google.com', () => {
          cy.visit('/');
        });
      });
    });
  • n

    narrow-artist-87113

    10/02/2022, 12:37 PM
    Okay, thank you very much for your insight, can you give me any hint on what should I research on to get this solved?
  • n

    narrow-artist-87113

    10/02/2022, 12:46 PM
    I wonder what could be possible reason?
  • s

    stale-optician-85950

    10/02/2022, 12:56 PM
    If I do the following within
    cy.origin
    code:
    Copy code
    cy.origin('https://accounts.google.com', () => {
          cy.visit('/');
          cy.url().then($newUrl => {
            cy.log('newUrl', $newUrl);
          });
        });
    or
    Copy code
    cy.origin('https://accounts.google.com', () => {
          cy.visit('/');
          cy.get('body');
        });
    There is nothing in
    $newUrl
    It's like the new page is detached from Cypress runner. I tried a few different ways for you but after the redirect to https://accounts.google.com/v3/signin/identifier? your page is detached and I cannot access anything on it. I'd also be interested to hear input from other users here. Isn't
    cy.origin
    supposed to handle redirects?
  • s

    stale-optician-85950

    10/02/2022, 12:59 PM
    Similar issue here, but the fix worked for them: https://github.com/cypress-io/cypress/issues/22282
  • n

    narrow-artist-87113

    10/02/2022, 1:08 PM
    Is there any other way that i can "Sign in with Google"?
  • n

    narrow-artist-87113

    10/02/2022, 1:10 PM
    Can you please check if the cypress.config.js is creating any issue?
  • n

    narrow-artist-87113

    10/02/2022, 1:11 PM
    Is the way I declared experimentalSessionAndOrigin correct?
  • s

    stale-optician-85950

    10/02/2022, 1:12 PM
    That is the correct place to put that flag.
  • s

    stale-optician-85950

    10/02/2022, 1:13 PM
    Have you tried to log into Google first and then cy origin back to your test website? * https://www.google.com/ * click Sign In etc
  • n

    narrow-artist-87113

    10/02/2022, 1:16 PM
    No haven't actually tried it, lemme try!
  • n

    narrow-artist-87113

    10/02/2022, 1:18 PM
    But like to Signing in, I will have to be in internetcomputerservices.com first, right? Then I will be able to click "Sign in with Google"
  • d

    dazzling-pillow-26039

    10/02/2022, 4:18 PM
    Element itself is visible on a condition. See if that condition is met
  • n

    narrow-artist-87113

    10/02/2022, 4:24 PM
    Ravi bhai, please help me as well if you can
  • n

    narrow-artist-87113

    10/02/2022, 4:26 PM
    I did as you told
  • n

    narrow-artist-87113

    10/02/2022, 4:28 PM
    I am having this and after this it keeps buffering, I had to start by aborting whole process and again "npx cypress open"
  • n

    narrow-artist-87113

    10/02/2022, 4:29 PM
    It logs in google successful but after that the clicking on dashboard never happen
  • d

    dazzling-pillow-26039

    10/02/2022, 4:30 PM
    I think it should be other way around. you should use cy.origin with google.com. I know it is bit tricky to get it worked. If all else fails, use my repo and check the implementation. https://github.com/vrknetha/cypress-thirdparty-login
  • n

    narrow-artist-87113

    10/02/2022, 4:31 PM
    Yeah yeah initially it was that only
  • d

    dazzling-pillow-26039

    10/02/2022, 4:32 PM
    This is nothing to do with cy.origin.
  • n

    narrow-artist-87113

    10/02/2022, 4:32 PM
    https://stackoverflow.com/questions/73917253/timed-out-retrying-after-4000ms-the-command-was-expected-to-run-against-origin
  • n

    narrow-artist-87113

    10/02/2022, 4:32 PM
    Please refer this for better understanding of my question
  • n

    narrow-artist-87113

    10/02/2022, 4:34 PM
    I posted it, but no reply
1...159160161...252Latest