Extract common ArkoseLabs setup code
Related to https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/656+.
What does this MR do?
This MR refactors components rendering ArkoseLabs challenge. Common ArkoseLabs setup code are extracted to a utility module to simplify the components and their specs.
Why?
There are now three components that render ArkoseLabs challenge with repeated code to initialize the challenge.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Edited by Eugie Limpin