0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/apps/sodo-search/src/App.test.js
Daniel Lockyer fa43a0236b Moved Sodo-Search into apps/
refs https://github.com/TryGhost/Toolbox/issues/594

- this is the first of a set of commits to move our "apps" into the
  `apps/` folder, so we don't mix Ghost core and standalone apps
2023-06-14 12:10:57 +02:00

12 lines
554 B
JavaScript

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