Skip to content
Snippets Groups Projects
Commit 3c9aa29f authored by s72531's avatar s72531 Committed by Lucendio
Browse files

test

parent 2c3a02b2
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,14 @@ test('renders a login form', async () => {
await waitFor(() => getByText(/Login/i));
});
test('renders a todo add', async () => {
const { getByText } = render(<AddToDo />);
await waitForElement(() => getByText(/Add/i));
await waitForElement(() => getByText(/ToDo Title/i));
await waitForElement(() => getByText(/ToDo Description/i));
await waitForElement(() => getByText(/Reset/i));
});
test('renders registration form when register button clicked', async () => {
const { getByText } = render(<App />);
await waitFor(() => getByText(/Signup/i));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment