Skip to content

Commit

Permalink
[ftr] move screenshots into test/functional
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed May 16, 2017
1 parent 882079c commit 2bb6c95
Show file tree
Hide file tree
Showing 47 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ target
.idea
*.iml
*.log
/test/screenshots/diff
/test/screenshots/failure
/test/screenshots/session
/test/screenshots/visual_regression_gallery.html
/test/*/screenshots/diff
/test/*/screenshots/failure
/test/*/screenshots/session
/test/*/screenshots/visual_regression_gallery.html
/html_docs
/esvm
.htpasswd
Expand Down
2 changes: 1 addition & 1 deletion test/functional/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function () {
directory: resolve(__dirname, '../../src/fixtures/es_archives'),
},
screenshots: {
directory: resolve(__dirname, '../screenshots'),
directory: resolve(__dirname, './screenshots'),
}
};
}
File renamed without changes
Empty file removed test/screenshots/baseline/.empty
Empty file.
4 changes: 2 additions & 2 deletions utilities/visual_regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ async function buildGallery(comparisons) {
});

return writeFileAsync(
path.resolve('./test/screenshots/visual_regression_gallery.html'),
path.resolve('./test/functional/screenshots/visual_regression_gallery.html'),
html
);
}

async function compareScreenshots() {
const SCREENSHOTS_DIR = 'test/screenshots';
const SCREENSHOTS_DIR = 'test/functional/screenshots';
const BASELINE_SCREENSHOTS_DIR = path.resolve(SCREENSHOTS_DIR, 'baseline');
const DIFF_SCREENSHOTS_DIR = path.resolve(SCREENSHOTS_DIR, 'diff');
const SESSION_SCREENSHOTS_DIR = path.resolve(SCREENSHOTS_DIR, 'session');
Expand Down

0 comments on commit 2bb6c95

Please sign in to comment.