add debug features

This commit is contained in:
Anton B 2022-02-28 17:16:01 -03:00
parent e988734bf4
commit 94ea254d21
3 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# meeting credentials
BBB_URL="" # https://DOMAIN_NAME/bigbluebutton/api
BBB_SECRET=""
DEBUG_MODE="" # (true / false|empty) Enable or disable debug features

View File

@ -1,2 +1,4 @@
node_modules/
.env
test-results/
playwright-report/

View File

@ -3,6 +3,7 @@ require('dotenv').config();
const config = {
workers: 1,
timeout: 3 * 60 * 1000,
reporter: [['list']],
use: {
headless: true,
},
@ -49,4 +50,10 @@ const config = {
],
};
if (process.env.DEBUG_MODE === 'true') {
config.reporter.push(['html', { open: 'never' }]);
config.use.screenshot = 'only-on-failure';
config.use.trace = 'retain-on-failure';
}
module.exports = config;