diff --git a/package-lock.json b/package-lock.json index 2e50e35..edc1f38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "@tatumio/tatum": "^4.1.34", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", - "@testing-library/user-event": "^13.5.0", + "@testing-library/user-event": "^14.5.2", "@types/jest": "^27.5.2", "@types/node": "^16.18.68", "@types/react": "^18.2.46", @@ -3983,14 +3983,11 @@ } }, "node_modules/@testing-library/user-event": { - "version": "13.5.0", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-13.5.0.tgz", - "integrity": "sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg==", - "dependencies": { - "@babel/runtime": "^7.12.5" - }, + "version": "14.5.2", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.5.2.tgz", + "integrity": "sha512-YAh82Wh4TIrxYLmfGcixwD18oIjyC1pFQC2Y01F2lzV2HTMiYrI0nze0FD0ocB//CKS/7jIUgae+adPqxK5yCQ==", "engines": { - "node": ">=10", + "node": ">=12", "npm": ">=6" }, "peerDependencies": { diff --git a/package.json b/package.json index 5cc5970..225df25 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "@tatumio/tatum": "^4.1.34", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", - "@testing-library/user-event": "^13.5.0", + "@testing-library/user-event": "^14.5.2", "@types/jest": "^27.5.2", "@types/node": "^16.18.68", "@types/react": "^18.2.46", diff --git a/src/App.test.tsx b/src/App.test.tsx index 3ae3310..18a5207 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -3,6 +3,13 @@ import App from './App'; test('should render Ethereum Wallet headline', () => { render(); + const headerElement = screen.getByText(/Ethereum Wallet/i); expect(headerElement).toBeInTheDocument(); + + const searchInput = screen.getByPlaceholderText(/Wallet address/i); + expect(searchInput).toBeInTheDocument(); + + const searchButton = screen.getByText(/Search/i); + expect(searchButton).toBeInTheDocument(); }); diff --git a/src/SearchWalletForm.tsx b/src/SearchWalletForm.tsx index 65d5f77..cbbc11d 100644 --- a/src/SearchWalletForm.tsx +++ b/src/SearchWalletForm.tsx @@ -24,6 +24,7 @@ export function SearchWalletForm({ onSearch }: Props) { diff --git a/src/WalletFound.tsx b/src/WalletFound.tsx index 620b184..53f5b78 100644 --- a/src/WalletFound.tsx +++ b/src/WalletFound.tsx @@ -19,7 +19,7 @@ export function WalletFound({ walletData }: Props) {

Transactions