freshworks / crayons

🖍️ Crayons - A UI Kit comprising of web components for building Freshworks Apps!
https://crayons.freshworks.com
219 stars 61 forks source link

Test/form builder #798

Closed rihansiddhi closed 1 year ago

rihansiddhi commented 1 year ago

Checklist:

Tests (55):

✓ renders (1368 ms)
✓ renders customize widget button (1000 ms)
✓ does not render customize widget button if productName is CONVERSATION_PROPERTIES (1014 ms)
✓ disables left panel and displays message and button when userPlan is trial, clicking on Explore plan button triggers fwExplorePlan event (1336 ms)
✓ emits fwExpandField when clicked on a field in right panel (1913 ms)
✓ emits fwExpandField when clicked on cancel button in an expanded field (2034 ms)
✓ should display the correct headers and description for CUSTOM_OBJECTS (1318 ms)
✓ should display the correct headers and description for CONVERSATION_PROPERTIES (1164 ms)
✓ displays all necessary fields in each field editor for CONVERSATION_PROPERTIES (1698 ms)
✓ displays all necessary fields in each field editor for CONVERSATION_PROPERTIES (1661 ms)
✓ displays all necessary fields in each field editor for CONVERSATION_PROPERTIES (1672 ms)
✓ displays all necessary fields in each field editor for CONVERSATION_PROPERTIES (1701 ms)
✓ displays all necessary fields in each field editor for CONVERSATION_PROPERTIES (1714 ms)
✓ displays all necessary fields in each field editor for CONVERSATION_PROPERTIES (1729 ms)
✓ displays all necessary fields in each field editor for CONVERSATION_PROPERTIES (1702 ms)
✓ displays all necessary fields in each field editor for CONVERSATION_PROPERTIES (1722 ms)
✓ displays all necessary fields in each field editor for CUSTOM_OBJECTS (1785 ms)
✓ displays all necessary fields in each field editor for CUSTOM_OBJECTS (1903 ms)
✓ displays all necessary fields in each field editor for CUSTOM_OBJECTS (1790 ms)
✓ displays all necessary fields in each field editor for CUSTOM_OBJECTS (1753 ms)
✓ displays all necessary fields in each field editor for CUSTOM_OBJECTS (1744 ms)
✓ displays all necessary fields in each field editor for CUSTOM_OBJECTS (1734 ms)
✓ displays all necessary fields in each field editor for CUSTOM_OBJECTS (1684 ms)
✓ displays all necessary fields in each field editor for CUSTOM_OBJECTS (1754 ms)
✓ displays all necessary fields in each field editor for CUSTOM_OBJECTS (1806 ms)
✓ displays all necessary fields in each field editor for CUSTOM_OBJECTS (1774 ms)
test CUSTOM_OBJECTS fields
  ✓ clicking on add RELATIONSHIP field triggers fwAddClick and fwComposeNewField events with the expected detail (1408 ms)
  ✓ clicking on add TEXT field triggers fwAddClick and fwComposeNewField events with the expected detail (1345 ms)
  ✓ clicking on add PARAGRAPH field triggers fwAddClick and fwComposeNewField events with the expected detail (1281 ms)
  ✓ clicking on add NUMBER field triggers fwAddClick and fwComposeNewField events with the expected detail (1316 ms)
  ✓ clicking on add DECIMAL field triggers fwAddClick and fwComposeNewField events with the expected detail (1370 ms)
  ✓ clicking on add DATE field triggers fwAddClick and fwComposeNewField events with the expected detail (1299 ms)
  ✓ clicking on add DROPDOWN field triggers fwAddClick and fwComposeNewField events with the expected detail (1316 ms)
  ✓ clicking on add CHECKBOX field triggers fwAddClick and fwComposeNewField events with the expected detail (1515 ms)
  ✓ clicking on add MULTI_SELECT field triggers fwAddClick and fwComposeNewField events with the expected detail (1483 ms)
  ✓ renders field menu items in left panel (1062 ms)
  ✓ opens a modal on click of delete button and on confirmation, emits fwDeleteField event with event details (2087 ms)
  ✓ renders form values in right panel (1723 ms)
  ✓ searching a value should filter the field elements (4128 ms)
  ✓ triggers fwSaveField event when a field is edited and save is clicked (2475 ms)
  ✓ validates choices and label field in field editor (2891 ms)
test CONVERSATION_PROPERTIES fields
  ✓ clicking on add TEXT field triggers fwAddClick and fwComposeNewField events with the expected detail (1284 ms)
  ✓ clicking on add PARAGRAPH field triggers fwAddClick and fwComposeNewField events with the expected detail (1300 ms)
  ✓ clicking on add NUMBER field triggers fwAddClick and fwComposeNewField events with the expected detail (1316 ms)
  ✓ clicking on add DECIMAL field triggers fwAddClick and fwComposeNewField events with the expected detail (1535 ms)
  ✓ clicking on add DATE field triggers fwAddClick and fwComposeNewField events with the expected detail (1335 ms)
  ✓ clicking on add DROPDOWN field triggers fwAddClick and fwComposeNewField events with the expected detail (1415 ms)
  ✓ clicking on add CHECKBOX field triggers fwAddClick and fwComposeNewField events with the expected detail (1347 ms)
  ✓ clicking on add MULTI_SELECT field triggers fwAddClick and fwComposeNewField events with the expected detail (1353 ms)
  ✓ renders field menu items in left panel (1001 ms)
  ✓ opens a modal on click of delete button and on confirmation, emits fwDeleteField event with event details (2008 ms)
  ✓ renders form values in right panel (1475 ms)
  ✓ searching a value should filter the field elements (4061 ms)
  ✓ triggers fwSaveField event when a field is edited and save is clicked (2343 ms)
  ✓ validates choices and label field in field editor (2651 ms)