mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
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
12 lines
554 B
JavaScript
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();
|
|
});
|