closing browser in tests

This commit is contained in:
antelle 2019-10-12 14:24:51 +02:00
parent 69c38cbeca
commit 4d1cbe7f62
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ module.exports = function(grunt) {
console[out.method](...out.args);
}
if (result.done) {
await browser.close();
const { failures } = result.done;
if (failures) {
grunt.warn(`Failed ${failures} test${failures > 1 ? 's' : ''}.`);