devexpress / angular-testcafe Goto Github PK
View Code? Open in Web Editor NEWAngular builder to run testcafe tests
License: MIT License
Angular builder to run testcafe tests
License: MIT License
Hi,
Anything from todo list is up for grabs? I could prepare some changes if you accept pull reqs.
Please consider adding an Angular schematic to
angular.json
to use the TestCafe builderIf support for ng-add
is implemented, it'll help users adopt TestCafe more easily.
For reference, please check out the schematic for Protractor and WebdriverIO.
Once the schematic is available, we'll add TestCafe to the Angular CLI (see angular/angular-cli#20503). Please feel free to reach out if you have any questions!
After tests run (no matter if they pass or fail), execution doesn't halt in Angular 14. Cloning your project worked (Angular 13). Here is my configuration: { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "usermgmt": { "projectType": "application", "schematics": { "@schematics/angular:component": { "style": "scss" }, "@schematics/angular:application": { "strict": true } }, "root": "", "sourceRoot": "src", "prefix": "app", "architect": { "build": { "builder": "ngx-build-plus:browser", "options": { "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ "src/favicon.ico", "src/assets", "src/silent-refresh.html" ], "styles": ["src/styles.scss"], "scripts": [], "allowedCommonJsDependencies": ["color"], "extraWebpackConfig": "webpack.config.js", "commonChunk": false }, "configurations": { "production": { "budgets": [ { "type": "initial", "maximumWarning": "5mb", "maximumError": "5mb" }, { "type": "anyComponentStyle", "maximumWarning": "2kb", "maximumError": "4kb" } ], "fileReplacements": [ { "replace": "src/environments/environment.ts", "with": "src/environments/environment.prod.ts" } ], "outputHashing": "all", "extraWebpackConfig": "webpack.prod.config.js" }, "development": { "buildOptimizer": false, "optimization": false, "vendorChunk": true, "extractLicenses": false, "sourceMap": true, "namedChunks": true } }, "defaultConfiguration": "production" }, "serve": { "builder": "ngx-build-plus:dev-server", "configurations": { "production": { "browserTarget": "usermgmt:build:production", "extraWebpackConfig": "webpack.prod.config.js" }, "development": { "browserTarget": "usermgmt:build:development", "proxyConfig": "proxy.conf.json" } }, "defaultConfiguration": "development", "options": { "port": 4201, "publicHost": "http://localhost:4201", "extraWebpackConfig": "webpack.config.js" } }, "extract-i18n": { "builder": "ngx-build-plus:extract-i18n", "options": { "browserTarget": "usermgmt:build", "extraWebpackConfig": "webpack.config.js" } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.spec.json", "karmaConfig": "karma.conf.js", "codeCoverage": true, "inlineStyleLanguage": "scss", "assets": ["src/favicon.ico", "src/assets"], "styles": ["src/styles.scss"], "scripts": [] } }, "e2e": { "builder": "angular-testcafe:testcafe", "options": { "devServerTarget": "usermgmt:serve", "browsers": ["chrome:headless --no-sandbox"], "src": ["e2e/*.ts"], "skipJsErrors": true, "reporters": [ { "name": "spec" }, { "name": "xunit", "output": "report.xml" } ] } } } } } }
Hi, please consider building a plugin to Nrwl NX https://github.com/nrwl/nx.
ng e2e
gives me the following warning message at Angular in version 12.1.2:
"TestcafeBuilderOptions" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID.
No Angular Server is started. You have to start ng serve
separately. No advantage currently visible with this library.
An Angular Schematic for this library would be really very helpful.
Hi All,
with Angular 13 the angular-testcafe is not working anymore. Previously the keyword "id" for specifying schema ID was just deprecated, but now it became unsupported.
I'm opening a pull request with the new syntax that uses id$
to support Angular 13.
Hi, I've noticed that in #79 the problem with the changed Schema was fixed. However, this fix was merged, it was never released.
Can we organize a new release?
Please add support for the "window-size" parameter.
12.7.0
to 12.7.1
.This version is covered by your current version range and after updating it in your project the build failed.
@types/node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
when running in angular 14 we get SyntaxError: cannot use ??
unparenthesized within ||
and &&
expressions
all test fail because of this error in hammerhead
no error
cant share
fixture board tests
.page(E2eConstants.URL)
.beforeEach(async (t) => {
await t
.maximizeWindow() --> fails here
.useRole(roles.testUser)
await NavigationBL.navigateFromLoginToOverview();
})
No response
No response
No response
1.19.0
16.15.1
set TESTCAFE_ENV=https://localhost:4200/ && testcafe chrome ./e2e/src/tests
102.0 (64-bit), chrome 103.0.5060.66 (Official Build) (64-bit)
No response
No response
Is it possible to create a property in schemas (f.e. configFilePath) to set up .testcaferc.json location instead of configure options separately.
It will be nice when you already have a .testcaferc.json and you don't want to describe everything again in angular.json file.
Another advantage is to have all configurations in one place.
Thanks in advance.
Hi,
i am not quite sure but it seems that the schema is not matching the requirements for the src file list parser.
https://github.com/DevExpress/testcafe/blob/master/src/utils/parse-file-list.js#L35
When i change the schema, from string to array - it seems to be working.
Please have a look.
Kind regards and thanks for this package.
0.803.2
to 0.803.3
.This version is covered by your current version range and after updating it in your project the build failed.
@angular-devkit/architect is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
The pageRequestTimeout config was added in 1.11.0.
It is not part of the schema.json so I cannot use it without getting an errror.
We depend on it to test a legacy application which tends to load slowly.
Is it possible to add it ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.