Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Nov 26, 2024
1 parent a810633 commit 247a7f7
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { test, expect } from '@playwright/test'
import { IndexPage } from './index-page'
import { waitForCondition } from '../../helpers/playwright-utils'

const indexPage = new IndexPage()

Expand Down Expand Up @@ -56,6 +57,10 @@ test('debug ingestion disabled and sample rate 1 -> will send the signal', async
sampleRate: 1,
}
)
await indexPage.fillNameInput('John Doe')
expect(indexPage.signalsAPI.getEvents('interaction')).toHaveLength(1)
await Promise.all([
indexPage.fillNameInput('John Doe'),
waitForCondition(
() => indexPage.signalsAPI.getEvents('interaction').length > 0
),
])
})

0 comments on commit 247a7f7

Please sign in to comment.