Demo
GUIDE

Cases 67–84 · Enterprise platforms

7 MIN READ

Case 67 — Create a Salesforce Lightning record

Apply component rules to the Lightning form without describing LWC internals.

gherkin
Feature: Create a Salesforce Account

  Scenario: Sales user creates an active customer Account
    Given I am on the Accounts list in the "Sales" app
    When I click the "New" button
    And I wait until the "New Account" modal is ready
    And I fill "TestZeus Customer {timestamp}" in the "Account Name" text field
    And I select "Technology" from the "Industry" picklist
    And I search for [$.testdata.account.parent_name] in the "Parent Account" lookup
    And I select the exact matching account
    And I ensure the "Active" checkbox is checked
    And I click the "Save" button in the "New Account" modal
    And I wait until the Account record page opens
    And I save the Account record URL as [$.output.account_url]
    Then the Account record page should show "TestZeus Customer {timestamp}"
    And the "Details" tab should show Industry "Technology"
    And the "Active" checkbox should be checked

Case 68 — Complete an Aura form with rerendering fields

gherkin
Given the "Legacy Configuration" section is visible
When I select "Hardware" from the "Product Family" picklist
And I wait until the section spinner disappears
And I wait until the "Product" picklist becomes enabled
And I select "4K Camera" from the "Product" picklist
Then the "Product Family" picklist should show "Hardware"
And the "Product" picklist should show "4K Camera"

Reestablish the current section after each rerender.

Case 69 — Use a Salesforce lookup

gherkin
When I search for [$.testdata.contact.account_name] in the "Account Name" lookup
And I select the result whose account number is [$.testdata.contact.account_number]
Then the "Account Name" lookup should show [$.testdata.contact.account_name]

Use a second business key when names are duplicated.

Case 70 — Use Salesforce record-type radio choices

gherkin
When I click the "New" button on the Accounts list
And I wait until the "New Account" record-type dialog appears
And I select "Person Account" in the "Record Type" radio group
And I click "Next"
Then the "New Person Account" form should be visible

Case 71 — Edit a Salesforce CPQ quote line

gherkin
Given the Quote Line Editor is visible
When I find the quote line whose "Product Code" is "CAM-4K"
And I edit its "Quantity" cell to `3`
And I select "Annual" from its "Subscription Type" picklist
And I ensure its "Optional" checkbox is unchecked
And I click "Calculate"
And I wait until the Quote Total stops changing
Then the "CAM-4K" line should show Quantity `3`
And its Subscription Type should be "Annual"
And its Optional checkbox should be unchecked
And the Quote Total should equal [$.testdata.cpq.expected_total]

Case 72 — Complete an OmniScript step

gherkin
Given the "Customer Details" OmniScript step is active
When I fill [$.testdata.customer.name] in the "Customer Name" text field
And I select [$.testdata.customer.type] from the "Customer Type" picklist
And I ensure the "Primary Contact" checkbox is checked
And I click "Next"
Then the "Service Details" OmniScript step should become active

Case 73 — Add repeated OmniScript items

gherkin
START LOOP for each unprocessed item in [$.testdata.order.items] in source order
  When I click "Add Item"
  And I fill its Product Code in the new row
  And I fill its Quantity in the same row
  And I require the row to show the expected Product Name
  And I mark the source item as processed
END LOOP when no unprocessed source items remain
Then the number of item rows should equal the source item count

Case 74 — Advance an nCino loan stage

gherkin
Given I am on loan [$.testdata.loan.number] in the nCino workspace
And the current stage is "Application"
When I complete every required component in the "Loan Information" section
And I upload [$.testdata.loan.financial_statement] to the "Financial Statement" checklist item
And I require every required checklist item to be complete
And I click "Advance Stage"
And I select "Underwriting" from the target-stage picklist
And I confirm the transition
Then the loan stage should show "Underwriting"

Case 75 — Create a ServiceNow user with a reference field

gherkin
Given I am on the ServiceNow Users list
When I click "New"
And I fill "tz.user.{timestamp}" in the "User ID" text field
And I fill "TestZeus" in the "First name" text field
And I fill "User {timestamp}" in the "Last name" text field
And I click the lookup icon next to the "Company" reference field
And I wait until the Company lookup opens
And I search for "ACME"
And I select the exact company named "ACME"
And I ensure the "Company" reference field shows "ACME"
And I ensure the "Active" checkbox is checked
And I click "Submit"
Then the Users list should contain User ID "tz.user.{timestamp}"

Case 76 — Use a ServiceNow choice and dependent field

gherkin
When I select "Hardware" from the "Category" choice field
And I wait until the "Subcategory" choice field refreshes
And I select "Laptop" from the "Subcategory" choice field
Then Category should show "Hardware"
And Subcategory should show "Laptop"

Case 77 — Use a ServiceNow slushbucket

gherkin
When I move "itil" and "report_user" from "Available Roles" to "Selected Roles"
Then both roles should appear under "Selected Roles"
And neither role should remain under "Available Roles"
gherkin
Given I am in the "Manage Supplier Invoices" Fiori app
When I fill [$.testdata.sap.supplier_id] in the "Supplier" input
And I select "Posted" from the "Status" Select control
And I set the "Posting Date" range to the current month
And I click "Go"
Then every visible result should match the supplier, status, and date range

Case 79 — Use SAP Value Help

gherkin
When I open Value Help for the "Supplier" field
And I wait until the "Select Supplier" dialog opens
And I search for supplier ID [$.testdata.sap.supplier_id]
And I select the row with that exact supplier ID
Then the dialog should close
And the "Supplier" field should show [$.testdata.sap.supplier_id]

Case 80 — Use SAP MultiComboBox tokens

gherkin
When I select "Email" and "Portal" from the "Communication Channels" MultiComboBox
Then tokens "Email" and "Portal" should be present
And no other token should be selected

Case 81 — Post an SAP business document

gherkin
When I complete all required invoice fields and item rows
And the displayed balance is zero
And I click "Post"
And I save the supplier invoice number from the success message as [$.output.sap_invoice_number]
Then the success message should contain a supplier invoice number
And the invoice Object Page should show status "Posted"

Case 82 — Use an Oracle List of Values

gherkin
When I open the List of Values for the "Supplier" field
And I search for [$.testdata.oracle.supplier_number]
And I select the row with that exact supplier number
Then the "Supplier" field should show the selected supplier name

Case 83 — Edit an Oracle table row

gherkin
When I find the invoice line whose "Line Number" is `2`
And I edit its "Amount" cell to [$.testdata.oracle.line_2_amount]
And I save the invoice
Then line `2` should show the new amount
And the invoice total should be recalculated

Case 84 — Submit an Oracle approval action

gherkin
Given requisition [$.testdata.oracle.requisition_number] is open
When I click "Submit for Approval"
And I wait until the confirmation dialog names that requisition
And I confirm submission
Then the requisition status should show "Pending Approval"