Hero Background

Power Your Software Testing with AI Agents and Cloud

The Native AI-Agentic Cloud Platform to Supercharge Quality Engineering. Test Intelligently and Ship Faster.

Kane CLICRM

Test a record edit that saves behind a loading overlay

The spinner that breaks brittle automation, and a reload that proves the save actually persisted.

Published on:

Loading overlays are the classic reason CRM automation is brittle. A script that clicks save and immediately asserts will read the old value, so teams add sleeps and the suite becomes slow and flaky anyway.

This use case edits a record on the Salesfource clone and proves the save stuck.

The contract this flow keeps

The flow is built around the saving state and a reload, both of which most record tests skip.

  • The starting value - 240 employees, captured before the edit.
  • Two fields change - a number and a picklist, which save through different paths.
  • The overlay is observed - the button shows a saving state before the record returns to read-only.
  • The values survive a reload - which is the only proof the save reached storage.

Without the reload this test proves the page updated its own state, which is exactly what an optimistic UI does whether or not the save succeeded. The reload is the whole point.

Note

Note: Kane CLI waits for the page to settle and decides the assertion against the live state, so an overlay does not need a hardcoded sleep. Try it on TestMu AI. Try free!

The objective in plain English

The saving state is asserted rather than waited out, which means a save that completes instantly and one that never starts are distinguishable.

---
mode: testing
url: https://my-testing-repo-main.vercel.app/salesforce-clone-app/accounts?reset=true
max_steps: 45
tags: [salesforce, crm, records]
---

# Salesfource 28.4: Record edit through the overlay

Catalog objective: edit an account field and save through the loading overlay.
Key assertion: the saved value persists after a reload.

## Open the record for editing
Verify the "Northwind Labs" account shows "Employees" of "240", then click "Edit" on it.

## Change a field
Replace "Employees" with "310" and select "Manufacturing" in "Industry".

## Save through the overlay
Click "Save" and verify the button shows a saving state before the record returns to its read-only view.

## Verify the value persisted after a reload
Verify "Employees" now reads "310" and "Industry" reads "Manufacturing", then reload https://my-testing-repo-main.vercel.app/salesforce-clone-app/accounts and verify both values are still there.

Both a numeric field and a picklist are changed because they commit through different code paths, and a save that handles one and drops the other is a realistic failure.

Assertion by assertion

A baseline, an edit, a save and a reload.

StepWhat it proves
Open the record for editingThe starting value is known and the record is editable
Change a fieldA number and a picklist both accept new values
Save through the overlayThe saving state appears and the record returns to read-only
Verify the value persisted after a reloadBoth values are still there after a fresh page load

A reload costs a few seconds and converts an optimistic render into a proven write. On a record edit it is the difference between testing the UI and testing the save.

Next-generation test execution with TestMu AI

Putting it in CI

kane-cli testmd run tests/salesforce/record-edit-overlay_test.md

Add a validation failure on save, since a rejected save that leaves the form looking saved is the worst version of this flow.

Overlays and async saves are where selector-based suites spend most of their maintenance. How live page assertions work explains the alternative, and the run speed work is relevant if you plan a large CRM suite.

Author

...

Bhawana

Blogs: 75

  • Twitter
  • Linkedin

Bhawana is a Community Evangelist at TestMu AI with over 3 years of experience creating technically accurate, strategy-driven content in software testing. She has authored 50+ blogs on test automation, cross-browser testing, mobile testing, and real device testing. She also serves as Product Marketing Manager for Kane CLI, the command-line tool that runs browser automation from the terminal using natural-language flows in a real Chrome browser. Bhawana is certified in KaneAI, Selenium, Appium, Playwright, and Cypress, reflecting her hands-on knowledge of modern automation practices. On LinkedIn, she is followed by 6000+ QA engineers, testers, AI automation testers, and tech leaders.

Add to Google preferred sources

Summarise with AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

Record Edit FAQs

Did you find this page helpful?

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests