Demo
GUIDE

Platform rules

5 MIN READ

The component rules do not change per platform. What changes is which identities are stable, which rerenders to expect, and which business states are worth confirming.

Salesforce Lightning and LWC

  • Use visible field labels, record names, tab names, button names, and section headings.
  • Treat Lightning text fields, textareas, comboboxes, picklists, checkboxes, radio groups, switches, and date fields according to the component rules.
  • Use the exact option displayed in a Lightning picklist.
  • Select controlling picklists before dependent picklists.
  • Confirm lookup selections by the selected pill or committed field value.
  • Scope actions to Details, Related, a modal title, a related list, or a specific record row.
  • After Save, confirm the record page, durable field values, and record ID or URL.
  • Do not describe LWC tags, shadow roots, or SLDS markup.

Canonical record form:

gherkin
When I click the "New" button on the Accounts list
And I wait until the "New Account" modal is ready
And I fill "Automation Account {timestamp}" in the "Account Name" text field
And I select "Technology" from the "Industry" picklist
And I ensure the "Active" checkbox is checked
And I click the "Save" button in the "New Account" modal
Then the Account record page should show "Automation Account {timestamp}"

Salesforce Aura

  • Apply the same component wording as Lightning.
  • Expect partial-page rerenders after selections and saves.
  • Wait for spinners to disappear and controls to become enabled.
  • Reidentify the current section after a rerender.
  • Do not assume a component remains stable after another field changes.

Salesforce Visualforce

  • Name the Visualforce tab or page.
  • State whether the page is inside an iframe or a new browser tab.
  • Wait for the Visualforce page heading or primary form to appear.
  • Scope repeated buttons and fields to the Visualforce page.
  • Confirm navigation back to Lightning or Setup when the context changes.

Salesforce CPQ

  • Identify Quote Line Editor rows by Product Code or exact Product Name.
  • Name the field column for every inline edit.
  • Handle price-book and product-selection dialogs by their titles.
  • After line changes, click Calculate and wait until totals stop changing.
  • Confirm line quantity, discount, net price, subtotal, and quote total separately.
  • Distinguish Quote Save, Quote Line Save, Calculate, Contract, and Order actions.
gherkin
When I edit the "Quantity" cell to `3` in the quote line whose "Product Code" is "CAM-4K"
And I click "Calculate"
And I wait until the Quote Total stops changing
Then the line should show Quantity `3`
And the Quote Total should equal [$.testdata.cpq.expected_total]

Vlocity, Salesforce Industries, and OmniStudio

  • Name the OmniScript, current step, and target step.
  • Treat each field by its actual component type.
  • Handle repeated blocks as runtime collections with row identities.
  • Confirm Next advances to the named step.
  • Confirm validation messages remain within the correct step.
  • For FlexCards, identify the card by title and business key.
  • For asynchronous Integration Procedures, wait for a terminal business status.

nCino

  • Identify the workspace, loan record, stage, section, and checklist item.
  • Scope fields to the relevant loan or borrower section.
  • Treat stage changes as durable state transitions.
  • Confirm selected products, parties, collateral, documents, and approval status.
  • Capture the loan number and record URL for subsequent scenarios.

ServiceNow

  • Distinguish the All menu, application navigator filter, list filter, and global search.
  • Treat choice fields as picklists and reference fields as searchable lookups.
  • Confirm a reference field by its committed display value.
  • Name list rows by Number, User ID, or another unique key.
  • Scope Submit, Update, and UI Actions to the current form.
  • Treat glide lists and slushbuckets as multi-select transfer lists.
  • For journal or rich-text fields, confirm the new entry in the activity stream.
  • In Workspace, name the open record tab and side panel.

SAP S/4HANA and Fiori

  • Name the Launchpad app or tile.
  • Treat Input and TextArea controls as text components.
  • Treat Select, ComboBox, and MultiComboBox controls according to selection rules.
  • Use Value Help as a lookup: open, search, select the business key, and confirm the committed value.
  • Treat tokens as selected values.
  • Set filter-bar fields before clicking Go.
  • Identify table rows by document or business key.
  • Name Object Page sections and tabs.
  • Read Message Strips, Message Popovers, and success dialogs immediately.
  • Confirm the generated business document number after Save or Post.

Oracle Fusion, Redwood, and Oracle web applications

  • Name the Navigator, work area, task, drawer, dialog, and page heading.
  • Treat List of Values controls as searchable lookups.
  • Treat Choice Lists as picklists.
  • Identify table rows by invoice, supplier, requisition, employee, or another unique key.
  • Scope inline field changes to the row and column.
  • Confirm Save, Submit, Approve, Reject, and Post as distinct business states.
  • Preserve currency, decimal, and date formatting required by the current locale.

General web applications

  • Prefer accessible names and visible labels.
  • Treat custom controls by their behaviour: text, selection, state, action, collection, or overlay.
  • Never rely on visual position when a semantic identity exists.
  • Confirm each navigation transition with a heading, selected tab, URL path, or durable record state.

Mobile applications

  • Use visible text or accessibility labels for controls.
  • Use tap, fill, search, swipe, scroll, long-press, and drag intentionally.
  • Confirm that the keyboard does not hide the next control before continuing.
  • Name native permission dialogs and the required choice.
  • Treat switches, checkboxes, radio buttons, text fields, pickers, sliders, lists, tabs, and dialogs with the same state rules as web components.
  • Name the direction and destination of gestures.
  • State when the flow moves between the native app, system browser, and embedded webview.
  • Confirm push notifications by message text and destination screen.
  • Do not use raw screen coordinates when an accessibility identity is available.