diff --git a/packages/survey-creator-angular/.testcaferc.dev.js b/packages/survey-creator-angular/.testcaferc.dev.js new file mode 100644 index 0000000000..6dc8b1952b --- /dev/null +++ b/packages/survey-creator-angular/.testcaferc.dev.js @@ -0,0 +1,5 @@ + +module.exports = { + "browsers": [`chrome:${require("puppeteer").executablePath()}`], + "nativeAutomation": "true", +} \ No newline at end of file diff --git a/packages/survey-creator-angular/package.json b/packages/survey-creator-angular/package.json index 612a714f77..3110a80937 100644 --- a/packages/survey-creator-angular/package.json +++ b/packages/survey-creator-angular/package.json @@ -72,13 +72,13 @@ "scripts": { "build": "ng build && node ./update-version.js", "serve:example": "ng serve", - "testcafe": "testcafe chrome ../../testCafe/ --app \"http-server ./dist/angular-ui --proxy http://localhost:8080? -p 8080\" --selector-timeout 1500 --reporter minimal --env=angular", + "testcafe": "testcafe ../../testCafe/ --app \"http-server ./dist/angular-ui --proxy http://localhost:8080? -p 8080\" --selector-timeout 1500 --env=angular --config-file .testcaferc.dev.js", "testcafe:ci": "testcafe ../../testCafe/ --app \"http-server ./dist/angular-ui --proxy http://localhost:8080? -p 8080\" --selector-timeout 1500 --reporter minimal --env=angular", "serve:example:aot": "http-server ./dist/angular-ui --proxy http://localhost:8080? -p 8080", "build:example": "ng build angular-ui", "test": "ng test survey-creator-angular", "visual-regression-tests:ci": "testcafe --disable-font-subpixel-positioning ../../visualRegressionTests/ --app \"http-server ./dist/angular-ui --proxy http://localhost:8080? -p 8080\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", - "visual-regression-tests": "testcafe chrome -c 4 -q attemptLimit=5,successThreshold=1 --disable-font-subpixel-positioning ../../visualRegressionTests/ --app \"http-server ./dist/angular-ui --proxy http://localhost:8080? -p 8080\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", + "visual-regression-tests": "testcafe ../../visualRegressionTests/ --app \"http-server ./dist/angular-ui --proxy http://localhost:8080? -p 8080\" --screenshots ../../ --selector-timeout 1500 --config-file .testcaferc.dev.js", "test:single": "ng test --watch=false --browsers=ChromeHeadless survey-creator-angular", "release": "standard-version --message \"Release: %s [azurepipelines skip]\" " } diff --git a/packages/survey-creator-js/.testcaferc.dev.js b/packages/survey-creator-js/.testcaferc.dev.js new file mode 100644 index 0000000000..6dc8b1952b --- /dev/null +++ b/packages/survey-creator-js/.testcaferc.dev.js @@ -0,0 +1,5 @@ + +module.exports = { + "browsers": [`chrome:${require("puppeteer").executablePath()}`], + "nativeAutomation": "true", +} \ No newline at end of file diff --git a/packages/survey-creator-js/package.json b/packages/survey-creator-js/package.json index 6faa70e6db..950d5f4017 100644 --- a/packages/survey-creator-js/package.json +++ b/packages/survey-creator-js/package.json @@ -20,14 +20,14 @@ "test_debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand", "doc:gen": "node doc_generator/editor_docgenerator.js src/entries/index.ts", "doc:update": "chmod +x docupdate_npm.sh && ./docupdate_npm.sh", - "testcafe": "testcafe chrome ../../testCafe/ --app \"http-server\" --selector-timeout 1500", + "testcafe": "testcafe ../../testCafe/ --app \"http-server\" --selector-timeout 1500 --config-file .testcaferc.dev.js", "testcafe:ci": "http-server --silent & testcafe ../../testCafe/ --selector-timeout 1500 --reporter minimal", - "testcafe:file": "concurrently \"http-server --silent\" \"testcafe chrome ../../testCafe/designer/page-navigator.ts --reporter minimal --debug-mode\"", - "testcafe:a11y": "concurrently \"http-server --silent\" \"testcafe chrome ./testCafe/accessibility.js --selector-timeout 1500\"", + "testcafe:file": "concurrently \"http-server --silent\" \"testcafe ../../testCafe/designer/page-navigator.ts --reporter minimal --debug-mode --config-file .testcaferc.dev.js\"", + "testcafe:a11y": "concurrently \"http-server --silent\" \"testcafe ./testCafe/accessibility.js --selector-timeout 1500 --config-file .testcaferc.dev.js\"", "testcafe:a11y:ci": "testcafe ./testCafe/accessibility.js --app \"http-server\" --selector-timeout 1500 --reporter minimal", - "visual-regression-tests": "testcafe chrome --disable-font-subpixel-positioning ../../visualRegressionTests/ --app \"http-server\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", - "visual-regression-tests:ci": "testcafe --disable-font-subpixel-positioning ../../visualRegressionTests/ --app \"http-server\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", - "visual-regression-tests:file": "testcafe chrome:headless --disable-font-subpixel-positioning --app \"http-server\" ../../visualRegressionTests/tests/designer/pg-editors.ts --screenshots ../../ --reporter minimal --selector-timeout 1500", + "visual-regression-tests": "testcafe ../../visualRegressionTests/ --app \"http-server\" --screenshots ../../ --selector-timeout 1500 --reporter minimal --config-file .testcaferc.dev.js", + "visual-regression-tests:ci": "testcafe ../../visualRegressionTests/ --app \"http-server\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", + "visual-regression-tests:file": "testcafe --app \"http-server\" ../../visualRegressionTests/tests/designer/pg-editors.ts --screenshots ../../ --reporter minimal --selector-timeout 1500 --config-file .testcaferc.dev.js", "release": "standard-version --message \"Release: %s [azurepipelines skip]\"", "remove-package-lock": "rimraf package-lock.json", "build": "webpack --env buildType=dev && webpack --env buildType=prod", diff --git a/packages/survey-creator-knockout/.testcaferc.dev.js b/packages/survey-creator-knockout/.testcaferc.dev.js new file mode 100644 index 0000000000..6dc8b1952b --- /dev/null +++ b/packages/survey-creator-knockout/.testcaferc.dev.js @@ -0,0 +1,5 @@ + +module.exports = { + "browsers": [`chrome:${require("puppeteer").executablePath()}`], + "nativeAutomation": "true", +} \ No newline at end of file diff --git a/packages/survey-creator-knockout/package.json b/packages/survey-creator-knockout/package.json index 6d03854ff7..707464d42b 100644 --- a/packages/survey-creator-knockout/package.json +++ b/packages/survey-creator-knockout/package.json @@ -19,14 +19,14 @@ "test_debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand", "doc:gen": "node doc_generator/editor_docgenerator.js src/entries/index.ts", "doc:update": "chmod +x docupdate_npm.sh && ./docupdate_npm.sh", - "testcafe": "concurrently \"http-server --silent\" \"testcafe chrome ../../testCafe/ --selector-timeout 1500\"", - "testcafe:file": "concurrently \"http-server --silent\" \"testcafe chrome ../../testCafe/designer/page-navigator.ts --reporter minimal --selector-timeout 1500 --debug-mode\"", - "testcafe:a11y": "concurrently \"http-server --silent\" \"testcafe chrome ./testCafe/accessibility.js --selector-timeout 1500\"", + "testcafe": "concurrently \"http-server --silent\" \"testcafe ../../testCafe/ --selector-timeout 1500 --config-file .testcaferc.dev.js\"", + "testcafe:file": "concurrently \"http-server --silent\" \"testcafe ../../testCafe/designer/page-navigator.ts --reporter minimal --selector-timeout 1500 --debug-mode --config-file .testcaferc.dev.js\"", + "testcafe:a11y": "concurrently \"http-server --silent\" \"testcafe ./testCafe/accessibility.js --selector-timeout 1500 --config-file .testcaferc.dev.js\"", "testcafe:a11y:ci": "testcafe ./testCafe/accessibility.js --app \"http-server\" --selector-timeout 1500 --reporter minimal", "testcafe:ci": "http-server --silent & testcafe ../../testCafe/ --selector-timeout 1500 --reporter minimal", - "visual-regression-tests": "testcafe chrome --disable-font-subpixel-positioning ../../visualRegressionTests/ --app \"http-server\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", - "visual-regression-tests:ci": "testcafe --disable-font-subpixel-positioning ../../visualRegressionTests/ --app \"http-server\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", - "visual-regression-tests:file": "testcafe chrome:headless --disable-font-subpixel-positioning --app \"http-server\" ../../visualRegressionTests/tests/designer/pg-choices.ts --screenshots ../../ --reporter minimal --selector-timeout 1500", + "visual-regression-tests": "testcafe ../../visualRegressionTests/ --app \"http-server\" --screenshots ../../ --selector-timeout 1500 --reporter minimal --config-file .testcaferc.dev.js", + "visual-regression-tests:ci": "testcafe - ../../visualRegressionTests/ --app \"http-server\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", + "visual-regression-tests:file": "testcafe --app \"http-server\" ../../visualRegressionTests/tests/designer/pg-choices.ts --screenshots ../../ --reporter minimal --selector-timeout 1500 --config-file .testcaferc.dev.js", "release": "standard-version --message \"Release: %s [azurepipelines skip]\"", "remove-package-lock": "rimraf package-lock.json", "build": "webpack --env buildType=dev && webpack --env buildType=prod", diff --git a/packages/survey-creator-react/.testcaferc.dev.js b/packages/survey-creator-react/.testcaferc.dev.js new file mode 100644 index 0000000000..6dc8b1952b --- /dev/null +++ b/packages/survey-creator-react/.testcaferc.dev.js @@ -0,0 +1,5 @@ + +module.exports = { + "browsers": [`chrome:${require("puppeteer").executablePath()}`], + "nativeAutomation": "true", +} \ No newline at end of file diff --git a/packages/survey-creator-react/package.json b/packages/survey-creator-react/package.json index c442a49709..f14b0c9b7a 100644 --- a/packages/survey-creator-react/package.json +++ b/packages/survey-creator-react/package.json @@ -19,14 +19,14 @@ "test_debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand", "doc:gen": "node doc_generator/editor_docgenerator.js src/entries/index.ts", "doc:update": "chmod +x docupdate_npm.sh && ./docupdate_npm.sh", - "testcafe": "concurrently \"http-server --silent\" \"testcafe chrome ../../testCafe/ --selector-timeout 1500\"", + "testcafe": "concurrently \"http-server --silent\" \"testcafe ../../testCafe/ --selector-timeout 1500 --config-file .testcaferc.dev.js\"", "testcafe:ci": "http-server --silent & testcafe ../../testCafe/ --selector-timeout 1500 --reporter minimal", - "testcafe:file": "concurrently \"http-server --silent\" \"testcafe chrome ../../testCafe/designer/page-navigator.ts --reporter minimal --debug-mode\"", - "testcafe:a11y": "concurrently \"http-server --silent\" \"testcafe chrome ./testCafe/accessibility.js --selector-timeout 1500\"", + "testcafe:file": "concurrently \"http-server --silent\" \"testcafe ../../testCafe/designer/page-navigator.ts --reporter minimal --debug-mode --config-file .testcaferc.dev.js\"", + "testcafe:a11y": "concurrently \"http-server --silent\" \"testcafe ./testCafe/accessibility.js --selector-timeout 1500 --config-file .testcaferc.dev.js\"", "testcafe:a11y:ci": "testcafe ./testCafe/accessibility.js --app \"http-server\" --selector-timeout 1500 --reporter minimal", - "visual-regression-tests": "testcafe chrome --disable-font-subpixel-positioning ../../visualRegressionTests/ --app \"http-server\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", - "visual-regression-tests:ci": "testcafe --disable-font-subpixel-positioning ../../visualRegressionTests/ --app \"http-server\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", - "visual-regression-tests:file": "testcafe chrome:headless --disable-font-subpixel-positioning --app \"http-server\" ../../visualRegressionTests/tests/designer/pg-editors.ts --screenshots ../../ --reporter minimal --selector-timeout 1500", + "visual-regression-tests": "testcafe ../../visualRegressionTests/ --app \"http-server\" --screenshots ../../ --selector-timeout 1500 --reporter minimal --config-file .testcaferc.dev.js", + "visual-regression-tests:ci": "testcafe ../../visualRegressionTests/ --app \"http-server\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", + "visual-regression-tests:file": "testcafe --app \"http-server\" ../../visualRegressionTests/tests/designer/pg-editors.ts --screenshots ../../ --reporter minimal --selector-timeout 1500 --config-file .testcaferc.dev.js", "release": "standard-version --message \"Release: %s [azurepipelines skip]\"", "remove-package-lock": "rimraf package-lock.json", "build": "webpack --env buildType=dev && webpack --env buildType=prod", diff --git a/packages/survey-creator-vue/.testcaferc.dev.js b/packages/survey-creator-vue/.testcaferc.dev.js new file mode 100644 index 0000000000..6dc8b1952b --- /dev/null +++ b/packages/survey-creator-vue/.testcaferc.dev.js @@ -0,0 +1,5 @@ + +module.exports = { + "browsers": [`chrome:${require("puppeteer").executablePath()}`], + "nativeAutomation": "true", +} \ No newline at end of file diff --git a/packages/survey-creator-vue/package.json b/packages/survey-creator-vue/package.json index 0fe67bbe13..e445910162 100644 --- a/packages/survey-creator-vue/package.json +++ b/packages/survey-creator-vue/package.json @@ -20,9 +20,9 @@ "release": "standard-version --message \"Release: %s [azurepipelines skip]\" ", "lint": "eslint ./src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", "visual-regression-tests:ci": "testcafe --disable-font-subpixel-positioning ../../visualRegressionTests/ --app \"npm run serve:example:prod\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", - "visual-regression-tests": "testcafe chrome -c 4 -q attemptLimit=5,successThreshold=1 --disable-font-subpixel-positioning ../../visualRegressionTests/ --app \"npm run serve:example:prod\" --screenshots ../../ --selector-timeout 1500 --reporter minimal", + "visual-regression-tests": "testcafe ../../visualRegressionTests/ --app \"npm run serve:example:prod\" --screenshots ../../ --selector-timeout 1500 --config-file .testcaferc.dev.js", "testcafe:ci": "testcafe ../../testCafe/ --app \"npm run serve:example:prod\" --selector-timeout 1500 --reporter minimal", - "testcafe": "testcafe chrome ../../testCafe/ --app \"npm run serve:example:prod\" --selector-timeout 1500 --reporter minimal" + "testcafe": "testcafe ../../testCafe/ --app \"npm run serve:example:prod\" --selector-timeout 1500 --config-file .testcaferc.dev.js" }, "devDependencies": { "testcafe": "3.3.0",