diff --git a/packages/survey-core/src/popup-dropdown-view-model.ts b/packages/survey-core/src/popup-dropdown-view-model.ts index 849a4617fb..36d8daad71 100644 --- a/packages/survey-core/src/popup-dropdown-view-model.ts +++ b/packages/survey-core/src/popup-dropdown-view-model.ts @@ -40,7 +40,7 @@ export class PopupDropdownViewModel extends PopupBaseViewModel { } private resizeWindowCallback = () => { if(!this.isOverlay) { - this.updatePosition(true, SurveyModel.platform === "vue" || SurveyModel.platform === "vue3" || SurveyModel.platform == "react"); + this.updatePosition(true, SurveyModel.platform === "vue" || SurveyModel.platform === "vue3" || SurveyModel.platform == "react" || SurveyModel.platform == "js-ui"); } }; private clientY: number = 0; diff --git a/packages/survey-js-ui/testCafe/countriesMock.json b/packages/survey-js-ui/testCafe/countriesMock.json new file mode 100644 index 0000000000..44a0728446 --- /dev/null +++ b/packages/survey-js-ui/testCafe/countriesMock.json @@ -0,0 +1,18 @@ +{ + "RestResponse": { + "result": [ + { + "alpha2_code": "US", + "name": "United States" + }, + { + "alpha2_code": "CU", + "name": "Cuba" + }, + { + "alpha2_code": "RO", + "name": "Romania" + } + ] + } +} \ No newline at end of file diff --git a/packages/survey-js-ui/testCafe/resources/big_Dashka.jpg b/packages/survey-js-ui/testCafe/resources/big_Dashka.jpg new file mode 100644 index 0000000000..697c6bc537 Binary files /dev/null and b/packages/survey-js-ui/testCafe/resources/big_Dashka.jpg differ diff --git a/packages/survey-js-ui/testCafe/resources/small_Dashka.jpg b/packages/survey-js-ui/testCafe/resources/small_Dashka.jpg new file mode 100644 index 0000000000..2dbeb92393 Binary files /dev/null and b/packages/survey-js-ui/testCafe/resources/small_Dashka.jpg differ diff --git a/packages/survey-js-ui/testCafe/resources/stub.txt b/packages/survey-js-ui/testCafe/resources/stub.txt new file mode 100644 index 0000000000..26fefde539 --- /dev/null +++ b/packages/survey-js-ui/testCafe/resources/stub.txt @@ -0,0 +1 @@ +Wombat \ No newline at end of file diff --git a/testCafe/questions/paneldynamic.ts b/testCafe/questions/paneldynamic.ts index e88cd30351..a6770d57e4 100644 --- a/testCafe/questions/paneldynamic.ts +++ b/testCafe/questions/paneldynamic.ts @@ -146,6 +146,7 @@ const json = { frameworks.forEach((framework) => { fixture`${framework} ${title}`.page`${url}${framework}`.beforeEach( async (t) => { + await t.resizeWindow(1920, 1080); await initSurvey(framework, json); } ); @@ -234,6 +235,7 @@ frameworks.forEach((framework) => { frameworks.forEach((framework) => { fixture`${framework} ${title}`.page`${url}${framework}`.beforeEach( async (t) => { + await t.resizeWindow(1920, 1080); await initSurvey(framework, json, undefined, true); } ); @@ -268,6 +270,7 @@ const json2 = { frameworks.forEach((framework) => { fixture`${framework} ${title}`.page`${url}${framework}`.beforeEach( async (t) => { + await t.resizeWindow(1920, 1080); await initSurvey(framework, json2); } ); @@ -321,6 +324,7 @@ const json3 = { frameworks.forEach((framework) => { fixture`${framework} ${title}`.page`${url}${framework}`.beforeEach( async (t) => { + await t.resizeWindow(1920, 1080); await initSurvey(framework, json3); } ); @@ -379,6 +383,7 @@ const jsonCheckboxRestFul = { frameworks.forEach((framework) => { fixture`${framework} ${title}`.page`${url}${framework}`.beforeEach( async (t) => { + await t.resizeWindow(1920, 1080); } );