-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Make docker integration available for other projects #157
Conversation
0c2f19d
to
f0eb9c7
Compare
30c853d
to
5d775fb
Compare
@skjnldsv Added an additional commit fixing the flaky cypress tests by ensuring the user is logged out after the tests. |
I think it would be nice to find a different solution there. If you run a test locally and it fails it's nice to be able to inspect the state of the browser. If the test logs you out in an I'm happy to brainstorm alternative solutions or try out some things. |
5d775fb
to
6a803e0
Compare
@max-nextcloud I changed it to |
6a803e0
to
f0eb9c7
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #157 +/- ##
=======================================
Coverage 96.47% 96.47%
=======================================
Files 5 5
Lines 85 85
Branches 4 4
=======================================
Hits 82 82
Misses 3 3 ☔ View full report in Codecov by Sentry. |
You seem to be doing some changes still, so I set it to |
0075359
to
800a1ac
Compare
800a1ac
to
f5be501
Compare
f5be501
to
31a461f
Compare
Anything I need to do here? :) |
.then(waitOnNextcloud) | ||
// configure Nextcloud, also install and enable the `viewer` app | ||
.then(() => configureNextcloud(['viewer'])) |
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.
How can I mount the local Viewer if I'm running Cypress in https://github.com/nextcloud/viewer though?
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.
Edit: No just leave it as it is, because viewer is mounted (as it is the app, see startNextcloud
).
Then later on in configureNextcloud
it checks for the app to be preset locally first and will detect the local viewer and enable it.
As this is your target app it will be mounted automatically, but as viewer is installed by default you need to make sure to disable mounting of the vendored one
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.
So, I can't use this configureNextcloud
and have to keep mine?
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.
what do you mean? If you want to test the local viewer you do not need to adjust anything simply do as the readme says and the local viewer will be used
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.
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.
I updated the jsdocs here to reflect this.
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.
Tested this when adding cypress tests to the data_request
app here: nextcloud/data_request#197. Works like a charm 🪄
Also replaced the imports in the viewers cypress.config.js
and it runs fine.
Thanks a lot for making this available to everyone! ❤️
* Provide the docker helpers as `@nextcloud/cypress/docker` import. * Allow installing custom required apps for testing * Handle `text` app which is not in the appstore but also not bundled * Allow to autodetect current app, or set one, and bind mount the directory for testing the app Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Vendored apps are apps which are not provided with the appstore but released with the server, for the shallow server those apps have to be cloned. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: Max <max@nextcloud.com>
6cab418
to
e008cf6
Compare
From my point of view everything was addressed.
Resolves #97
@nextcloud/cypress/docker
import.text
app which is not in the appstore but also not bundled