percy / percy-selenium-java

Visual testing with Java Selenium and Percy
https://docs.percy.io/docs/java-selenium
MIT License
12 stars 17 forks source link

percy-selenium-java 1.1.0 doesn't work together with @percy/cli@1.16.0 #176

Closed it-ony closed 1 year ago

it-ony commented 1 year ago

The problem

calling .snapshot("name") throws

java.lang.ClassCastException: class com.google.common.collect.Maps$TransformedEntriesMap cannot be cast to class java.lang.String (com.google.common.collect.Maps$TransformedEntriesMap is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap')

with @percy/cli = 1.16.0

Environment

Code to reproduce issue

npm install -g @percy/cli@1.16.0
PERCY_TOKEN=<YOUR_TOKEN> percy exec:start

see that simple test

Details

works with @percy/cli on version 1.14.0

basically, there error is that the new version returns a map with the keys, html, warnings and resources instead (my assumption) the html only.

itsjwala commented 1 year ago
it-ony commented 1 year ago

I can confirm it's fixed with v.1.2.0