Skip to content

Commit 42da949

Browse files
test(webdriver): keep focus identity double geometry-free
1 parent a963424 commit 42da949

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/provider-webdriver/src/webdriver-interactor.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,10 @@ function createTextEntryWorld() {
449449
sendKeys: async () => {
450450
world.transcript.push('keys');
451451
},
452-
activeElementReference: (timeoutMs?: number) => world.client.activeElement(timeoutMs),
452+
activeElementReference: (timeoutMs?: number) =>
453+
world.client
454+
.activeElement(timeoutMs)
455+
.then((ref) => (typeof ref === 'string' ? ref : { id: ref.id })),
453456
activeElement: async (timeoutMs?: number) => {
454457
world.transcript.push('active');
455458
world.probeTimeouts.push(timeoutMs);

0 commit comments

Comments
 (0)