0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/ghost/sodo-search/src/App.test.js

12 lines
490 B
JavaScript
Raw Normal View History

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