2022-07-05 12:21:17 +02:00
|
|
|
import {render} from '@testing-library/react';
|
2022-07-04 15:27:40 +02:00
|
|
|
import App from './App';
|
2022-07-04 15:55:30 +02:00
|
|
|
import React from 'react';
|
2022-07-04 15:27:40 +02:00
|
|
|
|
2022-07-05 10:03:56 +02:00
|
|
|
test('renders Sodo Search app component', () => {
|
2022-07-06 15:56:20 +02:00
|
|
|
window.location.hash = '#/search';
|
2022-07-07 11:09:53 +02:00
|
|
|
render(<App adminUrl="http://localhost" apiKey="69010382388f9de5869ad6e558" />);
|
2022-07-05 12:21:17 +02:00
|
|
|
// const containerElement = screen.getElementsByClassName('gh-portal-popup-container');
|
2023-03-17 09:25:39 +01:00
|
|
|
// eslint-disable-next-line testing-library/no-node-access
|
2022-07-05 12:21:17 +02:00
|
|
|
const containerElement = document.querySelector('.gh-root-frame');
|
|
|
|
expect(containerElement).toBeInTheDocument();
|
2022-07-04 15:27:40 +02:00
|
|
|
});
|