intellij-ui-test-robot icon indicating copy to clipboard operation
intellij-ui-test-robot copied to clipboard

JListFixture collectItems returns truncated texts

Open victor-teles opened this issue 1 year ago • 1 comments

Hi! I'm using JListFixture to collect items from the quick-fix panel:

find<JListFixture>(byXpath("//div[@class='MyList']"), timeout)

But on the test, the list only contains truncated texts, I've printed the text to the console and unfortunately, it's not just a visual bug:

More details

Ran the tests on macOS Sonoma 14.1.2 (23B92)

kotlin 1.9.21 org.jetbrains.intellij 1.16.1

com.intellij.remoterobot:remote-robot 0.11.21 com.intellij.remoterobot:remote-fixtures 0.11.21 org.junit.jupiter:junit-jupiter-api 5.10.0

victor-teles avatar Dec 20 '23 12:12 victor-teles

Seems sometimes it is not enough to use list.width in JListTextCellReader. We need to parameterize this value.

nizienko avatar Dec 27 '23 11:12 nizienko