You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "limc5462 (via GitHub)" <gi...@apache.org> on 2026/03/18 16:47:14 UTC

[PR] e2e: fix dropdown options timeout by using anyMatch instead of visibi… [streampark]

limc5462 opened a new pull request, #4335:
URL: https://github.com/apache/streampark/pull/4335

   …lityOfAllElements
   
   <!--
   Thank you for contributing to StreamPark! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   ## Contribution Checklist
   
     - If this is your first time, please read our contributor guidelines: [Submit Code](https://streampark.apache.org/community/submit_guide/submit_code).
   
     - Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/streampark/issues).
   
     - Name the pull request in the form "[Feature] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
   
     - Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
   
     - If the PR is unfinished, add `[WIP]` in your PR title, e.g., `[WIP][Feature] Title of the pull request`.
   
   -->
   
   ## What changes were proposed in this pull request
   
   Currently, the E2E testing workflow is failing. The failure is caused by a "ghost node" interfering with the Selenium locator when it tries to interact with the dropdown options (such as the branch/refs selection) in ProjectsPage.
   Since StreamPark's frontend uses the Ant Design Vue `Select` component, its underlying engine (`rc-virtual-list`) renders a hidden dummy/measurement node in the DOM to calculate the dynamic height of options for virtual scrolling. This hidden node shares the exact same `.ant-select-item-option-content` class but inherently has empty text and remains invisible (`isDisplayed=false`). 
   This PR fixes the workflow failure by introducing visibility filtering. By ignoring these hidden placeholder nodes generated by the frontend virtual scroll, the E2E script can accurately locate and interact with the target options.
   
   
   <!--(For example: This pull request proposed to add checkstyle plugin).-->
   
   ## Brief change log
   
   - Fixed the failing E2E workflow by optimizing the `Select` interaction logic in the test cases.
   - Added `WebElement::isDisplayed` filtering when matching element collections such as `selectRefs`, safely bypassing the hidden measurement nodes generated by the frontend performance optimization.
   
   ## Verifying this change
   [x] Re-run the StreamPark E2E tests via the GitHub Actions workflow or locally.
   
   [x] Confirm that the previously failing ProjectsManagementTest— specifically the branch selection steps in Project creation — now passes stably. The fix has resolved the exceptions caused by invisible empty nodes.
   
   **Important Note: The E2E Workflow Will Still Fail**
   
   After merging this PR, the complete E2E test suite will still fail. This is expected, as other known issues remain. I will submit follow-up fixes immediately after this PR is merged​ to address these problems, until the entire workflow runs stably.
   合并此PR后,E2E测试**仍然会失败**,但这是**预期内**的,因为还有其他已知问题存在,我已经找到了修复方法。我会在**此PR合并后立即提交后续修复**来解决这些问题,直到整个工作流能够成功运行。
   
   <!--*(Please pick either of the following options)*-->
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   *(or)*
   
   This change is already covered by existing tests, such as *(please describe tests)*.
   
   *(or)*
   
   This change added tests and can be verified as follows:
   
   <!--*(example:)*
   - *Added integration tests for end-to-end.*
   - *Added *Test to verify the change.*
   - *Manually verified the change by testing locally.* -->
   
   ## Does this pull request potentially affect one of the following parts
    - Dependencies (does it add or upgrade a dependency): (yes / no)
    no
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] e2e: fix dropdown options timeout by using anyMatch instead of visibi… [streampark]

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys merged PR #4335:
URL: https://github.com/apache/streampark/pull/4335


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] e2e: fix dropdown options timeout by using anyMatch instead of visibi… [streampark]

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on PR #4335:
URL: https://github.com/apache/streampark/pull/4335#issuecomment-4087449404

   Thank you very much for your contribution. We look forward to more e2e fixes until the e2e CI failures are completely resolved.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] e2e: fix dropdown options timeout by using anyMatch instead of visibi… [streampark]

Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4335:
URL: https://github.com/apache/streampark/pull/4335#issuecomment-4084049619

   ## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4335) **Quality Gate passed**  
   Issues  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 New issues](https://sonarcloud.io/project/issues?id=apache_incubator-streampark&pullRequest=4335&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_incubator-streampark&pullRequest=4335&issueStatuses=ACCEPTED)
   
   Measures  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-streampark&pullRequest=4335&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4335&metric=new_coverage&view=list)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4335&metric=new_duplicated_lines_density&view=list)  
     
   [See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4335)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] e2e: fix dropdown options timeout by using anyMatch instead of visibi… [streampark]

Posted by "limc5462 (via GitHub)" <gi...@apache.org>.
limc5462 commented on PR #4335:
URL: https://github.com/apache/streampark/pull/4335#issuecomment-4084069338

   <img width="801" height="401" alt="QQ_1773852808284" src="https://github.com/user-attachments/assets/c48c4713-46cb-4e3d-84d6-1c2956df7d7c" />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] e2e: fix dropdown options timeout by using anyMatch instead of visibi… [streampark]

Posted by "limc5462 (via GitHub)" <gi...@apache.org>.
limc5462 commented on PR #4335:
URL: https://github.com/apache/streampark/pull/4335#issuecomment-4087654574

   > Thank you very much for your contribution. We look forward to more e2e fixes until the e2e CI failures are completely resolved.
   <img width="1432" height="339" alt="image" src="https://github.com/user-attachments/assets/7d832715-acf8-46f0-9a49-2ac8a0e1d298" />
   
   <img width="2503" height="424" alt="image" src="https://github.com/user-attachments/assets/af43b710-f04a-4539-97e3-ce3db2563667" />
   After ProjectsManagementTest is no longer a blocker, the new issue that has surfaced is insufficient device space.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org