## Description IDE rendering tests for Query routes Fixes #31865 ## Automation /ok-to-test tags="@tag.IDE" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!IMPORTANT] > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/8372729741> > Commit: `32d0e14a69f0fef33904eab854b691112cdc6046` > Cypress dashboard url: <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8372729741&attempt=1" target="_blank">Click here!</a> > All cypress tests have passed 🎉🎉🎉 <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced accessibility by adding `aria-label` to close buttons in the IDE. - Improved testing capabilities with new `data-testid` attributes across various components for better identification. - **Tests** - Introduced comprehensive test cases for IDE functionalities including rendering states, adding queries/APIs, and handling different screen modes. - Added factories for creating mock actions and states for API, Google Sheets, Postgres, and IDE testing. - **Chores** - Updated and added `data-testid` attributes for improved testability and maintenance. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
17 lines
472 B
TypeScript
17 lines
472 B
TypeScript
import * as Factory from "factory.ts";
|
|
import type { Page } from "@appsmith/constants/ReduxActionConstants";
|
|
|
|
export const PageFactory = Factory.Sync.makeFactory<Page>({
|
|
pageName: Factory.each((i) => `Page${i + 1}`),
|
|
pageId: Factory.each((i) => `page_id_${i + 1}`),
|
|
isDefault: false,
|
|
isHidden: false,
|
|
slug: Factory.each((i) => `pageSlug${i + 1}`),
|
|
userPermissions: [
|
|
"read:pages",
|
|
"manage:pages",
|
|
"create:pageActions",
|
|
"delete:pages",
|
|
],
|
|
});
|