Skip to content

🐞 Improve node connection test + 🧪 Add Argument component test - #401

Merged
MFA-X-AI merged 5 commits into
XpressAI:masterfrom
rabea-al:update-playwright-test
May 22, 2025
Merged

MFA-X-AI merged 5 commits into
XpressAI:masterfrom
rabea-al:update-playwright-test

Conversation

@rabea-al

Copy link
Copy Markdown
Contributor

Description

  • Updated the connect_nodes function to reliably verify node connections by comparing the number of links before and after the operation, instead of relying solely on port presence.
  • Removed the old test file arg_input_ui_test.py.
  • Added a new test connecting-args-test.py that covers all Argument component types and verifies the final output after execution.
  • The new test runs on both Chromium and Firefox browsers.

Pull Request Type

  • Xircuits Core (Jupyterlab Related changes)
  • Xircuits Canvas (Custom RD Related changes)
  • Xircuits Component Library
  • Xircuits Project Template
  • Testing Automation
  • Documentation
  • Others (Please Specify)

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Tests

To run the UI tests:

  1. Install dependencies:

    pip install xircuits
    pip install playwright
    playwright install
  2. Launch JupyterLab with the extension:

    jupyter lab --ServerApp.token= --ServerApp.password= --LabApp.default_url=/lab?reset
  3. From a separate terminal, run one or more of the following UI tests:

    cd ui-tests/tests
    
    python connecting-args-test.py
    

Tested on? Specify Version.

  • Windows
  • Linux
  • Mac
  • Fedora

@github-actions

Copy link
Copy Markdown

Binder 👈 Launch a binder notebook on branch rabea-al/xircuits/update-playwright-test

@MFA-X-AI MFA-X-AI left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like there's some git conflict from the previous PR. Let me know if you need me to fix it on our end.

@MFA-X-AI MFA-X-AI left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm seeing a git conflict on this. Could you resolve it so we can merge it? Thanks!

@rabea-al rabea-al changed the title update Playwright tests 🐞 Improve node connection test + 🧪 Add Argument component test May 21, 2025
rabea-al added 2 commits May 21, 2025 17:30
Replace old Argument test with new one
@rabea-al
rabea-al marked this pull request as draft May 21, 2025 15:16
@rabea-al
rabea-al force-pushed the update-playwright-test branch from e03ed33 to ad9aa51 Compare May 22, 2025 07:34
@rabea-al
rabea-al requested a review from MFA-X-AI May 22, 2025 09:23
@rabea-al
rabea-al marked this pull request as ready for review May 22, 2025 09:24
@MFA-X-AI
MFA-X-AI merged commit c1b010a into XpressAI:master May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants