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 testcafe commands windows #5987

Merged
merged 4 commits into from
Oct 23, 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
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
Loading