diff --git a/tests/browser/02_ops.js b/tests/browser/02_ops.js index 6110af93..b580ebad 100644 --- a/tests/browser/02_ops.js +++ b/tests/browser/02_ops.js @@ -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");