mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
58323f5313
Summary: Iframe with custom widget is marked with a test class `test-custom-widget-ready` when it receives the `ready` message from the rendered widget. Test Plan: Added and updated. Existing test should pass. Reviewers: georgegevoian Reviewed By: georgegevoian Subscribers: georgegevoian Differential Revision: https://phab.getgrist.com/D4023
10 lines
320 B
TypeScript
10 lines
320 B
TypeScript
import {BindableValue, dom} from 'grainjs';
|
|
|
|
/**
|
|
* Version of makeTestId that can be appended conditionally.
|
|
* TODO: update grainjs typings, as this is already supported there.
|
|
*/
|
|
export function makeTestId(prefix: string) {
|
|
return (id: string, obs?: BindableValue<boolean>) => dom.cls(prefix + id, obs ?? true);
|
|
}
|