cypress-firebase icon indicating copy to clipboard operation
cypress-firebase copied to clipboard

bug(commands): getAuthUser command not working

Open negomi opened this issue 2 years ago • 4 comments

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.

negomi avatar Sep 14 '22 11:09 negomi

Did you have any luck with this?

Andrew-Pynch avatar Nov 14 '22 20:11 Andrew-Pynch

@Andrew-Pynch I didn't unfortunately!

negomi avatar Nov 14 '22 20:11 negomi

Also looking for this !!

diogormendes avatar Nov 23 '22 14:11 diogormendes

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 avatar Dec 30 '22 17:12 prescottprue