Skip to content

Commit 247a7f7

Browse files
committed
wip
1 parent a810633 commit 247a7f7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/signals/signals-integration-tests/src/tests/signals-vanilla/signals-ingestion.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { test, expect } from '@playwright/test'
22
import { IndexPage } from './index-page'
3+
import { waitForCondition } from '../../helpers/playwright-utils'
34

45
const indexPage = new IndexPage()
56

@@ -56,6 +57,10 @@ test('debug ingestion disabled and sample rate 1 -> will send the signal', async
5657
sampleRate: 1,
5758
}
5859
)
59-
await indexPage.fillNameInput('John Doe')
60-
expect(indexPage.signalsAPI.getEvents('interaction')).toHaveLength(1)
60+
await Promise.all([
61+
indexPage.fillNameInput('John Doe'),
62+
waitForCondition(
63+
() => indexPage.signalsAPI.getEvents('interaction').length > 0
64+
),
65+
])
6166
})

0 commit comments

Comments
 (0)