0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Added temporary working test

This commit is contained in:
Simon Backx 2022-07-19 16:46:16 +02:00
parent 4b504130d8
commit 98486d159b

View file

@ -1,8 +1,8 @@
import {render, screen} from '@testing-library/react';
import {render} from '@testing-library/react';
import App from './App';
test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/hello world/i);
expect(linkElement).toBeInTheDocument();
test('renders the auth frame', () => {
const {container} = render(<App />);
const iframeElement = container.querySelector('iframe[data-frame="admin-auth"]');
expect(iframeElement).toBeInTheDocument();
});