Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ jobs:
working_directory: ~/repo

steps:
- run:
name: Creating Dummy Artifacts
command: |
echo "my artifact file" > ./artifact-1;
mkdir ./artifacts;
echo "my artifact files in a dir" > ./artifacts/artifact-2;
- store_artifacts:
path: ./artifact-1
destination: artifact-file
- store_artifacts:
path: ./artifacts
- checkout:
- run: printenv
- run:
Expand Down
8 changes: 4 additions & 4 deletions test/example-images.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ describe('Eyes-Images', () => {
it('Images test', async () => {
await eyes.open('Applitools site', 'Screenshot test!', {width: 800, height: 600});

await eyes.check('URL', Target.image('https://i.ibb.co/bJgzfb3/applitools.png'));
// await eyes.check('URL', Target.image('https://i.ibb.co/bJgzfb3/applitools.png'));

const imageBuffer = await fetch('https://i.ibb.co/bJgzfb3/applitools.png').then(resp => resp.buffer());
await eyes.check('Buffer', Target.image(imageBuffer));
//await eyes.check('Buffer', Target.image(imageBuffer));

await eyes.check('file path', Target.image(path.resolve(__dirname, 'applitools.png')));
//await eyes.check('file path', Target.image(path.resolve(__dirname, 'applitools.png')));

await eyes.check('base 64 string', Target.image(imageBuffer.toString('base64')));
//await eyes.check('base 64 string', Target.image(imageBuffer.toString('base64')));

await eyes.close();
})
Expand Down