fix(tests): 💚 Fix e2e window reload bug
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
import { parseTestTypebot } from 'cypress/plugins/utils'
|
||||
import {
|
||||
parseTestTypebot,
|
||||
preventUserFromRefreshing,
|
||||
} from 'cypress/plugins/utils'
|
||||
import { BubbleStepType } from 'models'
|
||||
|
||||
describe('Text bubbles', () => {
|
||||
@ -37,6 +40,12 @@ describe('Text bubbles', () => {
|
||||
cy.signOut()
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
cy.window().then((win) => {
|
||||
win.removeEventListener('beforeunload', preventUserFromRefreshing)
|
||||
})
|
||||
})
|
||||
|
||||
it('rich text features should work', () => {
|
||||
cy.signIn('test2@gmail.com')
|
||||
cy.visit('/typebots/typebot3/edit')
|
||||
|
Reference in New Issue
Block a user