🐛 (results) Fix bug preventing user from seeing linked typebots results
This commit is contained in:
@ -228,7 +228,7 @@ test('should display invoices', async ({ page }) => {
|
||||
await page.click('text=Billing & Usage')
|
||||
await expect(page.locator('text="Invoices"')).toBeVisible()
|
||||
await expect(page.locator('tr')).toHaveCount(3)
|
||||
await expect(page.locator('text="€39.00"')).toBeVisible()
|
||||
await expect(page.locator('text="$39.00"')).toBeVisible()
|
||||
})
|
||||
|
||||
test('custom plans should work', async ({ page }) => {
|
||||
|
@ -21,7 +21,7 @@ test.beforeEach(async () => {
|
||||
await injectFakeResults({ typebotId, count: 200, isChronological: true })
|
||||
})
|
||||
|
||||
test('Results', async ({ page }) => {
|
||||
test('table features should work', async ({ page }) => {
|
||||
await page.goto(`/typebots/${typebotId}/results`)
|
||||
|
||||
await test.step('Check header format', async () => {
|
||||
@ -147,14 +147,14 @@ test('Results', async ({ page }) => {
|
||||
|
||||
const validateExportSelection = (data: unknown[]) => {
|
||||
expect(data).toHaveLength(3)
|
||||
expect((data[1] as unknown[])[3]).toBe('content199')
|
||||
expect((data[2] as unknown[])[3]).toBe('content198')
|
||||
expect((data[1] as unknown[])[0]).toBe('content199')
|
||||
expect((data[2] as unknown[])[0]).toBe('content198')
|
||||
}
|
||||
|
||||
const validateExportAll = (data: unknown[]) => {
|
||||
expect(data).toHaveLength(201)
|
||||
expect((data[1] as unknown[])[3]).toBe('content199')
|
||||
expect((data[200] as unknown[])[3]).toBe('content0')
|
||||
expect((data[1] as unknown[])[0]).toBe('content199')
|
||||
expect((data[200] as unknown[])[0]).toBe('content0')
|
||||
}
|
||||
|
||||
const scrollToBottom = (page: Page) =>
|
||||
|
Reference in New Issue
Block a user