gitbook icon indicating copy to clipboard operation
gitbook copied to clipboard

Fix multi-id mode and va e2e tests when ran locally

Open spastorelli opened this issue 1 year ago • 0 comments

This PR aims to prevent the e2e va test to fail when ran against local env (localhost).

VA E2E tests are currently failing because we use a cookie to store the va token on initial request but use sameSite = none. But in localhost env the cookie will not be properly set/retrieved because of that policy.

As a result, the test fails with a Authentication missing to access this content error.

The same issue happens when testing multi-id mode (preview) locally as we store the content token passed in the preview URL into a cookie with the same policy.

Before After
Screenshot 2024-04-19 at 16 48 42 Screenshot 2024-04-19 at 16 52 02

spastorelli avatar Apr 19 '24 14:04 spastorelli