Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facebookSocialLogin doesnt enter the complete facebook username #90

Closed
kalebhushan opened this issue Mar 10, 2021 · 5 comments
Closed

Comments

@kalebhushan
Copy link

kalebhushan commented Mar 10, 2021

I am using cypress-social-logins to authenticate a facebook user to my website exporting the FacebookSocialLogin task from plugins/index.ts. However, the username gets cut short as you can see in the screenshot below. My test looks like below:

`it('Login through Facebook', () => {

  const username = Cypress.env('fbSocialLoginUsername');
  const password = Cypress.env('fbSocialLoginPassword');
  const loginUrl = Cypress.env('loginUrl');
  const cookieName = Cypress.env('cookieName');
  const socialLoginOptions = {
    username: username,
    password: password,
    loginUrl: loginUrl,
    headless: false,
    logs: false,
    loginSelector: 'a[href="/users/auth/facebook?origin=https%3A%2F%2Fwebapp.preprod.applyboard.dev%2F%3F"]',
    postLoginClick: "facebook.button",
    postLoginSelector: ".account"
  };`

Facebook_incompleteString

@kalebhushan
Copy link
Author

Has anyone seen this before? Happens with facebook but not with google.

@XeniyaShirinova
Copy link

Did you tried to interact with Facebook form without using cypress-sosial-login library?
I've found this cy.get(...).invoke('val', 'email@example.com') as a work around which can help. cypress-io/cypress#5480

@kalebhushan
Copy link
Author

Did you tried to interact with Facebook form without using cypress-sosial-login library?
I've found this cy.get(...).invoke('val', 'email@example.com') as a work around which can help. cypress-io/cypress#5480

We can use cy.get but that would mean not using the recommended plugin. While it will work, it wouldnt be optimal.

@s-kris
Copy link

s-kris commented Dec 17, 2021

I can confirm that the same issue is happening to me 19 out of 20 times when trying to login with facebook.

For some reason, the email is correctly typed only 1 time. Totally random!

cypress: 9.1.1
cypress-social-login: 1.13.0

@lirantal
Copy link
Owner

Going to close this for being stale but if any issues remain or more context to be shared, please comment and will re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants