diff --git a/web/build.gradle.kts b/web/build.gradle.kts index 4d44525..2b8ba31 100644 --- a/web/build.gradle.kts +++ b/web/build.gradle.kts @@ -27,7 +27,7 @@ dependencies { testImplementation(platform("org.junit:junit-bom:6.1.3")) testImplementation("org.junit.jupiter:junit-jupiter") testRuntimeOnly("org.junit.platform:junit-platform-launcher") - testImplementation("com.microsoft.playwright:playwright:1.63.0") + testImplementation("com.microsoft.playwright:playwright:1.64.0") testImplementation("com.github.romankh3:image-comparison:4.4.0") testImplementation("org.assertj:assertj-core:3.27.7") testImplementation("org.testcontainers:testcontainers:2.0.5") diff --git a/web/playwright/expected/firefox_a4_image_expected.png b/web/playwright/expected/firefox_a4_image_expected.png index e2db7c3..afb1213 100644 Binary files a/web/playwright/expected/firefox_a4_image_expected.png and b/web/playwright/expected/firefox_a4_image_expected.png differ diff --git a/web/playwright/expected/firefox_c6onA4_image_expected.png b/web/playwright/expected/firefox_c6onA4_image_expected.png index 5b35297..dc67b13 100644 Binary files a/web/playwright/expected/firefox_c6onA4_image_expected.png and b/web/playwright/expected/firefox_c6onA4_image_expected.png differ diff --git a/web/playwright/expected/firefox_card_bw_expected.png b/web/playwright/expected/firefox_card_bw_expected.png index 224f60c..30d0eee 100644 Binary files a/web/playwright/expected/firefox_card_bw_expected.png and b/web/playwright/expected/firefox_card_bw_expected.png differ diff --git a/web/playwright/expected/webkit_a4_image_expected.png b/web/playwright/expected/webkit_a4_image_expected.png index 97aac7c..473aa38 100644 Binary files a/web/playwright/expected/webkit_a4_image_expected.png and b/web/playwright/expected/webkit_a4_image_expected.png differ diff --git a/web/playwright/expected/webkit_c6onA4_image_expected.png b/web/playwright/expected/webkit_c6onA4_image_expected.png index b8e9fe3..f02d8f3 100644 Binary files a/web/playwright/expected/webkit_c6onA4_image_expected.png and b/web/playwright/expected/webkit_c6onA4_image_expected.png differ diff --git a/web/src/main/java/de/twonirwana/infinity/WebApp.java b/web/src/main/java/de/twonirwana/infinity/WebApp.java index 7e19742..3d1e0af 100644 --- a/web/src/main/java/de/twonirwana/infinity/WebApp.java +++ b/web/src/main/java/de/twonirwana/infinity/WebApp.java @@ -150,7 +150,7 @@ private static void downloadAllUnitsCsv(JavalinConfig config, PrometheusMeterReg InputStream fileStream = Files.newInputStream(latestCsv.get()); ctx.result(fileStream); registry.counter("infinity.downloadCsv", Tags.of("file", filename)).increment(); - log.info("Newest all unit csv file have been downloaded."); + log.info("Newest all unit csv file have been downloaded in {}", language.getCode()); } catch (Exception e) { log.error("Error serving file: {}", latestCsv, e); diff --git a/web/src/test/java/de/twonirwana/infinity/ManualPlaywrightScreenshotTest.java b/web/src/test/java/de/twonirwana/infinity/ManualPlaywrightScreenshotTest.java index 2ba3ece..1aee181 100644 --- a/web/src/test/java/de/twonirwana/infinity/ManualPlaywrightScreenshotTest.java +++ b/web/src/test/java/de/twonirwana/infinity/ManualPlaywrightScreenshotTest.java @@ -47,10 +47,10 @@ public class ManualPlaywrightScreenshotTest { static final long TEST_ID = System.currentTimeMillis(); static final int PLAYWRIGHT_PORT = 3000; @Container - static GenericContainer playwrightContainer = new GenericContainer<>("mcr.microsoft.com/playwright:v1.63.0-noble") + static GenericContainer playwrightContainer = new GenericContainer<>("mcr.microsoft.com/playwright:v1.64.0-noble") .withExposedPorts(PLAYWRIGHT_PORT) .withAccessToHost(true) - .withCommand("/bin/bash", "-c", "npx -y playwright@1.63.0 run-server --port 3000 --host 0.0.0.0") + .withCommand("/bin/bash", "-c", "npx -y playwright@1.64.0 run-server --port 3000 --host 0.0.0.0") .waitingFor(Wait.forLogMessage(".*Listening on.*", 1)); static Playwright playwright; static Browser chromium; diff --git a/web/src/test/java/de/twonirwana/infinity/PlaywrightScreenshotTest.java b/web/src/test/java/de/twonirwana/infinity/PlaywrightScreenshotTest.java index d232e40..d97c9ec 100644 --- a/web/src/test/java/de/twonirwana/infinity/PlaywrightScreenshotTest.java +++ b/web/src/test/java/de/twonirwana/infinity/PlaywrightScreenshotTest.java @@ -55,10 +55,10 @@ public class PlaywrightScreenshotTest { static final long TEST_ID = System.currentTimeMillis(); static final int PLAYWRIGHT_PORT = 3000; @Container - static GenericContainer playwrightContainer = new GenericContainer<>("mcr.microsoft.com/playwright:v1.63.0-noble") + static GenericContainer playwrightContainer = new GenericContainer<>("mcr.microsoft.com/playwright:v1.64.0-noble") .withExposedPorts(PLAYWRIGHT_PORT) .withAccessToHost(true) - .withCommand("/bin/bash", "-c", "npx -y playwright@1.63.0 run-server --port 3000 --host 0.0.0.0") + .withCommand("/bin/bash", "-c", "npx -y playwright@1.64.0 run-server --port 3000 --host 0.0.0.0") .waitingFor(Wait.forLogMessage(".*Listening on.*", 1)); static Playwright playwright; static Browser chromium; @@ -144,7 +144,7 @@ void testBrowserAndTemplate(BrowserTyp browserType, HtmlPrinter.Template templat String fileName = browser.browserType().name() + "_" + template.name(); File expectedFile = new File("playwright/expected/" + fileName + "_expected.png"); - checkScreenshot(actualImageBytes, expectedFile, fileName, 0.001); + checkScreenshot(actualImageBytes, expectedFile, fileName, 0.01); } @ParameterizedTest