Skip to content

Commit

Permalink
Fix vr tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Oct 30, 2023
1 parent e3d5814 commit 78c9d67
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions visualRegressionTests/tests/defaultV2/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,25 @@ 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");
await takeElementScreenshot("file-question-single-small-image.png", questionRoot, t, comparer);

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"]);
Expand All @@ -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);
});
Expand Down

0 comments on commit 78c9d67

Please sign in to comment.