fix(tests): 💚 Fix tests
This commit is contained in:
@@ -78,7 +78,7 @@ export const InputWithVariableButton = ({
|
||||
bgColor={'white'}
|
||||
/>
|
||||
<InputRightElement>
|
||||
<Popover matchWidth isLazy>
|
||||
<Popover matchWidth isLazy closeOnBlur={false}>
|
||||
<PopoverTrigger>
|
||||
<IconButton
|
||||
aria-label="Insert a variable"
|
||||
|
||||
@@ -111,7 +111,6 @@ export const VariableSearchInput = ({
|
||||
{...inputProps}
|
||||
/>
|
||||
</PopoverTrigger>
|
||||
<Portal>
|
||||
<PopoverContent
|
||||
maxH="35vh"
|
||||
overflowY="scroll"
|
||||
@@ -166,7 +165,6 @@ export const VariableSearchInput = ({
|
||||
</>
|
||||
)}
|
||||
</PopoverContent>
|
||||
</Portal>
|
||||
</Popover>
|
||||
</Flex>
|
||||
)
|
||||
|
||||
@@ -15,7 +15,7 @@ describe('Google Analytics', () => {
|
||||
})
|
||||
})
|
||||
|
||||
it.only('can be filled correctly', () => {
|
||||
it('can be filled correctly', () => {
|
||||
cy.signIn('test2@gmail.com')
|
||||
cy.visit('/typebots/typebot3/edit')
|
||||
cy.intercept({
|
||||
|
||||
@@ -32,7 +32,7 @@ describe('Google sheets', () => {
|
||||
cy.findByRole('button', { name: 'Insert a variable' }).click()
|
||||
cy.findByRole('menuitem', { name: 'Email' }).click()
|
||||
|
||||
cy.findByRole('button', { name: 'Add' }).click()
|
||||
cy.findByRole('button', { name: 'Add a value' }).click()
|
||||
|
||||
cy.findByRole('button', { name: 'Select a column' }).click()
|
||||
cy.findByRole('menuitem', { name: 'First name' }).click()
|
||||
@@ -106,7 +106,7 @@ describe('Google sheets', () => {
|
||||
cy.findByRole('menuitem', { name: 'First name' }).click()
|
||||
createNewVar('First name')
|
||||
|
||||
cy.findByRole('button', { name: 'Add' }).click()
|
||||
cy.findByRole('button', { name: 'Add a value' }).click()
|
||||
|
||||
cy.findByRole('button', { name: 'Select a column' }).click()
|
||||
cy.findByRole('menuitem', { name: 'Last name' }).click()
|
||||
|
||||
@@ -64,7 +64,7 @@ describe('Condition step', () => {
|
||||
cy.findByRole('menuitem', { name: 'Greater than' }).click()
|
||||
cy.findByPlaceholderText('Type a value...').type('80')
|
||||
|
||||
cy.findByRole('button', { name: 'Add' }).click()
|
||||
cy.findByRole('button', { name: 'Add a comparison' }).click()
|
||||
cy.findAllByTestId('variables-input').last().click()
|
||||
cy.findByRole('menuitem', { name: 'Age' }).click()
|
||||
cy.findByRole('button', { name: 'Equal to' }).click()
|
||||
|
||||
Reference in New Issue
Block a user