Platform

Solutions

Resources

Platform

Solutions

Resources

Platform

Solutions

Resources

Blog

Salesforce Testing Challenges and How to Overcome Them

Abhilash

Published on

Salesforce Testing Challenges

Table of contents

Salesforce testing rarely fails for one reason. A release changes a component, a profile hides a button, a sandbox has stale data, and the one person who understands the test suite is on holiday. Each problem is manageable on its own. Together, they’re why so many Salesforce teams still test by hand.



What Are Salesforce Testing Challenges?

Salesforce testing challenges are the problems that make Salesforce harder to test than most web applications. They include three platform releases a year, dynamic page elements, layouts that change by user and record type, logic spread across configuration and code, connected systems, unreliable test data, and AI agents whose answers vary.

None of them is unique to Salesforce on its own. What makes Salesforce hard is that they all apply at once, in the same org, on someone else’s release calendar.



The 14 Challenges at a Glance

Theme

Challenges

Platform change

  • Three releases a year

  • Release updates that become enforced

  • Managed package updates

UI technology

  • Dynamic IDs and hidden identifiers

  • Lightning components and shadow DOM

  • iFrames

Org complexity

  • Profiles, permission sets and record types

  • Logic hidden in configuration

  • Integrations and API limits

Data and environments

  • Sandbox data drift

  • Sign-in, MFA and SSO

People and process

  • Skills and key-person risk.

  • Evidence for change boards and audits

AI agents

  • Agentforce agents that don’t answer the same way twice



Platform Change Challenges


  1. Three Salesforce Releases a Year

Salesforce updates every org three times a year, in spring, summer and winter. Each release can change components, page behaviour and features your processes depend on. It arrives whether or not you deployed anything.

  • What you’ll notice: Tests that passed last month fail after an upgrade weekend, though nobody on your team changed anything.

  • How to overcome it: Keep a sandbox on the preview instance, and run your full regression suite the day it upgrades. That gives you weeks to fix problems before production.

For the dates that set each release window, from sandbox preview to production weekends, see the Salesforce release cycle.


  1. Release Updates That Become Enforced

Some changes arrive as release updates you can test early and switch on yourself. If you don’t, Salesforce enforces them on a set date, sometimes a release or two later.

  • What you’ll notice: A behaviour change appears in production on a date you didn’t plan for.

  • How to overcome it: Review the Release Updates page every release. Enable each update in a sandbox, run the affected journeys, then turn it on in production on your schedule.

For a step-by-step way to test each update before it’s enforced, read testing Salesforce release updates.


  1. Managed Package Updates

Apps installed from AppExchange update on their vendors’ schedules, not yours or Salesforce’s. A package update can change fields, pages or automation your processes rely on.

  • What you’ll notice: A journey breaks after a package upgrade, often in a part of the org you thought was stable.

  • How to overcome it: List the packages each important journey depends on. Rerun those journeys whenever a package updates, and test major upgrades in a sandbox first.



UI Technology Challenges


  1. Dynamic IDs and Hidden Identifiers

Salesforce generates many element IDs at runtime, so the same field can have a different ID every time a page loads. Many elements carry no stable identifier a test can rely on.

  • What you’ll notice: Tests fail with “element not found” errors, even though the field is clearly on screen.

  • How to overcome it: Find fields the way users do, by their visible labels and context. Never rely on IDs copied from the browser.


  1. Lightning Web Components and Shadow DOM

Lightning Web Components keep their internal structure inside shadow roots. Ordinary selectors can’t see inside them, and the internal structure can change between releases.

  • What you’ll notice: Selectors that work in one release fail in the next, or can’t find elements at all.

  • How to overcome it: Use tools that see inside shadow roots, or find elements by label. Avoid tests that depend on a component’s internals.

For how Lightning components hide elements, and how to reach them, read our guide to Salesforce LWC testing.


  1. iFrames

Visualforce pages and some embedded content load inside iFrames, which are separate documents within the page.

  • What you’ll notice: Tests can’t find elements that are clearly visible on screen.

  • How to overcome it: Switch into the frame before interacting, and back out afterwards. Better still, use a tool that handles frames for you.

For locators, frames and persona testing in one place, see Salesforce UI test automation.



Org Complexity Challenges


  1. Profiles, Permission Sets and Record Types

The same page can show different fields, buttons and picklist values depending on the user’s profile, their permission sets and the record type. One object can have dozens of combinations.

  • What you’ll notice: Tests pass as an administrator, but real users report missing buttons, read-only fields or values they can’t select.

  • How to overcome it: Run important journeys as each real persona, and test what each persona must not see as well as what they can do.

For how record types, layouts and profiles multiply what each journey must cover, read Salesforce org anatomy for testers.


  1. Logic Hidden in Configuration

Much of a modern org’s logic lives in flows, validation rules, approval processes and assignment rules, not in Apex code. Salesforce’s 75% code coverage rule only applies to Apex.

  • What you’ll notice: Apex coverage is high, yet business processes still break after configuration changes.

  • How to overcome it: Treat 75% coverage as a deployment requirement, not a quality measure. Cover flows, validation rules and approvals in end-to-end journeys, as the users they apply to.

For which test layer proves what, from Apex to end-to-end journeys, see Flows, Apex and triggers: where Salesforce logic lives.


  1. Integrations and API Limits

Salesforce sits at the centre of most tech stacks, connected to ERP, marketing, billing and support systems. Each connection can change independently, and Salesforce enforces limits on API calls and processing.

  • What you’ll notice: Records look right in Salesforce, but the order never reaches the ERP, or bulk processes fail when they hit platform limits.

  • How to overcome it: Test journeys end to end, across every system they touch, and check the data at each step. Include high-volume scenarios that approach platform limits.

For how to test a business process across several systems, read our guide to business process end-to-end testing.



Data and Environment Challenges


  1. Sandbox Data Drift

Sandboxes come in several types, with different amounts of data. Production keeps changing, so sandboxes go stale unless they’re refreshed and re-seeded. Copying real customer data into them brings UK GDPR and EU GDPR obligations.

  • What you’ll notice: Tests fail because a record they expected has gone, or pass because the data no longer reflects real customers.

  • How to overcome it: Have tests create the data they need, ideally through the API, and clean it up afterwards. Use masked or synthetic data, never real customer records.

For data that never touches real customers, find out more about synthetic test data.


  1. Sign-In, MFA and SSO

Multi-factor authentication and single sign-on protect your org, and they also block automated tests that try to sign in like a person.

  • What you’ll notice: Test runs stop at the sign-in page, or fail when a verification code is requested.

  • How to overcome it: Use dedicated test users per persona, with approved sign-in methods for test environments. Test the sign-in journey itself separately, and reuse sessions for everything else.

For safe ways to handle verification codes and single sign-on in automated tests, read handling Salesforce login, MFA and SSO in automated tests.



People and Process Challenges


  1. Skills and Key-Person Risk

Coded test suites need automation engineers. Salesforce admins and business analysts, who know the processes best, often can’t read or fix them.

  • What you’ll notice: One or two people maintain the whole suite. When they’re busy or leave, testing stalls.

  • How to overcome it: Write tests that the people who know the process can read and maintain, such as plain English journeys. Share ownership across QA, admins and analysts.


  1. Evidence for Change Boards and Audits

Regulated and enterprise teams must show what was tested before a release, against which requirements, and who approved it.

  • What you’ll notice: Someone spends days before each release collecting screenshots and spreadsheets for the change board.

  • How to overcome it: Keep a record of every run, linked to the requirement it proves and the person who approved the release. Evidence then exists before anyone asks for it.



AI Agent Challenges


  1. Agentforce Agents That Don’t Answer the Same Way Twice

Agentforce agents use AI to decide what to do, so the same question can get different wording, and occasionally a different action. Traditional pass or fail checks don’t fit.

  • What you’ll notice: Agent tests flip between passing and failing with no change to the agent.

  • How to overcome it: Test reasoning in Agentforce Testing Center with pass-rate thresholds. Then test what the agent actually changes, such as records, routing and handoffs, with exact end-to-end checks. Keep a baseline for every Salesforce release.

For what Testing Center checks, and where it stops, read Salesforce Agentforce Testing Center explained.



Which Challenge is Hurting You Most?

If You See This

The Likely Challenge

Start Here

Tests fail after upgrade weekends, with no code changes

Releases, release updates or packages (1 to 3)

Run the suite in the preview window

“Element not found” errors on visible fields

Dynamic IDs, shadow DOM or iFrames (4 to 6)

Switch to label-based locators

Tests pass, but users report problems

Personas or configuration logic (7 and 8)

Test as each real persona

Salesforce looks right, downstream systems don’t

Integrations (9)

Extend journeys end to end

Failures that come and go with the data

Sandbox data (10)

Make tests create their own data

Runs stop at the sign-in page

MFA and SSO (11)

Set up test users and session reuse

One person keeps the suite alive

Skills (12)

Make tests readable by admins and analysts

Days spent preparing for change boards

Evidence (13)

Record runs against requirements

Agent tests flip between pass and fail

AI agents (14)

Use thresholds, plus end-to-end checks



A Worked Example: Three Challenges in One Release

(Illustrative)

A service team is preparing for a winter release. Their preview sandbox upgrades on a Friday. On Monday, their automated case escalation journey fails. When they investigate, they find three separate causes.

Cause

What Went Wrong

Challenge Behind It

How They Fixed It

A release update

A release update changed how a Lightning component displays, so the test’s selector could no longer find the "Escalate" button.

Release updates that become enforced, and Lightning components in shadow DOM

They replaced the selector with a step that finds the button by its visible label.

A permission change

A recent permission set change removed the "Escalate" button for team leads. Nobody noticed, because the journey only ran as an administrator.

Profiles, permission sets and record types

They added the team lead persona to the journey, so it now runs as the people who actually escalate cases.

Missing test data

The case record the test relied on had been deleted in the last sandbox refresh.

Sandbox data drift

They changed the test to create its own case through the API before each run, and remove it afterwards.

Each cause needed a different fix. Because the team ran their tests in the preview window, they found and fixed all three before the release reached production.



A Salesforce Testing Strategy That Handles All 14

  • Start with the journeys that matter most: List the processes the business would notice first if they broke, such as quote to cash or case resolution.

  • Match each piece of logic to the right test layer: Apex tests for code, Flow Tests for flows, Testing Center for agents, and end-to-end journeys for the whole process.

  • Test as real users: Run each journey as every persona that performs it.

  • Own your data: Tests create and clean up the records they need.

  • Work to the release calendar: Run the full suite in every preview window, and after every deployment and package update.

  • Make tests readable: Admins and analysts should be able to read and maintain them.

  • Keep evidence as you go: Record what was tested, against which requirement, and who approved it.

To see where your team stands today, and which step to take next, use the Salesforce testing maturity model.



Overcoming Salesforce Testing Challenges With Virtuoso QA

Most of these challenges have the same effect. Tests break, and fixing them depends on a few specialists. Virtuoso QA is built to break that cycle.

Admins, analysts and testers write journeys in plain English, so the people who know the process can maintain the tests. Steps find fields by their visible labels, with enhanced element selection for Salesforce and support for shadow DOM and iFrames. Journeys run as each persona, create their own data through API steps, and continue into connected systems.

When Salesforce changes, steps are repaired visibly and reversibly, or proposed for someone to accept. Failures are classified, so nobody fixes a test that isn’t broken. Touchstone’s agents can propose journeys from your process documents, citing their source, for a named person to approve. Every run records the requirement, the result and the approver, so change board evidence exists before anyone asks.

💡Virtuoso QA’s Salesforce test automation runs plain English journeys as every persona, across Salesforce and connected systems, in every preview window, with evidence for every release.



Related Reads

Salesforce Testing Challenges FAQs

What are the biggest challenges in Salesforce testing?

Why do Salesforce automated tests break so often?

Is Salesforce’s 75% code coverage enough?

How do you test Salesforce as different users?

How do you prepare for a Salesforce release?

Written by

Abhilash

Industry Analyst, Test Automation

Abhilash tracks how AI is reshaping software testing, from pairwise coverage to regulatory accountability, and writes research-led pieces that cut through vendor noise with numbers.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA