Skip to content

Commit

Permalink
vix example scripts for testcafe
Browse files Browse the repository at this point in the history
  • Loading branch information
novikov82 committed Dec 26, 2024
1 parent add71ce commit 9bd5425
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/survey-creator-react/testCafe/testcafe.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
window.surveyJSFramework = "react";
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true });
window.creator = creator;
creator.tabResponsivenessMode = "menu";
creator["animationEnabled"] = false;
creator.showOneCategoryInPropertyGrid = false;

class SurveyCreatorRenderComponent extends React.Component {
constructor(props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ if (props.useSlk) {
}
const creator = shallowRef(new SurveyCreatorModel(props.options));
(window as any).creator = creator.value;
creator.value.tabResponsivenessMode = "menu";
creator.value["animationEnabled"] = false;
creator.value.showOneCategoryInPropertyGrid = false;
(window as any).updateCreatorModel = (options: any, json: any) => {
(window as any).prevCreator = creator.value;
const newCreator = new SurveyCreatorModel(options);
Expand Down

0 comments on commit 9bd5425

Please sign in to comment.