Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Binary file modified web/playwright/expected/firefox_a4_image_expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/playwright/expected/firefox_c6onA4_image_expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/playwright/expected/firefox_card_bw_expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/playwright/expected/webkit_a4_image_expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/playwright/expected/webkit_c6onA4_image_expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion web/src/main/java/de/twonirwana/infinity/WebApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
Loading