Skip to content

Conversation

ugur-vaadin
Copy link
Contributor

Description

Extracts the static method getItems for virtual list elements to a helper class.

Type of change

  • Bugfix
  • Feature
  • Test

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/contributing/overview
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.


public class VirtualListHelpers {

public static JsonArray getItems(WebDriver driver, WebElement element) {
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if this should be part of VirtualListElement instead so that it can be used in custom ITs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I considered that too, but couldn't be sure. What do you think? Would it be worth having an explicit API there?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the API could use some more thought, returning a JsonArray is both confusing and inconvenient. Let's keep this internal for now.

@sissbruecker sissbruecker enabled auto-merge (squash) August 18, 2025 08:29
Copy link

@sissbruecker sissbruecker merged commit 1a52ea0 into main Aug 18, 2025
5 checks passed
@sissbruecker sissbruecker deleted the test-extract-getting-items-into-helper-class branch August 18, 2025 08:41
vaadin-bot pushed a commit that referenced this pull request Aug 19, 2025
Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>
vaadin-bot pushed a commit that referenced this pull request Aug 19, 2025
Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>
sissbruecker added a commit that referenced this pull request Aug 19, 2025
Co-authored-by: Ugur Saglam <106508695+ugur-vaadin@users.noreply.github.com>
Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>
sissbruecker added a commit that referenced this pull request Aug 19, 2025
Co-authored-by: Ugur Saglam <106508695+ugur-vaadin@users.noreply.github.com>
Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants