diff --git a/visualRegressionTests/tests/defaultV2/file.ts b/visualRegressionTests/tests/defaultV2/file.ts index 475c840c3e..e5b5a27843 100644 --- a/visualRegressionTests/tests/defaultV2/file.ts +++ b/visualRegressionTests/tests/defaultV2/file.ts @@ -65,8 +65,8 @@ frameworks.forEach(framework => { await t.resizeWindow(1920, 1080); await ClientFunction(() => { const question = (window as any).survey.getQuestionByName("file_question"); - question.imageWidth = 100; - question.imageHeight = 100; + question.imageWidth = "100px"; + question.imageHeight = "100px"; })(); await t.setFilesToUpload(Selector(".sd-file input"), ["files/SingleImage.jpg"]); const questionRoot = Selector(".sd-question"); @@ -74,16 +74,16 @@ frameworks.forEach(framework => { await ClientFunction(() => { const question = (window as any).survey.getQuestionByName("file_question"); - question.imageWidth = 1920; - question.imageHeight = 1080; + question.imageWidth = "1920px"; + question.imageHeight = "1080px"; })(); await takeElementScreenshot("file-question-single-big-image.png", questionRoot, t, comparer); await ClientFunction(() => { const question = (window as any).survey.getQuestionByName("file_question"); question.allowMultiple = true; - question.imageWidth = 50; - question.imageHeight = 50; + question.imageWidth = "50px"; + question.imageHeight = "50px"; question.clear(); })(); await t.setFilesToUpload(Selector(".sd-file input"), ["files/Badger.png", "files/Bird.png", "files/Flamingo.png"]); @@ -92,8 +92,8 @@ frameworks.forEach(framework => { await ClientFunction(() => { const question = (window as any).survey.getQuestionByName("file_question"); question.allowMultiple = true; - question.imageWidth = 1920; - question.imageHeight = 1080; + question.imageWidth = "1920px"; + question.imageHeight = "1080px"; })(); await takeElementScreenshot("file-question-multiple-big-images.png", questionRoot, t, comparer); });