Closed davidbuchanan closed 1 year ago
Hi @davidbuchanan , the Google Sheet tests in Cypress require the CLIENT_ID and API_KEY to be set, as trying to get data from a Google Sheet requires a manual Google login, which we cannot do with Cypress. The alternative is to set these variables which provide Cypress with an authenticated session for a public sheet (details here).
Could you confirm if you have these variables exported in the session you are running the tests ? If you do, could you please check if the Authorized JavaScript origins
is set with http://localhost:8080
in GCP console ?
FYI - docs state request a trailing '/', this also did not work for me.)
Yeah, the /
is not required, I'll update the README for it.
Thanks!
I confirm I did NOT! My bad RTFM totally on me.
I have tried to do as suggested but now hit an issue with GCP.
That said the form field description states https.
Again apologies if I am being dumb here.
Hi, no worries! I think what you might have landed on is very specific to Google Sign In related IDs.
Could you try creating a project directly on GCP console and create keys there ?
Once on the console, you should be able to create the Client ID and API Key from APIs & Services
section.
Thanks!
Yeah that worked! Thank you for your patience.
I am having an issue when trying to build locally, prior to creating a PR.
Running off master and specifying e2e run command as
FYI - docs state request a trailing '/', this also did not work for me.)
I receive a 403 error (Please see attached Cypress report output),
evidence-of-403-on-google-api-calls.zip
this appears to be when contacting the following URL during test run Google API call
I hope this is not due to my host platform being Linux. Please accept my apologies for wasting your time if that is the case.
I am simply trying to increase the Cypress version fro 13.1 to 13.2 to remove a [critical vulnerability preventing me from bringing this product into my workplace - CVE-2020-36632
Please let me know if you need anymore info.