-
Notifications
You must be signed in to change notification settings - Fork 268
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
First end to end test #2923
First end to end test #2923
Conversation
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 added a few more comments below, but nothing important, feel free to ignore if you disagree :).
Also didn’t mention it before, but I tested this on my machine and make e2e
did all the magic and it worked out of the box. (Although the test was failing, for the same reason it fails in CI).
One more suggestion, I often find it helpful to open a shell in the container then run commands directly in the container, because that sometimes makes it a faster to iterate, so instead of running make e2e
repeatedly, when I’m actively working on tests, I’d prefer to run make e2e-shell
(as a convenience), and then run make e2e-local
in the container. Would it be ok if I added that to the Makefile?
Co-authored-by: Till Prochaska <mail@tillprochaska.de>
@tillprochaska I was looking at adding the Just for comparison: here's my workflow when doing iterations during writing a test: I bring up Aleph with |
Just to make sure I’m not misunderstanding you: You run
Yep, makes sense. I was going to look into doing this while running Playwright in Docker, but I assume this probably requires some fairly complex configuration, so probably not worth it. Let’s just ignore my comment about this for now. I’ll try to figure out a workflow that works well for me first, and then I can always add something to the Makefile later :) |
I'm running it on my host machine. |
Oh, just noticed one more thing. When running the tests locally, they write to my local dev database and ES index -- I think it would be good to use a test database and index here as well, so it can be deleted/reset easily. For our current Python tests, we override the settings here: https://github.com/alephdata/aleph/blob/main/aleph/tests/util.py#L32 |
I'll take this as an item into the discussion next week. To me it was practical at times to be able to open up my local Aleph installation and check what the tests have done, but having a clean env makes sense to me. |
Might be good to have some cleanup in place for when the tests finish running? |
How to review this: run
make e2e
. You can run the visual debugger by runningPWDEBUG=1 make e2e
.TODOS
[e2e]