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

bug(commands): getAuthUser command not working #714

Open
negomi opened this issue Sep 14, 2022 · 4 comments
Open

bug(commands): getAuthUser command not working #714

negomi opened this issue Sep 14, 2022 · 4 comments
Labels
needs-repro Needs reproduction steps

Comments

@negomi
Copy link

negomi commented Sep 14, 2022

The docs briefly mention getAuthUser as a custom command added by this package.

I can also see it in the code, but calling cy.getAuthUser("myuid") in tests isn't working for me.

The section linked to here, for example, doesn't exist anymore.

Is it deprecated? If not, some docs on how to use it would be helpful.

@Andrew-Pynch
Copy link

Did you have any luck with this?

@negomi
Copy link
Author

negomi commented Nov 14, 2022

@Andrew-Pynch I didn't unfortunately!

@diogormendes
Copy link
Contributor

Also looking for this !!

@prescottprue
Copy link
Owner

What are you getting from calling that custom function? An error or is it returning a value?

This command should attach the same way the others do. Really this is just a pipe to the backend firebase-admin getUser call, so not sure where your issue would be. I'll add something to the example to confirm

@prescottprue prescottprue added the needs-repro Needs reproduction steps label Dec 30, 2022
@prescottprue prescottprue changed the title How to use getAuthUser bug(commands): getAuthUser command not working Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-repro Needs reproduction steps
Projects
None yet
Development

No branches or pull requests

4 participants