Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/UI' into business-ruben2
Browse files Browse the repository at this point in the history
  • Loading branch information
UO282476 authored and UO282476 committed May 1, 2023
2 parents 4bfc14c + d585160 commit 2729cdf
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions webapp/src/test/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import { render, screen, fireEvent } from '@testing-library/react';
import App from '../App';
import { BrowserRouter } from 'react-router-dom';

test('renders learn react link', () => {
render(
<BrowserRouter>
<App />
</BrowserRouter>

);
const linkElement = screen.getByText("LoMap");
expect(linkElement).toBeInTheDocument();
test('renders learn react link', async () => {
const { container, getByText } = render(
<BrowserRouter>
<App />
</BrowserRouter>
);

const button = getByText("Enter now!");
fireEvent.click(button);

expect(await getByText("Log in with your POD!")).toBeInTheDocument();
});

0 comments on commit 2729cdf

Please sign in to comment.