CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Video name

Open nicostubi opened this issue 3 years ago • 0 comments

What are you trying to achieve?

Having a video for a failed test with the scenario name, as for screenshots.

What do you get instead?

File names with ids similar to "2f6507fa202d0d3e5d8cc2a55850a285.webm"

Details

  • CodeceptJS version: 3.3.5
  • NodeJS Version: 16.10.0
  • Operating System: Win 10 Pro
  • playwright
  • Configuration file:
require('ts-node/register')
const { setHeadlessWhen } = require('@codeceptjs/configure')

// turn on headless mode when running with HEADLESS=true environment variable
// HEADLESS=true npx codecept run
setHeadlessWhen(process.env.TEST_HEADLESS === 'true')

exports.config = {
	tests: './tests/*/**_test.ts',
	output: './tests/output',
	timeout: 240, // limit all tests in all suites to 240 secs
	helpers: {
		Playwright: {
			browser: 'chromium',
			show: true,
			url:'http://localhost:3030',
			video: true,
			trace: false,
			// keepTraceForPassedTests: true,
			waitForAction: 2000,
			waitForTimeout: 30000,
			windowSize: '1800x920',
		},
	},
	bootstrapAll: require('./presettings.ts').bootstrapAll,
	bootstrap: require('./presettings.ts').bootstrap,
	teardownAll: require('./presettings').teardownAll,
	teardown: require('./presettings').teardown,
	plugins: {
		subtitles: {
			enabled: true
		},
		pauseOnFail: {},
		retryFailedStep: {
			enabled: true,
		},
		tryTo: {
			enabled: true,
		},
		screenshotOnFail: {
			enabled: true,
		},
		// coverage: {
		// 	enabled: true,
		// },
	},
}

nicostubi avatar Aug 31 '22 12:08 nicostubi