From 8eff962cab608341a6f2fedc640a0e32d96f26e2 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 9 Nov 2025 11:15:19 +0800 Subject: pain --- .../flows/middleware_test_generator.d.ts | 18 +++++ .../integration/webdriver/util/auth_driver.d.ts | 46 ++++++++++++ .../test/integration/webdriver/util/functions.d.ts | 81 ++++++++++++++++++++++ .../test/integration/webdriver/util/idp_page.d.ts | 31 +++++++++ .../webdriver/util/js_load_condition.d.ts | 25 +++++++ .../integration/webdriver/util/test_runner.d.ts | 19 +++++ .../integration/webdriver/util/test_server.d.ts | 27 ++++++++ .../test/integration/webdriver/util/ui_page.d.ts | 33 +++++++++ 8 files changed, 280 insertions(+) create mode 100644 frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/flows/middleware_test_generator.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/auth_driver.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/functions.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/idp_page.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/js_load_condition.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/test_runner.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/test_server.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/ui_page.d.ts (limited to 'frontend-old/node_modules/@firebase/auth/dist/rn/test/integration') diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/flows/middleware_test_generator.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/flows/middleware_test_generator.d.ts new file mode 100644 index 0000000..4ab1adb --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/flows/middleware_test_generator.d.ts @@ -0,0 +1,18 @@ +/** + * @license + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { Auth } from '@firebase/auth'; +export declare function generateMiddlewareTests(authGetter: () => Auth, signIn: () => Promise): void; diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/auth_driver.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/auth_driver.d.ts new file mode 100644 index 0000000..1d9392f --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/auth_driver.d.ts @@ -0,0 +1,46 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { Auth, User, Persistence } from '@firebase/auth'; +import { WebDriver } from 'selenium-webdriver'; +export declare const START_FUNCTION = "startAuth"; +/** Helper wrapper around the WebDriver object */ +export declare class AuthDriver { + webDriver: WebDriver; + start(browser: string): Promise; + stop(): Promise; + call(fn: string, ...args: unknown[]): Promise; + callNoWait(fn: string, ...args: unknown[]): Promise; + getAuthSnapshot(): Promise; + getUserSnapshot(): Promise; + reset(): Promise; + goToTestPage(): Promise; + waitForAuthInit(): Promise; + waitForLegacyAuthInit(): Promise; + reinitOnRedirect(): Promise; + pause(ms: number): Promise; + refresh(): Promise; + private injectConfig; + injectConfigAndInitAuth(): Promise; + injectConfigAndInitLegacySDK(persistence?: Persistence['type']): Promise; + selectPopupWindow(): Promise; + selectMainWindow(options?: { + noWait?: boolean; + }): Promise; + closePopup(): Promise; + closeExtraWindows(): Promise; + isCompatLayer(): boolean; +} diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/functions.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/functions.d.ts new file mode 100644 index 0000000..66d648b --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/functions.d.ts @@ -0,0 +1,81 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** Available in the browser. See static/anonymous.js */ +export declare enum AnonFunction { + SIGN_IN_ANONYMOUSLY = "anonymous.anonymousSignIn" +} +/** Available redirect functions. See static/redirect.js */ +export declare enum RedirectFunction { + IDP_REDIRECT = "redirect.idpRedirect", + IDP_REAUTH_REDIRECT = "redirect.idpReauthRedirect", + IDP_LINK_REDIRECT = "redirect.idpLinkRedirect", + REDIRECT_RESULT = "redirect.redirectResult", + GENERATE_CREDENTIAL_FROM_RESULT = "redirect.generateCredentialFromRedirectResultAndStore", + SIGN_IN_WITH_REDIRECT_CREDENTIAL = "redirect.signInWithRedirectCredential", + LINK_WITH_ERROR_CREDENTIAL = "redirect.linkWithErrorCredential", + CREATE_FAKE_GOOGLE_USER = "redirect.createFakeGoogleUser", + TRY_TO_SIGN_IN_UNVERIFIED = "redirect.tryToSignInUnverified" +} +/** Available popup functions. See static/popup.js */ +export declare enum PopupFunction { + IDP_POPUP = "popup.idpPopup", + IDP_REAUTH_POPUP = "popup.idpReauthPopup", + IDP_LINK_POPUP = "popup.idpLinkPopup", + POPUP_RESULT = "popup.popupResult", + GENERATE_CREDENTIAL_FROM_RESULT = "popup.generateCredentialFromResult", + SIGN_IN_WITH_POPUP_CREDENTIAL = "popup.signInWithPopupCredential", + LINK_WITH_ERROR_CREDENTIAL = "popup.linkWithErrorCredential", + CREATE_FAKE_GOOGLE_USER = "popup.createFakeGoogleUser", + TRY_TO_SIGN_IN_UNVERIFIED = "popup.tryToSignInUnverified" +} +/** Available email functions. See static/email.js */ +export declare enum EmailFunction { + CREATE_USER = "email.createUser" +} +/** Available core functions within the browser. See static/core.js */ +export declare enum CoreFunction { + RESET = "core.reset", + AWAIT_AUTH_INIT = "core.authInit", + USER_SNAPSHOT = "core.userSnap", + AUTH_SNAPSHOT = "core.authSnap", + SIGN_OUT = "core.signOut", + AWAIT_LEGACY_AUTH_INIT = "core.legacyAuthInit", + LEGACY_USER_SNAPSHOT = "core.legacyUserSnap" +} +/** Available persistence functions within the browser. See static/persistence.js */ +export declare enum PersistenceFunction { + CLEAR_PERSISTENCE = "persistence.clearPersistence", + LOCAL_STORAGE_SNAP = "persistence.localStorageSnap", + LOCAL_STORAGE_SET = "persistence.localStorageSet", + SESSION_STORAGE_SNAP = "persistence.sessionStorageSnap", + SESSION_STORAGE_SET = "persistence.sessionStorageSet", + INDEXED_DB_SNAP = "persistence.indexedDBSnap", + MAKE_INDEXED_DB_READONLY = "persistence.makeIndexedDBReadonly", + SET_PERSISTENCE_MEMORY = "persistence.setPersistenceMemory", + SET_PERSISTENCE_SESSION = "persistence.setPersistenceSession", + SET_PERSISTENCE_INDEXED_DB = "persistence.setPersistenceIndexedDB", + SET_PERSISTENCE_LOCAL_STORAGE = "persistence.setPersistenceLocalStorage" +} +export declare enum MiddlewareFunction { + ATTACH_BLOCKING_MIDDLEWARE = "middleware.attachBlockingMiddleware", + ATTACH_BLOCKING_MIDDLEWARE_ON_START = "middleware.attachBlockingMiddlewareOnStart" +} +/** Available firebase UI functions (only for compat tests) */ +export declare enum UiFunction { + LOAD = "ui.loadUiCode", + START = "ui.startUi" +} diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/idp_page.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/idp_page.d.ts new file mode 100644 index 0000000..2d30eb7 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/idp_page.d.ts @@ -0,0 +1,31 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { WebDriver } from 'selenium-webdriver'; +export declare class IdPPage { + private readonly driver; + static PAGE_TITLE: string; + constructor(driver: WebDriver); + pageLoad(): Promise; + clickAddAccount(): Promise; + clickSignIn(): Promise; + selectExistingAccountByEmail(email: string): Promise; + fillEmail(email: string): Promise; + fillDisplayName(displayName: string): Promise; + fillScreenName(screenName: string): Promise; + fillProfilePhoto(profilePhoto: string): Promise; + private fillInput; +} diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/js_load_condition.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/js_load_condition.d.ts new file mode 100644 index 0000000..a1a0157 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/js_load_condition.d.ts @@ -0,0 +1,25 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { Condition } from 'selenium-webdriver'; +/** + * A condition that looks for the presence of a specified function. This is + * used with WebDriver .wait() as a proxy for determining when the JS has + * finished loading in a page. + */ +export declare class JsLoadCondition extends Condition { + constructor(globalValue: string); +} diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/test_runner.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/test_runner.d.ts new file mode 100644 index 0000000..8986a26 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/test_runner.d.ts @@ -0,0 +1,19 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { AuthDriver } from './auth_driver'; +/** Main entry point for all WebDriver tests */ +export declare function browserDescribe(title: string, generator: (driver: AuthDriver, browser: string) => void): void; diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/test_server.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/test_server.d.ts new file mode 100644 index 0000000..626807c --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/test_server.d.ts @@ -0,0 +1,27 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** Simple express server for serving up the static files for testing */ +declare class AuthTestServer { + private app; + private server; + constructor(); + get address(): string; + start(): Promise; + stop(): void; +} +export declare const authTestServer: AuthTestServer; +export {}; diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/ui_page.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/ui_page.d.ts new file mode 100644 index 0000000..295c21c --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/rn/test/integration/webdriver/util/ui_page.d.ts @@ -0,0 +1,33 @@ +/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { WebDriver } from 'selenium-webdriver'; +export declare class UiPage { + private readonly driver; + constructor(driver: WebDriver); + clickGuestSignIn(): Promise; + clickGoogleSignIn(): Promise; + clickPhoneSignIn(): Promise; + clickEmailSignIn(): Promise; + clickSubmit(): Promise; + enterPhoneNumber(phoneNumber: string): Promise; + waitForCodeInputToBePresent(): Promise; + enterPhoneCode(code: string): Promise; + enterEmail(email: string): Promise; + enterEmailDisplayName(name: string): Promise; + enterPassword(name: string): Promise; + private fillInput; +} -- cgit v1.2.3