Ghost/apps/sodo-search/src/App.test.js

13 lines
554 B
JavaScript
Raw Normal View History

2022-07-05 13:21:17 +03:00
import {render} from '@testing-library/react';
import App from './App';
2022-07-04 16:55:30 +03:00
import React from 'react';
test('renders Sodo Search app component', () => {
window.location.hash = '#/search';
render(<App adminUrl="http://localhost" apiKey="69010382388f9de5869ad6e558" />);
2022-07-05 13:21:17 +03:00
// const containerElement = screen.getElementsByClassName('gh-portal-popup-container');
// eslint-disable-next-line testing-library/no-node-access
2022-07-05 13:21:17 +03:00
const containerElement = document.querySelector('.gh-root-frame');
expect(containerElement).toBeInTheDocument();
});