Fix width regex

This commit is contained in:
C85297 2026-06-15 10:11:07 +01:00
parent 76f059f086
commit 01c8c69eed
No known key found for this signature in database

View File

@ -472,7 +472,7 @@ function testOpImage(browser, opName, filename, args=[]) {
browser
.waitForElementVisible("#output-html img")
.expect.element("#output-html img").to.have.css("width").which.matches(/^[^0]\d*px/);
.expect.element("#output-html img").to.have.css("width").which.matches(/^(?!0+(?:\.0+)?px$)\d+(?:\.\d+)?px$/);
browser.execute(function() {
const output = document.getElementById("output-html");