docbrown/app/javascript/chat/__tests__/draw.test.jsx
Sarthak Sharma 83b3baeac3
[deploy] 🚀 Feature: Draw Command for connect with image annotations (#10136)
* 🚀 Draw Command ready for connect [Rebase]

* revert schema changes

* fix & replace Button with theme button

* fix UI

* add test cases

* fix travis issue

* on image upload enable send button

* revert schema.db changes

* revert UI changes

* fix suggestions

* Update app/javascript/chat/draw/index.jsx

Co-authored-by: Nick Taylor <nick@iamdeveloper.com>

* update test cases

* remove commented code

* Trigger Travis CI

Co-authored-by: Narender Singh <narender2031@gmail.com>
Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
2020-10-07 16:06:22 +02:00

21 lines
597 B
JavaScript

import { h } from 'preact';
import { render } from '@testing-library/preact';
import { axe } from 'jest-axe';
import Draw from '../draw';
describe('<Draw />', () => {
it('should have no a11y violations', async () => {
const { container } = render(<Draw />);
const results = await axe(container);
expect(results).toHaveNoViolations();
});
it('should render', () => {
const { queryByText } = render(<Draw />);
expect(queryByText('Connect Draw')).not.toBeNull();
expect(queryByText('Clear')).not.toBeNull();
expect(queryByText('Send')).not.toBeNull();
});
});