Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dev testcafe commands #5973

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/survey-creator-angular/.testcaferc.dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

module.exports = {
"browsers": [`chrome:${require("puppeteer").executablePath()}`],
"nativeAutomation": "true",
}
4 changes: 2 additions & 2 deletions packages/survey-creator-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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]\" "
}
Expand Down
5 changes: 5 additions & 0 deletions packages/survey-creator-js/.testcaferc.dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

module.exports = {
"browsers": [`chrome:${require("puppeteer").executablePath()}`],
"nativeAutomation": "true",
}
12 changes: 6 additions & 6 deletions packages/survey-creator-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions packages/survey-creator-knockout/.testcaferc.dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

module.exports = {
"browsers": [`chrome:${require("puppeteer").executablePath()}`],
"nativeAutomation": "true",
}
12 changes: 6 additions & 6 deletions packages/survey-creator-knockout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions packages/survey-creator-react/.testcaferc.dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

module.exports = {
"browsers": [`chrome:${require("puppeteer").executablePath()}`],
"nativeAutomation": "true",
}
12 changes: 6 additions & 6 deletions packages/survey-creator-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions packages/survey-creator-vue/.testcaferc.dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

module.exports = {
"browsers": [`chrome:${require("puppeteer").executablePath()}`],
"nativeAutomation": "true",
}
4 changes: 2 additions & 2 deletions packages/survey-creator-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down