We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a6b15 commit 6cb9cf6Copy full SHA for 6cb9cf6
__tests__/landing.test.tsx __tests__/pages/landing.test.tsx__tests__/landing.test.tsx renamed to __tests__/pages/landing.test.tsx
@@ -4,6 +4,9 @@ import Home from '@/app/page';
4
5
it('renders main page with the text "Get started by editing"', () => {
6
render(<Home />);
7
- const text = screen.getByText(/Get started by editing/i);
8
- expect(text).toBeInTheDocument();
+ const login = screen.getAllByText(/\bLogin\b/i).length;
+ expect(login).toBe(2);
9
+
10
+ const register = screen.getAllByText(/\bRegister\b/i).length;
11
+ expect(register).toBe(2);
12
});
0 commit comments