-
Notifications
You must be signed in to change notification settings - Fork 231
test: capture screenshots with capture-chrome, and diff them with resemble #3
Conversation
…l-components-web-react into test/capture
@@ -0,0 +1,5 @@ | |||
{ | |||
"presets": [ | |||
"es2015" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also add "react" here? We don't have any jsx files yet, so we can add it then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think i want to wait, because this babelrc is actually affecting our babel translator for the mocha. So basically this is running on like capture-suite.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya, but I don't think it affects .js files that don't have JSX in it. It basically compiles the JSX -> JS. Although I'm testing the branch again right now and having issues, but don't think it is related to the .babelrc file.
test/screenshot/screenshot.js
Outdated
return Promise.all([capturePromise, readPromise]) | ||
.then(function([newScreenshot, oldScreenshot]) { | ||
return new Promise(function(resolve) { | ||
const resolve2 = function(data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more appropriate name is onComplete
No description provided.