2
0

ci(e2e): 💚 Incomplete results

This commit is contained in:
Baptiste Arnaud
2022-02-14 20:40:55 +01:00
parent 714f7c8ce5
commit e6f6e2523c
3 changed files with 4 additions and 3 deletions

View File

@ -98,13 +98,14 @@ export const createResults = async ({ typebotId }: { typebotId: string }) => {
data: [
...Array.from(Array(200)).map((_, idx) => {
const today = new Date()
const rand = Math.random()
return {
id: `result${idx}`,
typebotId,
createdAt: new Date(
today.setTime(today.getTime() + 1000 * 60 * 60 * 24 * idx)
),
isCompleted: false,
isCompleted: rand > 0.5,
}
}),
],