Skip to content
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

Add some file system tests #34

Merged
merged 3 commits into from
Nov 8, 2024
Merged

Add some file system tests #34

merged 3 commits into from
Nov 8, 2024

Conversation

ianthomas23
Copy link
Member

This adds playwright tests related to the file system. These tests modify files/directories by running shell commands such as cp and touch, and checks that the changes are reflected in the JupyterLite contents manager.

To do this I hot swap the JupyterLab galata ContentsHelper
https://github.com/jupyterlab/jupyterlab/blob/9fb90cab96a67bef9050ab7cf917eb3cfdb55414/galata/src/contents.ts#L20
which works via the REST API for a different ContentsHelper which is part-implemented in this PR and uses the JupyterLite contents manager instead.

I am following the ContentsHelper approach to keep consistent with galata. This approach might be useful upstream in JupyterLite for tests like these:
https://github.com/jupyterlite/jupyterlite/blob/ac544cc2a2836aa8cb74fb280b2488bf43157e99/ui-tests/test/contents.test.ts#L33-L44

@ianthomas23 ianthomas23 added the enhancement New feature or request label Nov 8, 2024
Copy link

vercel bot commented Nov 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jupyterlite-terminal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 2:00pm

@ianthomas23 ianthomas23 merged commit f943371 into main Nov 8, 2024
10 checks passed
@ianthomas23 ianthomas23 deleted the test-fs branch November 8, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant