Repository navigation
Add Playwright Tests - #394
Merged
Merged
Conversation
MFA-X-AI
reviewed
Apr 19, 2025
MFA-X-AI
left a comment
Member
There was a problem hiding this comment.
Thanks for the PR! Since we're going to upgrade to Jupyterlab 4.4 soon, these tests will come in handy. A few additional requests:
- I noticed that you're using the gradio library. If possible, I'd like you to not use another library for testing, this is to not introduce unintended dependencies. For example if say for some reason we update the GradioInterface component to not use dynaports anymore, then this test would break. You can make a dynaport component in the xai-tests, or use the existing one.
- I noticed that the test breaks on python 3.8. I think this is fine since we're dropping support for 3.8 anyways, but wanted to know the reason for it to fail.
Contributor
Author
|
Thanks for the feedback! That makes sense — I'll remove the Gradio dependency and replace it with either an existing dynaport component or a custom one within xai-tests. Will update the PR shortly. Yes, the failure is due to using list[str] syntax, which is only supported in Python 3.9+. Since we’re dropping 3.8 support, I kept it as-is. |
Contributor
Author
|
I created a PR to add a new component to xai-tests |
Member
|
okay, I've updated merge that PR. Feel free to update the tests so it pulls from xai-tests |
MFA-X-AI
approved these changes
Apr 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a new set of UI automation tests using Playwright (Python) located under
ui-tests/.These tests aim to verify key Xircuits canvas behaviors such as:
This PR also updates the
README.mdfile underui-tests/to document how to run the tests.New or Updated Files
arg_input_ui_test.pyremote_run_arguments_test.pyparameter-names-autoshift.pyparameter-names-despawn.pyparameter-names-spawn.pyprotected-nodes-and-lock-test.pyREADME.mdPull Request Type
Type of Change
Test
Launch JupyterLab with the extension loaded:
jupyter lab --ServerApp.token= --ServerApp.password= --LabApp.default_url=/lab?resetFrom a separate terminal, run one or more UI tests:
cd ui-tests python arg_input_ui_test.py python remote_run_arguments_test.py python autospawn_and_despawn_ports_test.py python protected-nodes-and-lock-test.pyOn CI, tests are triggered via GitHub Actions on every push and pull request.
Or you can read README file in ui-test
Tested On