I am currently making my first contribution, the Cognito integration, and I’m struggling a bit with some failing tests (they seems to all fail for the same reason).
So I’m wondering if anyone here would have any idea ?
I made a few observations:
The tests fails only when the Cognito integration is added on the authClients/index.ts file
The tests failing seems to be using the custom authentication mode
The tests fails because the text Only absolute URLs are supported is found instead of Log Out, due to an error
I checked the result from this.getApiGraphQLUrl() and it is the same both when the test run with Cognito added to the authClients and without Cognito: /.netlify/functions/graphql
Sorry I’m very new to RW so can’t help much.
Is it possible that the init is being run when the tests are run and new CognitoUserPool is throwing an error due to missing environment vars, which ends up being rendered instead of the Log out link.