Grafana Cloud Synthetic Tests not supporting getByRole / getByText (k6 version outdated)

Hi everyone, how are you doing?

I’m running into an issue with a Synthetic Test (Check > Browser). The test fails because the commands getByText and getByRole are not recognized in the Grafana Cloud environment, due to the k6 version currently in use.

Uncaught (in promise) GoError: Failed to log in: Object has no member 'getByRole'
    at go.k6.io/k6/internal/js/modules/k6.(*K6).Fail-fm (native)
    at default (file:///script.k6:68:11(101))

Looking at the logs, I noticed the version in use is:
User-Agent: Grafana k6/1.0.0-rc1

However, I built my test based on the latest release 1.2.3, as documented here:
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/page/getbyrole/

Is there any timeline or plan for updating the Grafana Cloud k6 version from 1.0.0-rc1 to 1.2.3?

Thanks!

Hi @deniscoelho,

Welcome to our community forums! :tada:

As you have noticed, k6 Releases aren’t automatically nor immediately rolled out into our Synthetic Tests app, although we try to roll them out as soon as possible.

You can see the latest version of k6 used by our Synthetic Tests app here. Now, as you can see, it matches the latest version, and the one you’re looking for: k6 v1.2.3. So, you’ll likely very soon be able to start using it for your Synthetic Tests, it just take some time to be rolled out.

It’s nothing set in stone, and it may vary from release to release, but I’d say you can normally expect it to be ready in the next 7d after being updated there, so I guess that by tomorrow or the day after it should be ready.

I hope that helps! :person_bowing:

Cheers!

1 Like

Hi Joanlopez,

Thanks a lot for the clarification and for sharing the details!
Appreciate the quick support! :rocket:

Thanks,
Denis

Hi again, @deniscoelho,

Apologies, because I misinterpreted what my SM mates told me, and the delay isn’t usually around one week but two, because there’s a couple of pieces more, that are also progressively rolled out, that I forgot to consider.

So, it might be not this week, but hopefully during the next.

Overall, bear in mind that we do these progressive rollouts to have everything under control, and to avoid any end-user facing issues as much as possible.

Thanks for your understanding! :person_bowing:

1 Like