chore: export anvil locators (#39624)

/ok-to-test tags="@tag.Anvil"

<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/13720487258>
> Commit: 1e7dc782974a780a7eb39dcaa3618c14853d5e13
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13720487258&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Anvil`
> Spec:
> <hr>Fri, 07 Mar 2025 12:40:56 UTC
<!-- end of auto-generated comment: Cypress test results  -->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Improved the modularity of our widget selection system, enhancing its
integration and maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Pawan Kumar 2025-03-07 18:11:11 +05:30 committed by GitHub
parent c027e9395c
commit f209c31e04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ import { AnvilDataAttributes } from "../../../../../src/widgets/wds/constants";
// anvil widget based selectors
const anvilWidgetSelector = "[data-testid=t--anvil-widget-wrapper]";
const anvilWidgetBasedSelectors = {
export const anvilWidgetBasedSelectors = {
anvilWidgetSelector,
anvilWidgetNameSelector: (widgetName: string) => {
return `[${AnvilDataAttributes.WIDGET_NAME}="${widgetName}"]`;