/ok-to-test tags="@tag.Anvil" <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced an AI Agents integration tag, broadening the available options for future enhancements. - Added new public methods for retrieving widget, datasource, and action states, improving testability and state management. - **Tests** - The text input component now supports a new testing identifier attribute, greatly improving targeting in automated tests. - Enhanced testing commands provide more reliable state tracking and feature flag management, contributing to a more stable application experience. <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/13719108635> > Commit: d7fc099930a658b3d68cc5ef063661df02765801 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13719108635&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Anvil` > Spec: > <hr>Fri, 07 Mar 2025 11:14:32 UTC <!-- end of auto-generated comment: Cypress test results -->
128 lines
3.2 KiB
JavaScript
128 lines
3.2 KiB
JavaScript
export const modifierKey = Cypress.platform === "darwin" ? "meta" : "ctrl";
|
|
export const TABLE_COLUMN_ORDER_KEY = "tableWidgetColumnOrder";
|
|
export const TABLE_DATA_DYNAMIC = `{{[
|
|
{
|
|
"id": 2381224,
|
|
"email": "michael.lawson@reqres.in",
|
|
"userName": "Michael Lawson",
|
|
"productName": "Chicken Sandwich",
|
|
"orderAmount": 4.99
|
|
},
|
|
{
|
|
"id": 2736212,
|
|
"email": "lindsay.ferguson@reqres.in",
|
|
"userName": "Lindsay Ferguson",
|
|
"productName": "Tuna Salad",
|
|
"orderAmount": 9.99
|
|
},
|
|
{
|
|
"id": 6788734,
|
|
"email": "tobias.funke@reqres.in",
|
|
"userName": "Tobias Funke",
|
|
"productName": "Beef steak",
|
|
"orderAmount": 19.99
|
|
},
|
|
{
|
|
"id": 7434532,
|
|
"email": "byron.fields@reqres.in",
|
|
"userName": "Byron Fields",
|
|
"productName": "Chicken Sandwich",
|
|
"orderAmount": 4.99
|
|
},
|
|
{
|
|
"id": 7434532,
|
|
"email": "ryan.holmes@reqres.in",
|
|
"userName": "Ryan Holmes",
|
|
"productName": "Avocado Panini",
|
|
"orderAmount": 7.99
|
|
},
|
|
{
|
|
"id": 7434532,
|
|
"email": "byron.fields@reqres.in",
|
|
"userName": "Byron Fields",
|
|
"productName": "Chicken Sandwich",
|
|
"orderAmount": 4.99
|
|
},
|
|
{
|
|
"id": 7434532,
|
|
"email": "ryan.holmes@reqres.in",
|
|
"userName": "Ryan Holmes",
|
|
"productName": "Avocado Panini",
|
|
"orderAmount": 7.99
|
|
},
|
|
{
|
|
"id": 7434532,
|
|
"email": "byron.fields@reqres.in",
|
|
"userName": "Byron Fields",
|
|
"productName": "Chicken Sandwich",
|
|
"orderAmount": 4.99
|
|
},
|
|
{
|
|
"id": 7434532,
|
|
"email": "ryan.holmes@reqres.in",
|
|
"userName": "Ryan Holmes",
|
|
"productName": "Avocado Panini",
|
|
"orderAmount": 7.99
|
|
},
|
|
{
|
|
"id": 7434532,
|
|
"email": "byron.fields@reqres.in",
|
|
"userName": "Byron Fields",
|
|
"productName": "Chicken Sandwich",
|
|
"orderAmount": 4.99
|
|
},
|
|
{
|
|
"id": 7434532,
|
|
"email": "ryan.holmes@reqres.in",
|
|
"userName": "Ryan Holmes",
|
|
"productName": "Avocado Panini",
|
|
"orderAmount": 7.99
|
|
},
|
|
{
|
|
"id": 7434532,
|
|
"email": "byron.fields@reqres.in",
|
|
"userName": "Byron Fields",
|
|
"productName": "Chicken Sandwich",
|
|
"orderAmount": 4.99
|
|
},
|
|
{
|
|
"id": 7434532,
|
|
"email": "ryan.holmes@reqres.in",
|
|
"userName": "Ryan Holmes",
|
|
"productName": "Avocado Panini",
|
|
"orderAmount": 7.99
|
|
}
|
|
]}}`;
|
|
|
|
export const TABLE_DATA_STATIC = `
|
|
[
|
|
{
|
|
"id": "#1",
|
|
"task": "Drop a table",
|
|
"status": "✅",
|
|
"action": ""
|
|
},
|
|
{
|
|
"id": "#2",
|
|
"task": "Create a query fetch_users with the Mock DB",
|
|
"status": "--",
|
|
"action": ""
|
|
},
|
|
{
|
|
"id": "#3",
|
|
"task": "Bind the query using => fetch_users.data",
|
|
"status": "--",
|
|
"action": ""
|
|
}
|
|
]
|
|
`;
|
|
|
|
export const WALKTHROUGH_TEST_PAGE = "WALKTHROUGH_TEST_PAGE";
|
|
export const ANVIL_EDITOR_TEST = "ANVIL_EDITOR_TEST";
|
|
export const AI_AGENTS_TEST = "AI_AGENTS_TEST";
|
|
export const DEFAULT_COLUMN_NAME = "Table Column";
|
|
export const FEATURE_WALKTHROUGH_INDEX_KEY = "FEATURE_WALKTHROUGH";
|
|
export const USER_SIGN_UP_INDEX_KEY = "USER_SIGN_UP";
|
|
|
|
export const LICENSE_FEATURE_FLAGS = ["license_audit_logs_enabled"];
|