Follow-up to #2152 Related to https://github.com/webrecorder/browsertrix/pull/2487 This PR provides very basic validation of the `config.selectLinks` argument on workflow creation and update. Namely, it checks that: - `config.selectLinks` is not an empty array - Each entry consists of two non-empty text sequences separated by `->` At this point we're not validating the actual CSS selector on the backend, though we could add that down the road. Tests have been added accordingly. Co-authored-by: Ilya Kreymer <ikreymer@gmail.com> |
||
---|---|---|
.. | ||
.husky | ||
config | ||
docs | ||
lib | ||
patches | ||
scripts | ||
src | ||
tests | ||
xliff | ||
.dockerignore | ||
.editorconfig | ||
.eslintrc.js | ||
.gitignore | ||
.prettierignore | ||
.vscode | ||
.yarnrc | ||
00-browsertrix-nginx-init.sh | ||
Dockerfile | ||
frontend.conf.template | ||
index.d.ts | ||
lit-localize.json | ||
minio.conf | ||
package.json | ||
playwright.config.ts | ||
postcss.config.js | ||
prettier.config.js | ||
README.md | ||
sample.env.local | ||
tailwind.config.js | ||
tsconfig.eslint.json | ||
tsconfig.json | ||
vendor.webpack.config.js | ||
web-test-runner.config.mjs | ||
webpack.config.js | ||
webpack.dev.js | ||
webpack.prod.js | ||
yarn.lock |