Skip to content

Commit b0c7119

Browse files
committed
Fix one unit test & remove unit tests that came from V2
1 parent 80b4156 commit b0c7119

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

packages/survey-creator-core/tests/property-grid/property-grid.tests.ts

+1-18
Original file line numberDiff line numberDiff line change
@@ -3333,9 +3333,8 @@ test("Localication and survey.pages property, Bug#6687", () => {
33333333
}
33343334
};
33353335
editorLocalization.locales["de"] = deutschStrings;
3336-
const creator = new CreatorTester();
3336+
const creator = new CreatorTester(undefined, undefined, false);
33373337
creator.locale = "de";
3338-
creator.JSON = {};
33393338
const propertyGrid = new PropertyGridModelTester(creator.survey);
33403339
const pagesQuestion = <QuestionMatrixDynamicModel>(
33413340
propertyGrid.survey.getQuestionByName("pages")
@@ -3351,22 +3350,6 @@ test("Localication and survey.pages property, Bug#6687", () => {
33513350
expect(creator.survey.pages.length).toBe(1);
33523351
expect(creator.survey.pages[0].name).toBe("Seite1");
33533352
});
3354-
test("panellayoutcolumns doesn't have adding button", () => {
3355-
const creator = new CreatorTester();
3356-
creator.JSON = {
3357-
gridLayoutEnabled: true,
3358-
elements: [{ type: "text", name: "q1" }]
3359-
};
3360-
const propertyGrid = new PropertyGridModelTester(creator.survey.pages[0]);
3361-
const gridColumnsQuestion = <QuestionMatrixDynamicModel>(propertyGrid.survey.getQuestionByName("gridLayoutColumns"));
3362-
expect(gridColumnsQuestion).toBeTruthy();
3363-
expect(gridColumnsQuestion.allowAddRows).toBeFalsy();
3364-
expect(gridColumnsQuestion.getTitleToolbar()).toBeTruthy();
3365-
const helpButton = gridColumnsQuestion.titleActions.find(a => a.id === "property-grid-help");
3366-
const addButton = gridColumnsQuestion.titleActions.find(a => a.id === "add-item");
3367-
expect(helpButton).toBeTruthy();
3368-
expect(addButton).toBeFalsy();
3369-
});
33703353
test("Set property name into correct category", () => {
33713354
Serializer.addProperty("question", {
33723355
name: "validation",

0 commit comments

Comments
 (0)