Comments (5)
@layik Looks like the e2e tests go wrong only on release
, i.e. when the Upgrade tgve.js
job (which looks a bit weird) runs. I'll have a look at this in more detail tomorrow.
from app.
It [e2e] works only by splitting it, should work in one file too!
3f8b731
from app.
Hi @rolyp, just noticed that above commit passed in what is e2e.yml
in branch issue55 but this one fails
7d0771e
I doubt it is anything to do with macOS? I will ask for your review of the PR.
from app.
Some notes:
-
It’s important to run with
dumpio
enabled inpuppeteer.launch
. Timeouts because no element matches a selector are often masked by genericProtocolError: Protocol error (Runtime.callFunctionOn): Target closed
. By default Puppeteer absorbs any console output from the web app. -
Testing against the file protocol and build directory seemed to cause React error 321 (duplicate copy of React) error to resurface, even with the script to purge React from the copy of
tgvejs
inapp
. This was resolved by switching back to a webserver and regular URLs. -
The “Upgrade tgve.js” step was also causing problems, and anyway seemed hard to justify. The decision to upgrade
tgve.js
should be taken by the user, not automatically by a build script, and such a change shouldn’t be commited before tests have been run. Removed this step. -
Removed the “Set homepage” step and instead do this in the Build [release] step via
PUBLIC_URL
. -
Fixed the problem where the tests were running against the node-installed version of
tgvejs
, rather than the version checked out in GitHub Actions. Theapp
tests now run against thedevelop
branch oftgvejs
. In other words, pushing totgvejs
may invalidate the tests onapp
, although that won’t become apparent until the next build ofapp
. -
Existing
App.js.test
script wasn’t contributing much. Deleted. -
Ensuring the e2e tests start up properly (without the webserver startup causing the first test to time out) and shutdown properly is done using
concurrently
andwait-on
(see theyarn test
script for more information).
from app.
All noted. I think as said on Slack, the e2e needs to move under tgvejs.
from app.
Related Issues (19)
- Sync `homepage` with `history` API HOT 1
- Migrate away from geoplumber HOT 1
- Hosted instance workflow HOT 2
- nbval test
- Weekly build HOT 2
- Fix repo rename issues & update docs HOT 2
- Ignore README changes in actions
- Pushing to branch doesn't trigger build
- Merge `app` and `full-app` HOT 9
- Move to `full-app`
- Consolidate Flask documentation
- Webserver produced by Flask script fails with syntax error in `[...].chunk.js` file HOT 8
- Executable docs for R app hosting HOT 2
- Actions does not run when template is forked HOT 3
- Delete or verify `reproducible.Rmd`
- UI testing strategy
- Image snapshot testing with Puppeteer HOT 3
- Add data source to last build in actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app.