I'm trying to write E2E tests for my UI. In order to login, I'm using auth0 with social login - Github. I have tried several ways to get access token for Github:
Using cypress button clicking:
cy.visit("https://myapp.io/login");
cy.get('.auth0-lock-social-button-text').click();
// Redirect me into Github login page.
cy.get('#login_field').type(my_username);
cy.get('#password').type(my_password);
cy.get('.btn').click();
output: url: https://github.com/session
page content: Cookies must be enabled to use GitHub.
Is someone have example that explains how to do it?
Note: I don't want to use cypress-social-logins because I need it to pass CI.
Thanks.