You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AWS S3 support to upload and download various images is also provided.
106
+
It can be used by adding the *aws* code inside `"ResembleHelper"` in the `"helpers"` section in config file. The final result should look like:
107
+
```json
108
+
{
109
+
"helpers": {
110
+
"ResembleHelper" : {
111
+
"require": "codeceptjs-resemblehelper",
112
+
"screenshotFolder" : "<location of output folder>",
113
+
"baseFolder": "<location of base folder>",
114
+
"diffFolder": "<location of diff folder>",
115
+
"aws": {
116
+
"accessKeyId" : "<Your AccessKeyId>",
117
+
"secretAccessKey": "<Your secretAccessKey>",
118
+
"region": "<Region of Bucket>",
119
+
"bucketName": "<Bucket Name>"
120
+
}
121
+
}
122
+
}
123
+
}
124
+
```
125
+
When this option has been provided, the helper will download the base image from the S3 bucket.
126
+
This base image has to be located inside a folder named "*base*".
127
+
The resultant output image will be uploaded in a folder named "*output*" and diff image will be uploaded to a folder named "*diff*" in the S3 bucket.
128
+
If the `prepareBaseImage` option is marked `true`, then the generated base image will be uploaded to a folder named "*base*" in the S3 bucket.
129
+
>Note: The tests may take a bit longer to run when the AWS configuration is provided as determined by the internet speed to upload/download images.
130
+
105
131
### Known Issues:
106
132
107
-
> Issue in Windows where the image comparison is not carried out, and therefore no Mismatch Percentage is shown. See 'loadImageData' function in resemble.js
133
+
> Issue in Windows where the image comparison is not carried out, and therefore no Mismatch Percentage is shown. See 'loadImageData' function in resemble.js
0 commit comments