I am very new to Intern and I found it through sauce labs. I am trying to perform a visual regression test on different browsers and I tried to follow the steps as described but I encountered error.
First error is when I run "intern run -w" I get the:
Error: Cannot find module '../visual-plugin/node_modules/intern/runner' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:191:16) at bootstrap_node.js:612:3
The second on is when I try to change resolution to (1024x768) the "npm test config=@example" I get:
`× chrome 69.0.3497.100 on Mac OS X - example tests - simple visual test (3.345s)
Error: PNGs are different sizes. Expected (1280x960); Actual (2048x1326).
at <src/comparators/PngJsImageComparator.ts:48:11>
at Test.test <src/test.ts:22:4>
at <src/lib/Test.ts:260:47>
× chrome 69.0.3497.100 on Mac OS X - example tests - custom visual test (2.543s)
Error: PNGs are different sizes. Expected (1280x732); Actual (2048x1308).
at <src/comparators/PngJsImageComparator.ts:48:11>
at Test.custom visual test [as test] <tests/example/tests.ts:25:4>
at <src/lib/Test.ts:260:47>
TOTAL: tested 1 platforms, 0 passed, 2 failed
npm ERR! Test failed. See above for more details.`
Hello Everyone,
I am very new to Intern and I found it through sauce labs. I am trying to perform a visual regression test on different browsers and I tried to follow the steps as described but I encountered error.
First error is when I run "intern run -w" I get the:
Error: Cannot find module '../visual-plugin/node_modules/intern/runner' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:191:16) at bootstrap_node.js:612:3
The second on is when I try to change resolution to (1024x768) the "npm test config=@example" I get:
`× chrome 69.0.3497.100 on Mac OS X - example tests - simple visual test (3.345s) Error: PNGs are different sizes. Expected (1280x960); Actual (2048x1326). at <src/comparators/PngJsImageComparator.ts:48:11> at Test.test <src/test.ts:22:4> at <src/lib/Test.ts:260:47>
× chrome 69.0.3497.100 on Mac OS X - example tests - custom visual test (2.543s) Error: PNGs are different sizes. Expected (1280x732); Actual (2048x1308). at <src/comparators/PngJsImageComparator.ts:48:11> at Test.custom visual test [as test] <tests/example/tests.ts:25:4> at <src/lib/Test.ts:260:47>
TOTAL: tested 1 platforms, 0 passed, 2 failed npm ERR! Test failed. See above for more details.`
Please HELP, thanks.