Skip to content

Commit

Permalink
Fix testcafe commands windows (#5987)
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 authored Oct 23, 2024
1 parent 8e503b8 commit 142bc0d
Show file tree
Hide file tree
Showing 52 changed files with 23 additions and 23 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"version": "0.0.1",
"scripts": {
"dev": "concurrently \"npm run dev --prefix ../survey-library\" \"http-server -p 7777 --silent\" \"npm run watch:dev --prefix packages/survey-creator-core\" \"npm run watch:prod --prefix packages/survey-creator-core\" \"npm run watch:dev --prefix packages/survey-creator-knockout\" \"npm run watch:prod --prefix packages/survey-creator-knockout\" \"npm run watch:dev --prefix packages/survey-creator-react\" \"npm run watch:prod --prefix packages/survey-creator-react\" ",
"lint": "eslint ./packages --quiet && eslint ./testCafe --quiet && eslint ./visualRegressionTests --quiet",
"lint": "eslint ./packages --quiet && eslint ./functionalTests --quiet && eslint ./visualRegressionTests --quiet",
"pre-push-check": "npm run lint",
"prepare": "husky install"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/survey-creator-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
"scripts": {
"build": "ng build && node ./update-version.js",
"serve:example": "ng serve",
"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",
"testcafe": "testcafe ../../functionalTests/ --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 ../../functionalTests/ --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",
Expand All @@ -82,4 +82,4 @@
"test:single": "ng test --watch=false --browsers=ChromeHeadless survey-creator-angular",
"release": "standard-version --message \"Release: %s [azurepipelines skip]\" "
}
}
}
10 changes: 5 additions & 5 deletions packages/survey-creator-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"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 ../../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 ../../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": "testcafe ../../functionalTests/ --app \"http-server\" --selector-timeout 1500 --config-file .testcaferc.dev.js",
"testcafe:ci": "testcafe ../../functionalTests/ --app \"http-server --silent \" --selector-timeout 1500 --reporter minimal",
"testcafe:file": "testcafe ../../functionalTests/designer/page-navigator.ts --app \"http-server --silent \" --reporter minimal --debug-mode --config-file .testcaferc.dev.js",
"testcafe:a11y": "testcafe ./testCafe/accessibility.js --app \"http-server --silent \" --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 ../../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",
Expand Down Expand Up @@ -89,4 +89,4 @@
"survey-creator-core": "../survey-creator-core/build",
"survey-js-ui": "../../../survey-library/build/survey-js-ui"
}
}
}
10 changes: 5 additions & 5 deletions packages/survey-creator-knockout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"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 ../../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": "testcafe ../../functionalTests/ --app \"http-server\" --selector-timeout 1500 --config-file .testcaferc.dev.js",
"testcafe:file": "testcafe ../../functionalTests/designer/page-navigator.ts --app \"http-server --silent \" --reporter minimal --debug-mode --config-file .testcaferc.dev.js",
"testcafe:a11y": "testcafe ./testCafe/accessibility.js --app \"http-server --silent \" --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",
"testcafe:ci": "testcafe ../../functionalTests/ --app \"http-server --silent \" --selector-timeout 1500 --reporter minimal",
"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",
Expand Down Expand Up @@ -93,4 +93,4 @@
"tag": true
}
}
}
}
10 changes: 5 additions & 5 deletions packages/survey-creator-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"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 ../../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 ../../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": "testcafe ../../functionalTests/ --app \"http-server\" --selector-timeout 1500 --config-file .testcaferc.dev.js",
"testcafe:ci": "testcafe ../../functionalTests/ --app \"http-server --silent \" --selector-timeout 1500 --reporter minimal",
"testcafe:file": "testcafe ../../functionalTests/designer/page-navigator.ts --app \"http-server --silent \" --reporter minimal --debug-mode --config-file .testcaferc.dev.js",
"testcafe:a11y": "testcafe ./testCafe/accessibility.js --app \"http-server --silent\" --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 ../../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",
Expand Down Expand Up @@ -97,4 +97,4 @@
"tag": true
}
}
}
}
6 changes: 3 additions & 3 deletions packages/survey-creator-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"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 ../../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 ../../testCafe/ --app \"npm run serve:example:prod\" --selector-timeout 1500 --config-file .testcaferc.dev.js"
"testcafe:ci": "testcafe ../../functionalTests/ --app \"npm run serve:example:prod\" --selector-timeout 1500 --reporter minimal",
"testcafe": "testcafe ../../functionalTests/ --app \"npm run serve:example:prod\" --selector-timeout 1500 --config-file .testcaferc.dev.js"
},
"devDependencies": {
"testcafe": "3.3.0",
Expand Down Expand Up @@ -52,4 +52,4 @@
"vue-tsc": "^1.0.8",
"puppeteer": "23.5.3"
}
}
}
2 changes: 1 addition & 1 deletion visualRegressionTests/helper.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createScreenshotsComparer, ScreenshotsComparer } from "devextreme-screenshot-comparer";
import { ClientFunction, Selector } from "testcafe";
export * from "../testCafe/helper";
export * from "../functionalTests/helper";

export const getSurveyJSFramework = ClientFunction(() => {
return window["surveyJSFramework"];
Expand Down

0 comments on commit 142bc0d

Please sign in to comment.