level_0
int64
0
10k
index
int64
0
0
repo_id
stringlengths
22
152
file_path
stringlengths
41
203
content
stringlengths
11
11.5M
282
0
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/common/DSLConversions
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/common/DSLConversions/tests/fixedToAutoLayout.test.ts
import { Positioning, ResponsiveBehavior, } from "layoutSystems/common/utils/constants"; import type { DSLWidget } from "WidgetProvider/constants"; import { fitChildWidgetsIntoLayers, getAutoCanvasWidget, getCondensedGroupedWidgets, getTopLeftMostWidget, processGroupedWidgets, } from "../fixedToAutoLayout...
295
0
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/common
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/common/dropTarget/DragLayerComponent.test.tsx
import React from "react"; import { ThemeProvider } from "styled-components"; import TestRenderer from "react-test-renderer"; import DragLayerComponent from "./DragLayerComponent"; import { RenderModes } from "constants/WidgetConstants"; import { theme } from "constants/DefaultTheme"; describe("DragLayerComponent", ()...
308
0
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/common
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/common/resizer/ResizableUtils.test.ts
import { ReflowDirection } from "reflow/reflowTypes"; import { isHandleResizeAllowed } from "./ResizableUtils"; describe("Resizable Utils", () => { it("Handle resize is allowed if directions are not provided", () => { const input = { horizontalEnabled: false, verticalEnabled: false, }; const ...
316
0
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/common
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/common/utils/canvasDraggingUtils.test.ts
import { GridDefaults } from "constants/WidgetConstants"; import { HORIZONTAL_RESIZE_MIN_LIMIT, ReflowDirection, VERTICAL_RESIZE_MIN_LIMIT, } from "reflow/reflowTypes"; import { getEdgeDirection, getMoveDirection, getReflowedSpaces, modifyBlockDimension, modifyDrawingRectangles, updateRectanglesPostRe...
320
0
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/common
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/common/utils/commonUtils.test.tsx
import type { AutoDimensionOptions, AutoDimensionValues, AutoLayoutConfig, } from "WidgetProvider/constants"; import { getAutoDimensionsConfig, restructureWidgetSizeConfig, } from "./commonUtils"; import InputWidget from "widgets/InputWidgetV2/widget"; import ButtonWidget from "widgets/ButtonWidget/widget"; i...
340
0
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/fixedlayout/common
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/fixedlayout/common/autoHeight/AutoHeightContainer.test.tsx
import "@testing-library/jest-dom"; import { render } from "@testing-library/react"; import "jest-styled-components"; import React from "react"; import renderer from "react-test-renderer"; import { RenderModes } from "constants/WidgetConstants"; import AutoHeightContainer from "./AutoHeightContainer"; const DUMMY_WIDG...
353
0
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/fixedlayout/common/autoHeightOverlay
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/fixedlayout/common/autoHeightOverlay/ui/AutoHeightLimitHandleBorder.test.tsx
import React from "react"; import "@testing-library/jest-dom"; import AutoHeightLimitHandleBorder from "./AutoHeightLimitHandleBorder"; import "jest-styled-components"; import renderer from "react-test-renderer"; import { OVERLAY_COLOR } from "../constants"; describe("<AutoHeightLimitHandleBorder />", () => { it("sh...
355
0
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/fixedlayout/common/autoHeightOverlay
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/fixedlayout/common/autoHeightOverlay/ui/AutoHeightLimitHandleDot.test.tsx
import React from "react"; import "@testing-library/jest-dom"; import AutoHeightLimitHandleDot from "./AutoHeightLimitHandleDot"; import "jest-styled-components"; import renderer from "react-test-renderer"; describe("<AutoHeightLimitHandleDot />", () => { it("should have scale style set to 1 when isDragging is false...
357
0
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/fixedlayout/common/autoHeightOverlay
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/fixedlayout/common/autoHeightOverlay/ui/AutoHeightLimitHandleLabel.test.tsx
import React from "react"; import "@testing-library/jest-dom"; import AutoHeightLimitHandleLabel from "./AutoHeightLimitHandleLabel"; import "jest-styled-components"; import renderer from "react-test-renderer"; describe("<AutoHeightLimitHandleLabel />", () => { it("should have display none when isActive is false", (...
359
0
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/fixedlayout/common/autoHeightOverlay
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/fixedlayout/common/autoHeightOverlay/ui/AutoHeightLimitOverlayDisplay.test.tsx
import React from "react"; import "@testing-library/jest-dom"; import AutoHeightLimitOverlayDisplay from "./AutoHeightLimitOverlayDisplay"; import "jest-styled-components"; import renderer from "react-test-renderer"; describe("<AutoHeightLimitOverlayDisplay />", () => { it("should have display none when isActive is ...
368
0
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/fixedlayout/editor
petrpan-code/appsmithorg/appsmith/app/client/src/layoutSystems/fixedlayout/editor/FixedLayoutCanvasArenas/CanvasSelectionArena.test.tsx
import { MAIN_CONTAINER_WIDGET_ID } from "constants/WidgetConstants"; import Canvas from "pages/Editor/Canvas"; import GlobalHotKeys from "pages/Editor/GlobalHotKeys"; import React from "react"; import { MemoryRouter } from "react-router-dom"; import * as dataTreeSelectors from "selectors/dataTreeSelectors"; import * a...
391
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/navigation/FocusEntity.test.ts
import { identifyEntityFromPath, FocusEntity } from "navigation/FocusEntity"; import { AppState } from "../entities/IDE/constants"; describe("identifyEntityFromPath", () => { const oldUrlCases = [ { path: "/applications/myAppId/pages/myPageId/edit", expected: { entity: FocusEntity.CANVAS, ...
399
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings/DisconnectService.test.tsx
import { render, screen } from "test/testUtils"; import React from "react"; import { DisconnectService } from "./DisconnectService"; import { createMessage, DISCONNECT_AUTH_METHOD, DISCONNECT_CONFIRMATION, } from "@appsmith/constants/messages"; let container: any = null; const buttonClickHandler = jest.fn(); co...
423
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings/FormGroup/Accordion.test.tsx
import { render, screen } from "test/testUtils"; import React from "react"; import type { Setting } from "@appsmith/pages/AdminSettings/config/types"; import { SettingTypes, SettingSubtype, } from "@appsmith/pages/AdminSettings/config/types"; import Accordion from "./Accordion"; import { SETTINGS_FORM_NAME } from "...
425
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings/FormGroup/Button.test.tsx
import { render, screen } from "test/testUtils"; import React from "react"; import type { Setting } from "@appsmith/pages/AdminSettings/config/types"; import { SettingTypes } from "@appsmith/pages/AdminSettings/config/types"; import ButtonComponent from "./Button"; let container: any = null; const buttonClickHandler =...
430
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings/FormGroup/CopyUrlForm.test.tsx
import { render, screen } from "test/testUtils"; import React from "react"; import CopyUrlForm from "./CopyUrlForm"; import copy from "copy-to-clipboard"; let container: any = null; jest.mock("copy-to-clipboard"); const values = { helpText: "some helper text", title: "Redirect URL", value: "/link-to-be-copied"...
433
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings/FormGroup/Group.test.tsx
import { render, screen } from "test/testUtils"; import React from "react"; import type { Setting } from "@appsmith/pages/AdminSettings/config/types"; import { SettingTypes } from "@appsmith/pages/AdminSettings/config/types"; import Group from "./group"; import { SETTINGS_FORM_NAME } from "@appsmith/constants/forms"; i...
435
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings/FormGroup/Link.test.tsx
import { render, screen } from "test/testUtils"; import React from "react"; import type { Setting } from "@appsmith/pages/AdminSettings/config/types"; import { SettingTypes } from "@appsmith/pages/AdminSettings/config/types"; import Link from "./Link"; let container: any = null; const linkClickHandler = jest.fn(); con...
437
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings/FormGroup/Radio.test.tsx
import { render } from "test/testUtils"; import React from "react"; import type { Setting } from "@appsmith/pages/AdminSettings/config/types"; import { SettingTypes } from "@appsmith/pages/AdminSettings/config/types"; import Radio from "./Radio"; import { SETTINGS_FORM_NAME } from "@appsmith/constants/forms"; import { ...
439
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings/FormGroup/TagInputField.test.tsx
import { render, screen } from "test/testUtils"; import React from "react"; import type { Setting } from "@appsmith/pages/AdminSettings/config/types"; import { SettingTypes } from "@appsmith/pages/AdminSettings/config/types"; import TagInputField from "./TagInputField"; import { SETTINGS_FORM_NAME } from "@appsmith/con...
441
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings/FormGroup/Text.test.tsx
import { render, screen } from "test/testUtils"; import React from "react"; import type { Setting } from "@appsmith/pages/AdminSettings/config/types"; import { SettingTypes } from "@appsmith/pages/AdminSettings/config/types"; import TextComponent from "./Text"; let container: any = null; const buttonClickHandler = jes...
444
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings/FormGroup/TextInput.test.tsx
import { render } from "test/testUtils"; import React from "react"; import type { Setting } from "@appsmith/pages/AdminSettings/config/types"; import { SettingTypes, SettingSubtype, } from "@appsmith/pages/AdminSettings/config/types"; import TextInput from "./TextInput"; import { SETTINGS_FORM_NAME } from "@appsmit...
446
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings/FormGroup/Toggle.test.tsx
import { render } from "test/testUtils"; import React from "react"; import type { Setting } from "@appsmith/pages/AdminSettings/config/types"; import { SettingTypes } from "@appsmith/pages/AdminSettings/config/types"; import Toggle from "./Toggle"; import { SETTINGS_FORM_NAME } from "@appsmith/constants/forms"; import ...
448
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AdminSettings/FormGroup/common.test.tsx
import { render, screen } from "test/testUtils"; import React from "react"; import type { Setting } from "@appsmith/pages/AdminSettings/config/types"; import { SettingTypes } from "@appsmith/pages/AdminSettings/config/types"; import { FormGroup } from "./Common"; let container: any = null; const setting: Setting = { ...
465
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages
petrpan-code/appsmithorg/appsmith/app/client/src/pages/AppViewer/PrimaryCTA.test.tsx
import React from "react"; import { render, screen, cleanup } from "@testing-library/react"; import "@testing-library/jest-dom/extend-expect"; import { Provider } from "react-redux"; import { ThemeProvider } from "styled-components"; import { lightTheme } from "selectors/themeSelectors"; import PrimaryCTA from "./Prima...
530
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/MainContainerWidthToggles.test.tsx
import React from "react"; import "@testing-library/jest-dom"; import { ThemeProvider } from "styled-components"; import { render } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import { Provider } from "react-redux"; import { lightTheme } from "selectors/themeSelectors"; import s...
656
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/Explorer/EntityExplorer.test.tsx
import { act, fireEvent, render } from "test/testUtils"; import { buildChildren, widgetCanvasFactory, } from "test/factories/WidgetFactoryUtils"; import React from "react"; import { MockPageDSL } from "test/testCommon"; import { DEFAULT_ENTITY_EXPLORER_WIDTH } from "constants/AppConstants"; import store, { runSagaM...
693
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/Explorer/Libraries
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/Explorer/Libraries/__tests__/Installer.test.tsx
import React from "react"; import { render, screen, fireEvent, cleanup } from "@testing-library/react"; import "@testing-library/jest-dom/extend-expect"; import { Provider } from "react-redux"; import store from "store"; import { ThemeProvider } from "styled-components"; import { lightTheme } from "selectors/themeSelec...
705
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/FirstTimeUserOnboarding/Checklist.test.tsx
const history = jest.fn(); const dispatch = jest.fn(); import { bindDataOnCanvas } from "actions/pluginActionActions"; import { builderURL, integrationEditorURL } from "@appsmith/RouteBuilder"; import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; import { INTEGRATION_TABS } from "constants/rout...
710
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/FirstTimeUserOnboarding/Statusbar.test.tsx
const dispatch = jest.fn(); import React from "react"; import { Provider } from "react-redux"; import { render } from "test/testUtils"; import OnboardingStatusbar from "./Statusbar"; import { getStore } from "./testUtils"; import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; import { SIGNPOSTIN...
726
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/GlobalHotKeys/GlobalHotKeys.test.tsx
import React from "react"; import { createMessage, SAVE_HOTKEY_TOASTER_MESSAGE, } from "@appsmith/constants/messages"; import { all } from "@redux-saga/core/effects"; import { redoAction, undoAction } from "actions/pageActions"; import { Toast } from "design-system"; import { MAIN_CONTAINER_WIDGET_ID } from "const...
739
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/IDE/AppsmithIDE.test.tsx
import type { AppState } from "@appsmith/reducers"; import { all } from "@redux-saga/core/effects"; import lodash from "lodash"; import React from "react"; import { MemoryRouter } from "react-router-dom"; import * as dataTreeSelectors from "selectors/dataTreeSelectors"; import * as utilities from "selectors/editorSelec...
766
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/IntegrationEditor
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/IntegrationEditor/__tests__/datasourceCard.test.tsx
import React from "react"; import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; import store from "store"; import { render } from "test/testUtils"; import DatasourceCard from "../DatasourceCard"; import { mockDatasources, mockPlugins } from "../mockData"; describe("Tasks", () => { it("Checks ...
777
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/JSEditor/utils.test.ts
import type { JSAction } from "entities/JSCollection"; import { uniqueId } from "lodash"; import { NO_FUNCTION_DROPDOWN_OPTION } from "./constants"; import { convertJSActionToDropdownOption, getJSActionOption, getJSFunctionStartLineFromCode, isCursorWithinNode, } from "./utils"; const BASE_JS_OBJECT_BODY = `ex...
792
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/PropertyPane/PropertyPaneTitle.test.tsx
import React from "react"; import "@testing-library/jest-dom"; import { ThemeProvider } from "styled-components"; import { render } from "@testing-library/react"; import PropertyPaneTitle from "./PropertyPaneTitle"; import userEvent from "@testing-library/user-event"; import { lightTheme } from "selectors/themeSelector...
798
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/PropertyPane/propertyPaneSearch.test.ts
import type { PropertyPaneSectionConfig } from "constants/PropertyControlConstants"; import { searchPropertyPaneConfig } from "./propertyPaneSearch"; describe("Property configuration search", () => { const commonProperties = { controlType: "CONTROL_TYPE", isBindProperty: false, isTriggerProperty: false, ...
837
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/__tests__/AuthenticatedAPIErrorValidation.test.tsx
import React from "react"; import "@testing-library/jest-dom"; import { render, screen } from "test/testUtils"; import userEvent from "@testing-library/user-event"; import FormControl from "../FormControl"; import { createMessage, INVALID_URL } from "@appsmith/constants/messages"; import FormControlRegistry from "utils...
838
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/__tests__/QueryEditorTable.test.tsx
import React from "react"; import { render, screen } from "test/testUtils"; import "@testing-library/jest-dom"; import Table from "../QueryEditor/Table"; import { getScrollBarWidth } from "../QueryEditor/Table"; function createEle() { return { scrollHeight: 0, clientHeight: 0, }; } const scrollW = 6; cons...
850
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync/utils.test.ts
import { changeInfoSinceLastCommit, getIsStartingWithRemoteBranches, isLocalBranch, isRemoteBranch, isValidGitRemoteUrl, removeSpecialChars, } from "./utils"; import { ApplicationVersion } from "@appsmith/actions/applicationActions"; const validUrls = [ "git@github.com:user/project.git", "git://a@b:c/d...
855
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync/QuickGitActions/BranchButton.test.tsx
import { render, screen } from "test/testUtils"; import BranchButton from "./BranchButton"; import React from "react"; describe("BranchButton", () => { it("renders properly", async () => { render(<BranchButton />); const currentBranch = await screen.queryByTestId( "t--branch-button-currentBranch", ...
874
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync/Tabs
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync/Tabs/GitSettings/index.test.tsx
/* eslint-disable jest/no-focused-tests */ import React from "react"; import { render, screen } from "test/testUtils"; import GitSettings from "."; import type { AppState } from "@appsmith/reducers"; jest.mock("../../hooks/useIsGitAdmin", () => ({ useIsGitAdmin: () => false, })); describe("GitSettings test for git ...
876
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync/Tabs
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync/Tabs/__tests__/Deploy.test.tsx
import React from "react"; import { Provider } from "react-redux"; import store from "store"; import { ThemeProvider } from "styled-components"; import { lightTheme } from "selectors/themeSelectors"; import { render } from "test/testUtils"; import Deploy from "../Deploy"; import { commitToRepoInit, fetchGitStatusSu...
877
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync/components/BetaTag.test.tsx
import BetaTag from "./BetaTag"; import { render, screen } from "test/testUtils"; import React from "react"; import "jest-styled-components"; describe("BetaTag", () => { it("renders properly", async () => { render(<BetaTag />); const actual = await screen.queryByTestId("t--beta-tag"); // renders exp...
884
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync/components/ConflictInfo.test.tsx
import ConflictInfo from "./ConflictInfo"; import { render, screen } from "test/testUtils"; import React from "react"; describe("ConflictInfo", () => { it("renders properly", async () => { render( <ConflictInfo browserSupportedRemoteUrl={"href"} learnMoreLink={"link"} />, ); ...
890
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync/components/DefaultTag.test.tsx
import DefaultTag from "./DefaultTag"; import { render, screen } from "test/testUtils"; import React from "react"; import "jest-styled-components"; describe("DefaultTag", () => { it("renders properly", async () => { render(<DefaultTag />); const actual = await screen.queryByTestId("t--default-tag"); // ...
895
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync/components/GitChangesList.test.tsx
import type { GitStatusData } from "reducers/uiReducers/gitSyncReducer"; import { gitChangeListData } from "./GitChangesList"; describe("GitChangesList", () => { describe("gitChangesListData", () => { it("returns proper data", () => { const status: GitStatusData = { conflicting: [], aheadCo...
900
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync/components/LocalBranchList.test.tsx
import { render, screen } from "test/testUtils"; import "jest-styled-components"; import { LocalBranchList } from "./LocalBranchList"; describe("LocalBranchList", function () { it("renders nothing when param:remoteBranches is an empty array", async () => { render(LocalBranchList([], "", false, -1, "", () => unde...
906
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync
petrpan-code/appsmithorg/appsmith/app/client/src/pages/Editor/gitSync/components/RemoteBranchList.test.tsx
import { render, screen } from "test/testUtils"; import "jest-styled-components"; import { RemoteBranchList } from "./RemoteBranchList"; describe("RemoteBranchList", function () { it("renders nothing when param:remoteBranches is an empty array", async () => { render(RemoteBranchList([], () => undefined)); ...
1,013
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages
petrpan-code/appsmithorg/appsmith/app/client/src/pages/setup/SetupForm.test.tsx
import { fireEvent, render, screen } from "test/testUtils"; import React from "react"; import "@testing-library/jest-dom"; import SetupForm from "./SetupForm"; import userEvent from "@testing-library/user-event"; function renderComponent() { return render(<SetupForm />); } describe("SetupForm", () => { it("If the...
1,015
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages
petrpan-code/appsmithorg/appsmith/app/client/src/pages/setup/SignupSuccess.test.tsx
import { render, screen } from "test/testUtils"; import React from "react"; import "@testing-library/jest-dom"; import { SignupSuccess } from "./SignupSuccess"; const useSelector = jest.fn(); const values = { isSuperUser: true, }; useSelector.mockReturnValue(values); function renderComponent() { return render(<Si...
1,023
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages
petrpan-code/appsmithorg/appsmith/app/client/src/pages/tests/slug.test.tsx
import React from "react"; import { ApplicationVersion } from "@appsmith/actions/applicationActions"; import { builderURL } from "@appsmith/RouteBuilder"; import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; import { selectURLSlugs } from "selectors/editorSelectors"; import store from "store"; i...
1,040
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/workspace
petrpan-code/appsmithorg/appsmith/app/client/src/pages/workspace/__tests__/SettingsPageHeader.test.tsx
import React from "react"; import "@testing-library/jest-dom"; import { render, screen } from "test/testUtils"; import { SettingsPageHeader } from "../SettingsPageHeader"; import userEvent from "@testing-library/user-event"; let container: any = null; const handleChange = jest.fn(); const mockOnSelect = jest.fn(); co...
1,041
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/workspace
petrpan-code/appsmithorg/appsmith/app/client/src/pages/workspace/__tests__/WorkspaceSettingsForm.test.tsx
import React from "react"; import { unmountComponentAtNode } from "react-dom"; import { render } from "test/testUtils"; import "@testing-library/jest-dom"; import { GeneralSettings } from "../General"; let container: any = null; describe("Application Settings", () => { beforeEach(async () => { // setup a DOM ele...
1,042
0
petrpan-code/appsmithorg/appsmith/app/client/src/pages/workspace
petrpan-code/appsmithorg/appsmith/app/client/src/pages/workspace/__tests__/settings.test.tsx
import React from "react"; import "@testing-library/jest-dom"; import Router from "react-router-dom"; import { render, screen } from "test/testUtils"; import Settings from "../settings"; import * as reactRedux from "react-redux"; let container: any = null; const mockWorkspaceData = { id: "62a585995f76022609968dfa",...
1,080
0
petrpan-code/appsmithorg/appsmith/app/client/src/reducers
petrpan-code/appsmithorg/appsmith/app/client/src/reducers/entityReducers/canvasWidgetsReducer.test.ts
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; import reducer from "./canvasWidgetsReducer"; describe("Canvas Widgets Reducer", () => { it("should return the initial state", () => { expect(reducer(undefined, { type: "", payload: "" })).toEqual({}); }); it("should update the pat...
1,086
0
petrpan-code/appsmithorg/appsmith/app/client/src/reducers
petrpan-code/appsmithorg/appsmith/app/client/src/reducers/entityReducers/metaWidgetsReducer.test.ts
import type { MetaWidgetsReduxState } from "./metaWidgetsReducer"; import reducer from "./metaWidgetsReducer"; import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; import { metaWidgetState } from "utils/metaWidgetState"; import { nestedMetaWidgetInitialState } from "./testData/metaWidgetReducer"...
1,090
0
petrpan-code/appsmithorg/appsmith/app/client/src/reducers/entityReducers
petrpan-code/appsmithorg/appsmith/app/client/src/reducers/entityReducers/autoHeightReducers/autoHeightLayoutTreeReducer.test.ts
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; import reducer from "./autoHeightLayoutTreeReducer"; describe("Canvas Levels Reducer", () => { it("should return the initial state", () => { expect(reducer(undefined, { type: "", payload: "" })).toEqual({}); }); it("should set the ...
1,092
0
petrpan-code/appsmithorg/appsmith/app/client/src/reducers/entityReducers
petrpan-code/appsmithorg/appsmith/app/client/src/reducers/entityReducers/autoHeightReducers/canvasLevelsReducer.test.ts
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; import reducer from "./canvasLevelsReducer"; describe("Canvas Levels Reducer", () => { it("should return the initial state", () => { expect(reducer(undefined, { type: "", payload: "" })).toEqual({}); }); it("should set the new canv...
1,096
0
petrpan-code/appsmithorg/appsmith/app/client/src/reducers/entityReducers
petrpan-code/appsmithorg/appsmith/app/client/src/reducers/entityReducers/metaReducer/test.ts
import metaReducer, { initialState } from "./index"; import { updateMetaState } from "actions/metaActions"; import type { ReduxAction } from "@appsmith/constants/ReduxActionConstants"; import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; let currentMetaState = initialState; const inputWidget =...
1,138
0
petrpan-code/appsmithorg/appsmith/app/client/src/reducers
petrpan-code/appsmithorg/appsmith/app/client/src/reducers/uiReducers/pageWidgetsReducer.test.ts
import reducer from "./pageWidgetsReducer"; import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; import { getCurrentRowBinding } from "widgets/TableWidget/constants"; const pageWidgetUIInitialState = { "60783f9204a08773573ed1d2": { "0": { widgetName: "MainContainer", backgroun...
1,201
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/sagas/WidgetBlueprintSagas.test.ts
import WidgetFactory from "WidgetProvider/factory"; import { BlueprintOperationTypes } from "WidgetProvider/constants"; import type { BlueprintOperation } from "./WidgetBlueprintSagas"; import { executeWidgetBlueprintChildOperations } from "./WidgetBlueprintSagas"; describe("WidgetBlueprintSagas", () => { it("shoul...
1,206
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/sagas/WidgetOperationSaga.test.tsx
const updateAndSaveLayoutMock = jest.fn(); import { setWidgetDynamicPropertySaga, removeDynamicBindingProperties, handleUpdateWidgetDynamicProperty, batchUpdateWidgetDynamicPropertySaga, } from "./WidgetOperationSagas"; const widget = { isVisible: "true", dynamicPropertyPathList: [], dynamicBindingPathL...
1,208
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/sagas/WidgetOperationUtils.test.ts
import type { OccupiedSpace } from "constants/CanvasEditorConstants"; import { klona } from "klona"; import { get } from "lodash"; import type { CanvasWidgetsReduxState } from "reducers/entityReducers/canvasWidgetsReducer"; import type { WidgetProps } from "widgets/BaseWidget"; import type { FlattenedWidgetProps } from...
1,210
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/sagas/WidgetSelectUtils.test.ts
import type { CanvasWidgetsReduxState } from "reducers/entityReducers/canvasWidgetsReducer"; import { deselectAll, pushPopWidgetSelection, selectMultipleWidgets, selectOneWidget, shiftSelectWidgets, unselectWidget, } from "./WidgetSelectUtils"; describe("Wigdet selection methods", () => { const allWidget...
1,214
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/sagas/helper.test.ts
/** * @jest-environment jsdom */ import { TextEncoder, TextDecoder } from "util"; Object.assign(global, { TextDecoder, TextEncoder }); import { enhanceRequestPayloadWithEventData, cleanValuesInObjectForHashing, generateHashFromString, } from "sagas/helper"; describe("tests the redux saga helper functions", (...
1,223
0
petrpan-code/appsmithorg/appsmith/app/client/src/sagas
petrpan-code/appsmithorg/appsmith/app/client/src/sagas/ActionExecution/PluginActionSagaUtils.test.ts
import { put } from "redux-saga/effects"; import { setDefaultActionDisplayFormat } from "./PluginActionSagaUtils"; const actionid = "test-id"; const plugin: any = { id: "test-plugin", name: "Test", type: "API", packageName: "test-package", uiComponent: "ApiEditorForm", datasourceComponent: "RestAPIDatasou...
1,225
0
petrpan-code/appsmithorg/appsmith/app/client/src/sagas
petrpan-code/appsmithorg/appsmith/app/client/src/sagas/ActionExecution/PostMessage.test.ts
import { postMessageSaga, executePostMessage } from "./PostMessageSaga"; import { spawn } from "redux-saga/effects"; import { runSaga } from "redux-saga"; describe("PostMessageSaga", () => { describe("postMessageSaga function", () => { const generator = postMessageSaga({ type: "POST_MESSAGE", payload...
1,232
0
petrpan-code/appsmithorg/appsmith/app/client/src/sagas
petrpan-code/appsmithorg/appsmith/app/client/src/sagas/ActionExecution/geolocationSaga.test.ts
import { call, put } from "redux-saga/effects"; import { extractGeoLocation, getCurrentLocationSaga, getUserLocation, } from "./geolocationSaga"; import { setUserCurrentGeoLocation } from "actions/browserRequestActions"; import { logActionExecutionError } from "./errorUtils"; const mockFn = jest.fn(); jest.mock...
1,243
0
petrpan-code/appsmithorg/appsmith/app/client/src/sagas
petrpan-code/appsmithorg/appsmith/app/client/src/sagas/__tests__/initSagas.test.ts
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; import { APP_MODE } from "entities/App"; import type AppEngine from "entities/Engine"; import AppEngineFactory from "entities/Engine/factory"; import { call } from "redux-saga/effects"; import { startAppEngine } from "sagas/InitSagas"; jest.m...
1,246
0
petrpan-code/appsmithorg/appsmith/app/client/src/sagas
petrpan-code/appsmithorg/appsmith/app/client/src/sagas/autoHeightSagas/helpers.test.ts
import { mutation_setPropertiesToUpdate } from "./helpers"; describe("auto height saga helpers", () => { it("When property exists, it should update correctly", () => { const propertiesToUpdate = { x: 50, y: "newValue", }; const originalObject = { key1: [ { propertyPath...
1,266
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/selectors/debuggerSelectors.test.ts
import { Severity, ENTITY_TYPE, LOG_CATEGORY } from "entities/AppsmithConsole"; import LOG_TYPE from "entities/AppsmithConsole/logtype"; import type { DataTree } from "entities/DataTree/dataTreeTypes"; import type { CanvasWidgetsReduxState } from "reducers/entityReducers/canvasWidgetsReducer"; import { PropertyEvaluati...
1,300
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/selectors/widgetSelectors.test.tsx
import React from "react"; import { Provider, useSelector } from "react-redux"; import { shouldWidgetIgnoreClicksSelector } from "./widgetSelectors"; import { renderHook, act } from "@testing-library/react-hooks"; import store from "../store"; import { useAutoHeightUIState } from "utils/hooks/autoHeightUIHooks"; descr...
1,306
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/transformers/CurlImportTransformer.test.ts
import transformCurlImport from "transformers/CurlImportTransformer"; describe("CurlImportTransformer", () => { it("has quotes in start and end and escapes special characters", () => { const inputs = [ `curl -X GET`, `"curl -X GET`, `curl -X GET"`, `curl google.com\n`, ]; const ou...
1,310
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/transformers/RestActionTransformers.test.ts
import { extractApiUrlPath, transformRestAction, } from "transformers/RestActionTransformer"; import type { ApiAction } from "entities/Action"; import { PluginType } from "entities/Action"; import { MultiPartOptionTypes, POST_BODY_FORMAT_OPTIONS, // POST_BODY_FORMAT_OPTIONS_ENUM, } from "constants/ApiEditorCo...
1,312
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/usagePulse/usagePulse.test.ts
import UsagePulse from "usagePulse"; describe("Usage pulse", () => { describe("isTrackableUrl", () => { it("should return true when called with trackable URL", () => { // All application URLS are trackable. [ "/app/test/mypage-123123/edit", "/app/test/mypage-123123", "/app/te...
1,315
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/ApiPaneUtils.test.ts
import { POST_BODY_FORMAT_OPTIONS } from "constants/ApiEditorConstants/CommonApiConstants"; import { getContentTypeHeaderValue, getIndextoUpdate, parseUrlForQueryParams, } from "utils/ApiPaneUtils"; describe("api pane header insertion or removal", () => { describe("index for header needs to be returned", () =>...
1,319
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/AppsmithUtils.test.ts
import { areArraysEqual, createBlobUrl, DataType, getCamelCaseString, getDatatype, parseBlobUrl, } from "utils/AppsmithUtils"; import { isURL } from "./TypeHelpers"; describe("getCamelCaseString", () => { it("Should return a string in camelCase", () => { const inputs = ["abcd", "ab12cd", "开关", "😃 😃...
1,322
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/DSLMigration.test.ts
import type { WidgetProps } from "widgets/BaseWidget"; import type { ContainerWidgetProps } from "widgets/ContainerWidget/widget"; import * as DSLMigrations from "./DSLMigrations"; import * as chartWidgetReskinningMigrations from "./migrations/ChartWidgetReskinningMigrations"; import * as tableMigrations from "./migrat...
1,324
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/DSLMigrationsUtils.test.ts
import { transformDSL } from "./DSLMigrations"; import { LATEST_PAGE_VERSION, RenderModes } from "constants/WidgetConstants"; import type { ContainerWidgetProps } from "widgets/ContainerWidget/widget"; import type { WidgetProps } from "widgets/BaseWidget"; import { OverflowTypes } from "widgets/TextWidget/constants"; i...
1,326
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/DynamicBindingUtils.test.ts
import type { Action } from "entities/Action"; import { PluginType } from "entities/Action"; import equal from "fast-deep-equal/es6"; import { combineDynamicBindings, getDynamicBindings, getPropertyPath, } from "./DynamicBindingUtils"; import { EVAL_VALUE_PATH, getDynamicBindingsChangesSaga, getDynamicStrin...
1,329
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/JSPaneUtils.test.ts
import { PluginType } from "entities/Action"; import type { JSCollection } from "entities/JSCollection"; import type { ParsedBody } from "./JSPaneUtils"; import { getDifferenceInJSCollection } from "./JSPaneUtils"; const JSObject1: JSCollection = { id: "1234", applicationId: "app123", workspaceId: "workspace123"...
1,341
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/WidgetFeatures.test.ts
import { RenderModes } from "constants/WidgetConstants"; import type { WidgetProps } from "widgets/BaseWidget"; import { DynamicHeight, hideDynamicHeightPropertyControl, } from "./WidgetFeatures"; const DUMMY_WIDGET: WidgetProps = { bottomRow: 0, isLoading: false, leftColumn: 0, parentColumnSpace: 0, par...
1,343
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/WidgetLoadingStateUtils.test.ts
import { PluginType } from "entities/Action"; import type { WidgetEntity, ActionEntity, JSActionEntity, } from "@appsmith/entities/DataTree/types"; import { ENTITY_TYPE_VALUE } from "entities/DataTree/dataTreeFactory"; import { findLoadingEntities, getEntityDependantPaths, groupAndFilterDependantsMap, } fro...
1,345
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/WidgetMigrationUtils.test.ts
import { cloneDeep, noop } from "lodash"; import type { DSLWidget } from "WidgetProvider/constants"; import { traverseDSLAndMigrate } from "./WidgetMigrationUtils"; const dsl = { children: [ { name: "widget1", children: [ { name: "widget2", }, { name: "widg...
1,347
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/WidgetPropsUtils.test.tsx
import * as generators from "utils/generators"; import { RenderModes } from "constants/WidgetConstants"; import { migrateChartDataFromArrayToObject, migrateToNewLayout, migrateInitialValues, migrateToNewMultiSelect, } from "./DSLMigrations"; import { buildChildren, widgetCanvasFactory, buildDslWithChildre...
1,349
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/WidgetQueryGeneratorRegistry.test.ts
import WidgetQueryGeneratorRegistry from "./WidgetQueryGeneratorRegistry"; describe("WidgetQueryGeneratorRegistry", () => { const somepluginId = "somePluginId"; it("should be able to register a QueryGenerator", () => { const someQueryGenerator = {}; WidgetQueryGeneratorRegistry.register(somepluginId, som...
1,351
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/WidgetSizeUtils.test.ts
import { RenderModes } from "constants/WidgetConstants"; import type { WidgetProps } from "widgets/BaseWidget"; import { getCanvasBottomRow, getCanvasWidgetHeightsToUpdate, } from "./WidgetSizeUtils"; const DUMMY_WIDGET: WidgetProps = { bottomRow: 0, isLoading: false, leftColumn: 0, parentColumnSpace: 0, ...
1,353
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/WorkerUtil.test.ts
import { GracefulWorkerService } from "./WorkerUtil"; import { runSaga } from "redux-saga"; const MessageType = "message"; interface extraWorkerProperties { callback: CallableFunction; noop: CallableFunction; delayMilliSeconds: number; running: boolean; } type WorkerClass = Worker & extraWorkerProperties; clas...
1,356
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/boxHelpers.test.ts
import type { Rect } from "./boxHelpers"; import { areIntersecting } from "./boxHelpers"; describe("boxHelpers", () => { describe("areIntersecting", () => { it("should return true when rect 1 and rect 2 are intersecting", () => { const rect1: Rect = { top: 0, bottom: 2, left: 0, ...
1,358
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/canvasStructureHelpers.test.ts
import type { CanvasStructure } from "reducers/uiReducers/pageCanvasStructureReducer"; import { compareAndGenerateImmutableCanvasStructure } from "./canvasStructureHelpers"; const canvasStructure: CanvasStructure = { widgetId: "x", widgetName: "x", type: "CONTAINER_WIDGET", children: [ { widgetId: "y"...
1,364
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/formhelpers.test.ts
import { isEmail } from "./formhelpers"; describe("isEmail test", () => { it("Check whether the valid emails are recognized as valid", () => { const validEmails = [ "appsmith@yahoo.com", "appsmith-100@yahoo.com", "appsmith.100@yahoo.com", "appsmith111@appsmith.com", "appsmith-100@ap...
1,370
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/helpers.test.ts
import { RenderModes } from "constants/WidgetConstants"; import { ValidationTypes } from "constants/WidgetValidation"; import { EvaluationSubstitutionType } from "entities/DataTree/dataTreeFactory"; import type { CanvasWidgetsReduxState } from "../reducers/entityReducers/canvasWidgetsReducer"; import { AutocompleteData...
1,374
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/klona.test.ts
import equal from "fast-deep-equal/es6"; import { klona } from "klona/full"; import moment from "moment"; describe("Klona clone test", () => { it("Strings, Booleans, numbers, null & undefined values", () => { const input: { meta: { stringLiteral: string; string: string; boolean: boo...
1,377
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/localStorage.test.ts
import myLocalStorage, { LocalStorage } from "utils/localStorage"; describe("local storage", () => { afterEach(() => { jest.clearAllMocks(); }); it("calls getItem", () => { jest.spyOn(window.localStorage.__proto__, "getItem"); window.localStorage.__proto__.getItem = jest.fn(); myLocalStorage.get...
1,386
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/testPropertyPaneConfig.test.ts
import type { PropertyPaneConfig, PropertyPaneControlConfig, PropertyPaneSectionConfig, ValidationConfig, } from "constants/PropertyControlConstants"; import { ValidationTypes } from "constants/WidgetValidation"; import { isFunction } from "lodash"; import widgets from "widgets"; import WidgetFactory from "Widg...
1,389
0
petrpan-code/appsmithorg/appsmith/app/client/src
petrpan-code/appsmithorg/appsmith/app/client/src/utils/widgetRenderUtils.test.ts
import type { WidgetEntity, WidgetEntityConfig, } from "@appsmith/entities/DataTree/types"; import type { DataTree } from "entities/DataTree/dataTreeTypes"; import type { CanvasWidgetsReduxState } from "reducers/entityReducers/canvasWidgetsReducer"; import type { MetaWidgetsReduxState } from "reducers/entityReducer...
1,400
0
petrpan-code/appsmithorg/appsmith/app/client/src/utils/FilterInternalProperties
petrpan-code/appsmithorg/appsmith/app/client/src/utils/FilterInternalProperties/__tests__/index.test.ts
import { filterInternalProperties } from ".."; import { ENTITY_TYPE_VALUE, EvaluationSubstitutionType, } from "entities/DataTree/dataTreeFactory"; import type { DataTreeEntityConfig, DataTreeEntityObject, WidgetEntityConfig, } from "@appsmith/entities/DataTree/types"; import { registerWidgets } from "WidgetPr...
1,408
0
petrpan-code/appsmithorg/appsmith/app/client/src/utils
petrpan-code/appsmithorg/appsmith/app/client/src/utils/autoHeight/generateTree.test.ts
import type { NodeSpace, TreeNode } from "./constants"; import { generateTree } from "./generateTree"; describe("Generate Auto Height Layout tree", () => { it("Does not conflict when only one horizontal edge is the same", () => { const input: Record<string, NodeSpace> = { "1": { left: 0, right: 100, top: 0...
1,411
0
petrpan-code/appsmithorg/appsmith/app/client/src/utils
petrpan-code/appsmithorg/appsmith/app/client/src/utils/autoHeight/mutateDOM.test.ts
import { getNodesAndStylesToUpdate } from "./mutateDOM"; describe("DOM mutations", () => { it("Computes the correct values to update based on widgetsToUpdate", () => { const widgetsToUpdate = { m: [ { propertyValue: 100, propertyPath: "bottomRow", }, { p...
1,413
0
petrpan-code/appsmithorg/appsmith/app/client/src/utils
petrpan-code/appsmithorg/appsmith/app/client/src/utils/autoHeight/reflow.test.ts
import type { TreeNode } from "./constants"; import { computeChangeInPositionBasedOnDelta } from "./reflow"; describe("reflow", () => { describe("computeChangeInPositionBasedOnDelta (should compute new positions for boxes based on boxes which has changed heights)", () => { it("simple 2 boxes test where the top g...