Skip to content

Commit

Permalink
👷 add DD_TAG
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-lebeau committed Jan 30, 2025
1 parent 97c308f commit 602e7f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions test/e2e/lib/framework/createTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ function declareTestsForSetups(
function declareTest(title: string, setupOptions: SetupOptions, factory: SetupFactory, runner: TestRunner) {
test(title, async ({ page, context, browserName }) => {
const title = test.info().titlePath.join(' > ')
test.info().annotations.push({
type: 'DD_TAGS[test.browser]',
description: browserName,
})

setupOptions.context.test_name = title

Expand Down
4 changes: 2 additions & 2 deletions test/e2e/scenario/rum/sessions.scenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ test.describe('rum sessions', () => {
expect(intakeRegistry.rumActionEvents).toHaveLength(0)
})

createTest('after calling stopSession(), a user interaction starts a new session @known-flacky')
createTest('after calling stopSession(), a user interaction starts a new session @flaky')
.withRum()
.run(async ({ intakeRegistry, flushEvents, browserContext, page }) => {
await page.evaluate(() => {
window.DD_RUM!.stopSession()
})

test.info().annotations.push({
type: 'known-flacky',
type: 'DD_TAGS[test.flaky]',
description: 'This test is known to be flacky, especially in FF',
})

Expand Down

0 comments on commit 602e7f2

Please sign in to comment.