-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Caesar Bell <[email protected]>
- Loading branch information
1 parent
fc3abcc
commit 882d9fd
Showing
4 changed files
with
60 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import React from 'react'; | ||
import { render, waitFor } from '@testing-library/react'; | ||
import ComponentFactory from '../../src/components/ComponentFactory'; | ||
import ActionBar from '../../src/components/ActionBar/ActionBar'; | ||
|
||
jest.mock('../../src/hooks/use-site-metadata', () => ({ | ||
useSiteMetadata: () => ({ reposDatabase: 'pool_test' }), | ||
})); | ||
|
||
describe('Chatbot Ui', () => { | ||
it('renders the chatbot through the ComponentFactor', async () => { | ||
const wrapper = render(<ComponentFactory nodeData={{ type: 'chatbot' }} />); | ||
const wrapper = render(<ActionBar />); | ||
await waitFor(() => expect(wrapper.getByTestId('chatbot-ui')).toBeInTheDocument()); | ||
}); | ||
}); |