Fix width regex
This commit is contained in:
parent
76f059f086
commit
01c8c69eed
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user