From 288d9138f50d86478cfc885fd2739230057356fd Mon Sep 17 00:00:00 2001 From: Drainpipe Date: Thu, 29 Aug 2024 13:43:09 +0000 Subject: [PATCH] Correct test results path for GitHub Actions reporters (#665) --- composer.json | 2 +- config/nightwatch.conf.js | 4 ++-- scaffold/nightwatch/vrt.gitignore | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 scaffold/nightwatch/vrt.gitignore diff --git a/composer.json b/composer.json index 8c5adf5..1eb75c7 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,6 @@ "composer/composer": "^2.7.8" }, "bin": [ - "bin/drainpipe-twig-linter", "bin/drainpipe-convert-to-junit-xml" ], "extra": { @@ -49,6 +48,7 @@ "[web-root]/sites/sites.php": "scaffold/nightwatch/sites.php", "[project-root]/.ddev/docker-compose.selenium.yaml": "scaffold/nightwatch/docker-compose.selenium.yaml", "[project-root]/test/nightwatch/example.nightwatch.js": "scaffold/nightwatch/example.nightwatch.js", + "[project-root]/test/nightwatch/vrt/.gitignore": "scaffold/nightwatch/vrt.gitignore", "[project-root]/phpcs.xml.dist": "scaffold/phpcs.xml.dist", "[project-root]/phpstan.neon.dist": "scaffold/phpstan.neon.dist", "[project-root]/.twig-cs-fixer.dist.php": "scaffold/.twig-cs-fixer.dist.php" diff --git a/config/nightwatch.conf.js b/config/nightwatch.conf.js index 8708799..5c0e559 100644 --- a/config/nightwatch.conf.js +++ b/config/nightwatch.conf.js @@ -52,9 +52,9 @@ module.exports = { filter: '**/*.nightwatch.js', disable_error_log: false, screenshots: { - enabled: false, + enabled: true, on_failure: true, - on_error: false, + on_error: true, path: 'test_result', }, }, diff --git a/scaffold/nightwatch/vrt.gitignore b/scaffold/nightwatch/vrt.gitignore new file mode 100644 index 0000000..18f64df --- /dev/null +++ b/scaffold/nightwatch/vrt.gitignore @@ -0,0 +1,2 @@ +/diff +/latest