Skip to content

Commit

Permalink
FIx unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Feb 19, 2025
1 parent 6f992c7 commit 9ec3b3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/survey-creator-core/tests/tabs/logic-v1.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ test("Allow logic type to be null and change it", () => {
expect(panel.getQuestionByName("elementSelector").isEmpty()).toBeTruthy();
expect(panel.getQuestionByName("elementSelector").isVisible).toBeTruthy();
expect(logic.saveEditableItem()).toBeFalsy();
panel.getQuestionByName("elementSelector").value = survey.currentPage.name;
panel.getQuestionByName("elementSelector").value = "q3";
expect(logic.saveEditableItem()).toBeTruthy();
});
test("One action exists in new item", () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/survey-creator-core/tests/tabs/logic.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ test("LogicItemEditorUI: filter by question and addNew", () => {

logic.expressionEditor.text = "{q1} = 4";
let panel = logic.itemEditor.panels[0];
panel.getQuestionByName("logicTypeName").value = "question_visibility";
panel.getQuestionByName("logicTypeName").value = "question_enable";
panel.getQuestionByName("elementSelector").value = "q4";

expect(logic.saveEditableItem()).toBeTruthy();
Expand All @@ -1312,7 +1312,7 @@ test("LogicItemEditorUI: filter by question and addNew", () => {

logic.expressionEditor.text = "{q1} = 4";
panel = logic.itemEditor.panels[0];
panel.getQuestionByName("logicTypeName").value = "question_visibility";
panel.getQuestionByName("logicTypeName").value = "question_enable";
panel.getQuestionByName("elementSelector").value = "q3";

expect(logic.saveEditableItem()).toBeTruthy();
Expand Down

0 comments on commit 9ec3b3b

Please sign in to comment.