-
Notifications
You must be signed in to change notification settings - Fork 14
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
ci(PPDSC-2017): newskit integration test #183
Conversation
You can preview these changes on: |
echo "Installing needed packages into the NextJS app" | ||
|
||
cd newskit-integration-test | ||
yalc add newskit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. It seems that with yalc add my-package
, we don't need yarn link
anymore. I assume any local changes in newskit will be reflected in this react app automatically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was having some issues when using yarn link
. facebook/react#14257.
Only yalc
helped me. Not sure if at the end worked cos react needed to be downgraded. Anyway, overall, yalc seem to be better thank yarn link!
Co-authored-by: Evgeni Nikolov <evgeni.nikolov@news.co.uk>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super cool, this is very much how I imagined as well 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Co-authored-by: James Spencer <james.spencer@news.co.uk>
* docs(PPDSC-0000): testing permissions * docs(PPDSC-0000): removing test changed from readme * ci(PPDSC-2017): created job and script for integr test * ci(PPDSC-2017): added job in pr workflow * ci(PPDSC-2017): removed yarn build and imrpoved requires * ci(PPDSC-2017): improved comments in template, added back yarn build * ci(PPDSC-2017): updated template * ci(PPDSC-2017): removed index.js * ci(PPDSC-2017): added -p flag in mkdir command * ci(PPDSC-2017): adding caching and fixing last run * ci(PPDSC-2017): fixed chaching and increased v * ci(PPDSC-2017): changing executor and how install cy * ci(PPDSC-2017): added note in MakeFile, updated Cy installation * ci(PPDSC-2017): testing speed with no cache * ci(PPDSC-2017): improved cy config and tests * ci(PPDSC-2017): improve comment in makefile, yalc publish and spec fix * ci(PPDSC-2017): adding test job in workflows * ci(PPDSC-2017): improved naming step * Update Makefile Co-authored-by: Evgeni Nikolov <evgeni.nikolov@news.co.uk> * Update scripts/templates-integration-test/index.txt Co-authored-by: James Spencer <james.spencer@news.co.uk> Co-authored-by: Evgeni Nikolov <evgeni.nikolov@news.co.uk> Co-authored-by: James Spencer <james.spencer@news.co.uk>
PPDSC-2017
What
Created new CircleCi job
test_newskit_in_nextjs_app
.It Installs needed packages (yalc, create-next-app, etc.)
Creates the NextJs app
Prepares the NExt App adding files(for cy) and overriding the index.js, also installs other packages.
Once the app is ready, through
start-server-and-test
serves the app and tests it using cy.Created folder in
scripts
containing few template files for this app.Also replicated the issue we released, importing the scenario from the wrong file. The app crashed and the test failed.
it failed even before cy opening the page.
start-server-and-test
does check already for 200 before testing.@jps
Cy might actually not be needed, BUT is a nice setting and nice to have if we foresee adding CY integration tests in the future. If not
start-server-and-test
will be all we need and we can remove CY reducing the job time by around 1 min.I have done:
I have tested manually:
Before:
After:
Who should review this PR:
How to test: