Skip to content

chore: refresh all examples for Visual Regression Tracker 6.0 - #25

Merged
pashidlos merged 1 commit into
masterfrom
chore/refresh-examples
Nov 2, 2026
Merged

pashidlos merged 1 commit into
masterfrom
chore/refresh-examples

Conversation

@pashidlos

Copy link
Copy Markdown
Member

Updates all seven modules to the current, published sdk-java and libraries. Adds compile-only CI and Dependabot.

Versions

  • sdk-java: 5.5.0 from JitPack in every module. Before, the modules were on 4.5.1 to 5.1.1, and 5.1.1 returns 404 on JitPack. 5.x start/stop/track throw InterruptedException, and the tests now declare it.
  • Java: 17 (maven.compiler.release / options.release). Selenide 7 and JUnit 6 need it.
  • Libraries:
    • Selenium 3.141 → 4.52. Selenium Manager finds the driver, so WebDriverManager is gone.
    • Playwright 0.170 → 1.64. The separate driver-bundle is gone.
    • Selenide 5 → 7.19.
    • JUnit 5.6 → 6.1 (allure module); JUnit 4.12 → 4.13.2 (Maven modules).
    • TestNG 6 → 7.12.
    • Appium java-client 7 → 11: AppiumBy, XCUITestOptions, Duration waits.
    • JDI Light 1.3 → 1.6: the package moved from com.epam.jdi.tools to com.jdiai.tools, and TestNG 7 has no getRetryAnalyzer().
    • PDFBox 2 → 3 (Loader.loadPDF).
    • Allure gradle plugin 2.8 → 4.3.
  • Gradle: 6.1/6.5 → 9.8.2 wrappers. selenide-gradle failed to configure because the compile configuration no longer exists.

Fixes

  • Demo site: automationpractice.com is gone. The browser examples now use https://the-internet.herokuapp.com and run headless.
  • CompareFromFile: String.valueOf(status) was compared with "autoApproved". That never matched (the value is AUTO_APPROVED), so auto-approved images counted as failures. The status is now compared as the TestRunStatus enum.
  • Test discovery: surefire only picks up *Test classes, so mvn test silently ran nothing in selenium-maven and playwright. The classes are now SeleniumExampleTest and PlaywrightExampleTest.
  • Configs: all examples use the defaults of a fresh install: http://localhost:4200, DEFAULTUSERAPIKEYTOBECHANGED, Default project. The API keys and project ids of old installs are removed.

CI and Dependabot

  • CI: each module compiles its tests (mvn test-compile / ./gradlew testClasses). CI compiles only, because the examples need a browser, a VRT server and, for appium, an iOS simulator.
  • Dependabot: Maven (5 dirs), Gradle (2 dirs) and github-actions, with minor/patch, major and security groups.

Verified

  • All seven modules compile.
  • selenium-maven, playwright and selenide-gradle ran locally against a throwaway VRT api:6.0.0-rc1 stack: tests passed, and the test runs and stopped builds are visible on the server.
  • jdi-light and appium were only compiled; they need the JDI demo login and an iOS simulator.

Closes the Dependabot PRs #24, #23 and #16 (TestNG and commons-io are now past their targets).

🤖 Generated with Claude Code

- every module on sdk-java 5.5.0 (JitPack) and Java 17, with throws
  InterruptedException for its start/stop/track
- Selenium 4.52 with Selenium Manager instead of WebDriverManager,
  Playwright 1.64, Selenide 7, JUnit 6, TestNG 7, Appium java-client 11,
  JDI Light 1.6, PDFBox 3; Gradle 9.8.2 wrappers
- the-internet.herokuapp.com instead of the dead automationpractice.com,
  headless, default connection of a fresh VRT install
- CompareFromFile compares the TestRunStatus enum, so autoApproved counts
  as passed
- Maven test classes end in Test so surefire runs them
- compile-only CI for all seven modules; Dependabot config

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pashidlos
pashidlos merged commit 164d105 into master Nov 2, 2026
7 checks passed
@pashidlos
pashidlos deleted the chore/refresh-examples branch November 2, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant