Skip to content

Commit 5adb13d

Browse files
committed
fix(react): Update integration test imports
1 parent cd0f20a commit 5adb13d

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { describe, it, expect, afterAll } from "vitest";
1818
import { fireEvent, waitFor, act, render } from "@testing-library/react";
19-
import { EmailLinkForm } from "../../../src/auth/forms/email-link-auth-form";
19+
import { EmailLinkAuthForm } from "../src";
2020
import { initializeApp } from "firebase/app";
2121
import { getAuth, connectAuthEmulator, deleteUser } from "firebase/auth";
2222
import { initializeUI } from "@firebase-ui/core";
@@ -62,7 +62,7 @@ describe("Email Link Authentication Integration", () => {
6262

6363
const { container } = render(
6464
<FirebaseUIProvider ui={ui}>
65-
<EmailLinkForm />
65+
<EmailLinkAuthForm />
6666
</FirebaseUIProvider>
6767
);
6868

@@ -137,7 +137,7 @@ describe("Email Link Authentication Integration", () => {
137137
it("should handle invalid email format", async () => {
138138
const { container } = render(
139139
<FirebaseUIProvider ui={ui}>
140-
<EmailLinkForm />
140+
<EmailLinkAuthForm />
141141
</FirebaseUIProvider>
142142
);
143143

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { describe, it, expect, beforeAll, afterAll } from "vitest";
1818
import { screen, fireEvent, waitFor, act, render } from "@testing-library/react";
19-
import { EmailPasswordForm } from "../../../src/auth/forms/sign-in-auth-form";
19+
import { SignInAuthForm } from "../src";
2020
import { initializeApp } from "firebase/app";
2121
import {
2222
getAuth,
@@ -79,7 +79,7 @@ describe("Email Password Authentication Integration", () => {
7979
it("should successfully sign in with email and password using actual Firebase Auth", async () => {
8080
const { container } = render(
8181
<FirebaseUIProvider ui={ui}>
82-
<EmailPasswordForm />
82+
<SignInAuthForm />
8383
</FirebaseUIProvider>
8484
);
8585

@@ -117,7 +117,7 @@ describe("Email Password Authentication Integration", () => {
117117
it("should fail when using invalid credentials", async () => {
118118
const { container } = render(
119119
<FirebaseUIProvider ui={ui}>
120-
<EmailPasswordForm />
120+
<SignInAuthForm />
121121
</FirebaseUIProvider>
122122
);
123123

@@ -155,7 +155,7 @@ describe("Email Password Authentication Integration", () => {
155155
it("should show an error message for invalid credentials", async () => {
156156
const { container } = render(
157157
<FirebaseUIProvider ui={ui}>
158-
<EmailPasswordForm />
158+
<SignInAuthForm />
159159
</FirebaseUIProvider>
160160
);
161161

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { describe, it, expect, afterAll, beforeEach } from "vitest";
1818
import { fireEvent, waitFor, act, render } from "@testing-library/react";
19-
import { ForgotPasswordForm } from "../../../src/auth/forms/forgot-password-auth-form";
19+
import { ForgotPasswordAuthForm } from "../src";
2020
import { initializeApp } from "firebase/app";
2121
import {
2222
getAuth,
@@ -96,7 +96,7 @@ describe("Forgot Password Integration", () => {
9696

9797
const { container } = render(
9898
<FirebaseUIProvider ui={ui}>
99-
<ForgotPasswordForm />
99+
<ForgotPasswordAuthForm />
100100
</FirebaseUIProvider>
101101
);
102102

@@ -169,7 +169,7 @@ describe("Forgot Password Integration", () => {
169169
it("should handle invalid email format", async () => {
170170
const { container } = render(
171171
<FirebaseUIProvider ui={ui}>
172-
<ForgotPasswordForm />
172+
<ForgotPasswordAuthForm />
173173
</FirebaseUIProvider>
174174
);
175175

packages/react/tests/integration/auth/register.integration.test.tsx renamed to packages/react/tests/register.integration.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { describe, it, expect, afterAll, beforeEach } from "vitest";
1818
import { screen, fireEvent, waitFor, act, render } from "@testing-library/react";
19-
import { RegisterForm } from "../../../src/auth/forms/sign-up-auth-form";
19+
import { SignUpAuthForm } from "../src";
2020
import { initializeApp } from "firebase/app";
2121
import { getAuth, connectAuthEmulator, deleteUser, signOut, signInWithEmailAndPassword } from "firebase/auth";
2222
import { initializeUI } from "@firebase-ui/core";
@@ -96,7 +96,7 @@ describe("Register Integration", () => {
9696
it("should successfully register a new user", async () => {
9797
const { container } = render(
9898
<FirebaseUIProvider ui={ui}>
99-
<RegisterForm />
99+
<SignUpAuthForm />
100100
</FirebaseUIProvider>
101101
);
102102

@@ -200,7 +200,7 @@ describe("Register Integration", () => {
200200
// This test verifies that the form validation prevents submission with an invalid email
201201
const { container } = render(
202202
<FirebaseUIProvider ui={ui}>
203-
<RegisterForm />
203+
<SignUpAuthForm />
204204
</FirebaseUIProvider>
205205
);
206206

@@ -276,7 +276,7 @@ describe("Register Integration", () => {
276276
// First register a user
277277
const { container } = render(
278278
<FirebaseUIProvider ui={ui}>
279-
<RegisterForm />
279+
<SignUpAuthForm />
280280
</FirebaseUIProvider>
281281
);
282282

@@ -462,7 +462,7 @@ describe("Register Integration", () => {
462462
// Try to register with same email
463463
const newContainer = render(
464464
<FirebaseUIProvider ui={ui}>
465-
<RegisterForm />
465+
<SignUpAuthForm />
466466
</FirebaseUIProvider>
467467
);
468468

packages/react/tests/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "../tsconfig.test.json",
3-
"include": ["./**/*.tsx", "./**/*.ts", "../src/components/button.test.tsx", "../src/hooks.test.tsx", "../src/context.test.tsx", "../setup-test.ts", "../src/auth/forms/email-link-form.test.tsx", "../src/auth/forms/email-password-form.test.tsx", "../src/auth/forms/forgot-password-form.test.tsx", "../src/auth/forms/register-form.test.tsx", "../src/auth/oauth/google-sign-in-button.test.tsx", "../src/auth/screens/password-reset-screen.test.tsx",, "../src/auth/screens/oauth-screen.test.tsx" "../src/auth/screens/email-link-auth-screen.test.tsx", "../src/auth/screens/sign-in-auth-screen.test.tsx", "../src/auth/screens/phone-auth-screen.test.tsx"],
3+
"include": ["./**/*.test.tsx", "./**/*.test.ts"],
44
"compilerOptions": {
55
"jsx": "react-jsx",
66
"esModuleInterop": true,

0 commit comments

Comments
 (0)