Skip to content

Commit

Permalink
- fix folder for snapshots
Browse files Browse the repository at this point in the history
:goose:
  • Loading branch information
maZahaca committed Mar 16, 2019
1 parent 05e75ce commit 3fd8a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/actions/actions.test.js
Expand Up @@ -646,7 +646,7 @@ describe('Actions', () => {
html: `<span>snapshot</span>`,
});
const parser = new Parser({
environment: new ChromeEnvironment({ url, snapshot: true }),
environment: new ChromeEnvironment({ url, snapshot: true, snapshotDir: '/tmp' }),
});
await parser.parse({
actions: [
Expand All @@ -657,7 +657,7 @@ describe('Actions', () => {
],
});

const filePath = './snapshots/localhost/test.png';
const filePath = '/tmp/localhost/test.png';
const snapshotExists = await fileExists(filePath);
expect(snapshotExists).toEqual(true);
await removeFile(filePath);
Expand Down

0 comments on commit 3fd8a10

Please sign in to comment.