fix(tests): 💚 Fix e2e window reload bug
This commit is contained in:
@ -72,3 +72,8 @@ export const parseTestTypebot = ({
|
||||
updatedAt: new Date(),
|
||||
}
|
||||
}
|
||||
|
||||
export const preventUserFromRefreshing = (e: BeforeUnloadEvent) => {
|
||||
e.preventDefault()
|
||||
e.returnValue = ''
|
||||
}
|
||||
|
Reference in New Issue
Block a user