Skip to content

Commit 6db53ea

Browse files
committed
Attempt to fix tests
1 parent e8e37a9 commit 6db53ea

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

packages/browser-integration-tests/suites/replay/keyboardEvents/test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ sentryTest('captures keyboard events', async ({ forceFlushReplay, getLocalTestPa
7575
ctrlKey: true,
7676
altKey: false,
7777
key: 'Control',
78+
componentName: 'body',
7879
},
7980
},
8081
{
@@ -90,6 +91,7 @@ sentryTest('captures keyboard events', async ({ forceFlushReplay, getLocalTestPa
9091
ctrlKey: true,
9192
altKey: false,
9293
key: 'A',
94+
componentName: 'body',
9395
},
9496
},
9597
{
@@ -105,6 +107,7 @@ sentryTest('captures keyboard events', async ({ forceFlushReplay, getLocalTestPa
105107
tagName: 'input',
106108
textContent: '',
107109
},
110+
componentName: 'body > input#input',
108111
},
109112
},
110113
]);

packages/browser-integration-tests/utils/replayEventTemplates.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ export const expectedClickBreadcrumb = {
212212
tagName: expect.any(String),
213213
textContent: expect.any(String),
214214
},
215+
componentName: expect.any(String),
215216
},
216217
};
217218

packages/replay/test/unit/coreHandlers/handleKeyboardEvent.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ describe('Unit | coreHandlers | handleKeyboardEvent', () => {
3939
key: 'Escape',
4040
metaKey: false,
4141
shiftKey: false,
42+
componentName: 'body',
4243
},
4344
message: 'body',
4445
timestamp: expect.any(Number),
@@ -69,6 +70,7 @@ describe('Unit | coreHandlers | handleKeyboardEvent', () => {
6970
key,
7071
metaKey: false,
7172
shiftKey: false,
73+
componentName: 'body',
7274
},
7375
message: 'body',
7476
timestamp: expect.any(Number),

0 commit comments

Comments
 (0)