wttech / coge2e Goto Github PK
View Code? Open in Web Editor NEWCognifide default setup for Puppeteer and Protractor tests.
License: MIT License
Cognifide default setup for Puppeteer and Protractor tests.
License: MIT License
If you try running the setup on a case-sensitive file system (hello, fellow Linux users!) you'll get the following error (this is for Protractor, but the same is true for Puppeteer):
Could not read packageTemplate.json file in the ${tool} folder! { Error: ENOENT: no such file or directory, lstat '/home/user/npm/lib/node_modules/@cognifide/e2e/templates/Protractor' errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/home/user/npm/lib/node_modules/@cognifide/e2e/templates/Protractor' }
This is caused by the fact that the Linux file system, unlike OS X and Windows, is case-sensitive. So the node modules installed for the user have the path ".../@cognifide/e2e/templates/protractor" and ".../@cognifide/e2e/templates/puppeteer", while the options in questions.js point to "Protractor" and "Puppeteer".
A quick workaround was to rename the dirs in my local node_modules but it would be cool to address this issue in the future by either changing the choices in questions.js to lowercase (seems a bit better) or renaming the template subfolders (clunky). This shouldn't break anything for all the other users but make our lives a bit easier :)
Tests can be run on specific environment by running scripts like npm run test:prod.
but there's no info where to find and modify the list of available environments (compare with the much more descriptive Protractor setup info).
Created example scenarios should use dedicated example page.
For example:
Update Puppeteer specs in order to match patterns we discussed and implemented in #2
Please add installation snippet via yarn and npx
"How to write protractor tests" is used in both Puppeteer section and Protractor secion
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.