Open
Description
Problem
If using webpack-compiled scripts that obfuscate the code, we make assumptions on the frontend that it is invalid script when in fact it isn't.
This problem applies to:
- Script does not export any options
- Script must set the type to chromium in the browser options.
- Script must import { browser } from 'k6/browser'
Acceptance criteria
There isn't a clear solution for this problem. The acceptance criteria will be allowing perfectly valid compiled scripts to run and be saved. Potential solutions include:
- Make this validation to be optional or dismissable
- more intelligent detection on the FE that the script is valid (I think this is a giant can of worms...)
- have a sandboxed api that can be called upon to validate scripts