diff --git a/statusboard/src/components/App/App.test.js b/statusboard/src/components/App/App.test.js index 2c6947ec..f7952370 100644 --- a/statusboard/src/components/App/App.test.js +++ b/statusboard/src/components/App/App.test.js @@ -1,9 +1,9 @@ import React from 'react'; -import { render } from '@testing-library/react'; +import { render, screen } from '@testing-library/react'; import App from './App'; test('renders Brigade Project Index header', () => { - const { getByText } = render(); - const title = getByText(/Project Index/i); + render(); + const title = screen.getByText(/^Project Index$/i); expect(title).toBeInTheDocument(); });