gristlabs_grist-core/test
Dmitry S faa0d9988e (core) When changing a table for a page widget, unset widget-linking to avoid invalid values.
Summary:
Previously, using "Change Widget" allowed one to change the underlying table,
but would keep the linking settings. This could allow invalid settings which
would sometimes lead to JS errors. These manifested in production as
"UserError: Query error: n is not a function".

- Unset linking settings in this case, to avoid invalid values.
- In case invalid values are encountered (e.g. saved previously), treat them as
  unset, to avoid JS errors.
- If an error does occur, report it with a stack trace.

Also, for testing, added 'selectBy' option to gristUtils helpers for using page-widget-picker.

Test Plan: Added test cases for resetting linking, and for ignoring invalid link settings.

Reviewers: alexmojaki

Reviewed By: alexmojaki

Differential Revision: https://phab.getgrist.com/D2993
2021-08-25 12:53:46 -04:00
..
nbrowser (core) When changing a table for a page widget, unset widget-linking to avoid invalid values. 2021-08-25 12:53:46 -04:00
server (core) start applying defenses for untrusted document uploads 2021-07-14 18:34:27 -04:00
init-mocha-webdriver.js (core) freshen grist-core build 2021-04-03 09:41:06 -04:00
mocha.opts (core) Move report-why-tests-hang helper to core 2021-04-26 23:52:16 -04:00
report-why-tests-hang.js (core) Move report-why-tests-hang helper to core 2021-04-26 23:52:16 -04:00
tsconfig.json (core) freshen grist-core build 2021-04-03 09:41:06 -04:00
xunit-file.js (core) freshen grist-core build 2021-04-03 09:41:06 -04:00