Open Nisbij opened 1 year ago
Hello,
Our pipelines run testcafe tests on Ubuntu and everything works fine.
Please, make sure you run npm run build_prod
before running the tests.
Also, I would recommend using node 14 to run the build_prod command.
Thanks, Dmitry SurveyJS Team
Are you requesting a feature, reporting a bug or asking a question?
whenever I am running testcafe for the tests all of them keep failing in my environment and they all cite typeerror: cannot read property of 'undefined'
What is the current behavior?
1) An error occurred in ClientFunction code: [1] [1] TypeError: Cannot read properties of undefined (reading 'Model') [1] [1] Browser: Chrome 114.0.5735.198 / Ubuntu 22.04 [1] [1] 132 | [1] 133 | test("check expand/collapse action", async (t) => { [1] 134 | const elementTitle = Selector(".sv_qtitle"); [1] 135 | const getQuestionState = ClientFunction(() => { return window["survey"].getAllQuestions()[0].state; }); [1] 136 | [1] > 137 | await initSurvey(framework, json, { [1] 138 | onGetQuestionTitleActions: (, opt) => { }, [1] 139 | }); [1] 140 | [1] 141 | await t [1] 142 | .expect(elementTitle.hasClass("sv_q_title_expandable")).ok() [1] [1] at (/deskreen/testCafe/survey/titleActions.js:137:21)
[1] at asyncGeneratorStep (/deskreen/testCafe/survey/titleActions.js:2:68)
[1] at _next (/deskreen/testCafe/survey/titleActions.js:2:68)
[1] at (/deskreen/testCafe/survey/titleActions.js:2:68)
[1] at (/deskreen/testCafe/survey/titleActions.js:2:68)
[1] at (/deskreen/testCafe/survey/titleActions.js:160:4)
What is the expected behavior?
How would you reproduce the current behavior (if this is a bug)?
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code
Specify your