Skip to content

Commit d4c55ba

Browse files
authored
[test-optimization] Add logs for Playwright test (#6055)
1 parent d376439 commit d4c55ba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

integration-tests/automatic-log-submission.spec.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ describe('test visibility automatic log submission', () => {
6969
command: './node_modules/.bin/playwright test -c playwright.config.js',
7070
getExtraEnvVars: () => ({
7171
PW_BASE_URL: `http://localhost:${webAppPort}`,
72-
TEST_DIR: 'ci-visibility/automatic-log-submission-playwright'
72+
TEST_DIR: 'ci-visibility/automatic-log-submission-playwright',
73+
DD_TRACE_DEBUG: 1
7374
})
7475
}
7576
]
@@ -135,6 +136,10 @@ describe('test visibility automatic log submission', () => {
135136

136137
childProcess.on('exit', () => {
137138
Promise.all([logsPromise, eventsPromise]).then(() => {
139+
if (name === 'playwright') {
140+
// eslint-disable-next-line no-console
141+
console.log(testOutput)
142+
}
138143
const { logSpanId, logTraceId } = logIds
139144
const { testSpanId, testTraceId } = testIds
140145
assert.include(testOutput, 'Hello simple log!')

0 commit comments

Comments
 (0)