07/10/2023, 4:41 PM
Hi All. Just started doing a POC for growthbook with playwright test automation. 🙂 works really well from my local environment. However once I try to run the tests on CI (Bitbucket) seems like every flag is returned as disabled. Has anyone ever ran into something like this, where the exact same code works locally and flags return the expected value, but in CI they return always as disabled? Done some digging through the Github Issues and seems like I could not find anything.


07/11/2023, 9:02 AM
this can happen if there is a race condition for either the features loading too late, or the attributes not being set. But I’d be curious to hear how you’re using GrowthBook in this situation. We’d also be happy to help you debug


07/11/2023, 1:42 PM
Hi Graham! I got it working by bypassing the SDK fully and just doing a GET to the full API Endpoint. I'm not sure if it's a rece-condition since otherwise with this simple get request it works just fine. The tests we are running are basically self checking growthbook to see if they are enabled or not.