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

cy.task('GoogleSocialLogin') is failing #137

Open
mcmclarry opened this issue May 15, 2023 · 2 comments
Open

cy.task('GoogleSocialLogin') is failing #137

mcmclarry opened this issue May 15, 2023 · 2 comments

Comments

@mcmclarry
Copy link

  • Library Version:
  • OS:
  • Node.js Version:

Error:
image

I am trying to use this cypress-social-logins plugin for automating the webpage being tested, having a Google Sign in option. Here are my files:

cypress/plugins/index.js
image

function (from cypress page) that will be called in actual testing (e2e test file)
image

I have followed what were written in the read me or guide. Not sure why I am having this error. Would appreciate the help for the possible solution or fix for this issue. Thank you!

I am using latest cypress version (v12.12)
Node: v16.14.0
OS: Windows 10

@mcmclarry
Copy link
Author

@lirantal Hi, just want to check if you had encountered this issue before? Thanks!

@BahaaalHalabi01
Copy link

@mcmclarry can you please show the cypress.config file ? you should define the task there not in the plugins folder, below is an example of a config file with the google social login

 e2e: {
    supportFile: false,
    baseUrl: 'http://localhost:5173',
    setupNodeEvents(on, config) {
      on('task',{
        GoogleSocialLogin:plugins.GoogleSocialLogin
      })
    },
  },

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

2 participants