Repository navigation
test(testnet): follow same-origin NFT links in the current tab - #275
Conversation
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 4 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the Playwright test suite to support both same-tab and popup navigation based on the token link's target attribute, and adds a Python unit test to verify these changes. Feedback suggests wrapping the waitForLoadState call in a conditional check to prevent potential race conditions during same-tab navigation, and using regular expressions in the Python unit test instead of exact string matching to make the test more robust against minor formatting changes.
|
Final-head independent delta review of f561667 is CLEAN_PASS, no P0-P3 findings. Both native comments were fixed and resolved; affected source guard, node syntax and diff checks pass. Actual browser search-to-address and domain-to-NFT flows have now completed on the deployed runtime, with same-tab navigation confirmed. Required final-head CI remains the only merge gate. This PR is test-only and does not trigger a runtime deployment. |
|
Completed: final-head dependency CI run 40203120252 passed, including 104 tests in 45.462s and real pinned adapter startup. Required review/conversation gates passed; merged as 33f1e90. Merged tree is identical to reviewed/tested head f561667. This test-only merge leaves the verified Testnet runtime at f537c03; Deploy Config was not triggered. Runtime/browser/contract acceptance and explicit limitations are recorded on PR274. |
Summary
_blanklinks require a popup.Verification
📌 TL;DR
This PR updates the Testnet UI E2E test to handle token links that navigate in the same tab (rather than always opening a popup), and adds a corresponding unit test to enforce this navigation logic in the test suite.
🎯 Type of Change
🔍 Changes Walkthrough
.github/scripts/testnet-bens-ui.spec.mjstargetattribute of the token link. Iftarget="_blank", it waits for a popup; otherwise, it navigates in the current page. It also prevents closing the main page if navigation occurred in the same tab..github/scripts/tests/test_validate_testnet_bens.pytest_browser_nft_guard_accepts_same_tab_and_popup_navigationthat verifies the E2E spec file contains the expected logic for handling both same-tab and popup navigation scenarios.📊 Architectural Flow
flowchart TD A[Start Test: DOS Name Search] --> B[Locate Token Link] B --> C{Check 'target' Attribute} C -->|"_blank"| D[Wait for Popup Event] C -->|Other| E[Click Link in Same Tab] D --> F[Set tokenPage to Popup] E --> G[Set tokenPage to Main Page] F --> H[Wait for DOM Content Loaded] G --> H H --> I[Assert URL & Content] I --> J{Is tokenPage != Main Page?} J -->|Yes| K[Close Popup] J -->|No| L[Skip Close] K --> M[End Test] L --> M