sf-test-opps

Opens a Salesforce org in a headed Playwright browser and navigates to the All Opportunities list view.

13|17|Updated Jan 30, 2025
One-click install
npx skills add https://github.com/CodeWithSally/CodeWithSally-Apex-English --skill sf-test-opps-codewithsally
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-test-opps
Source: https://github.com/CodeWithSally/CodeWithSally-Apex-English/tree/main/Sessions/ClaudeCode/Session004/.claude/skills/sf-test-opps
Command: npx skills add https://github.com/CodeWithSally/CodeWithSally-Apex-English --skill sf-test-opps-codewithsally

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually logging into a Salesforce org and clicking through to the Opportunities list view is repetitive when doing browser-based testing or inspection. This Skill automates the login and navigation flow so you land directly on the All Opportunities list view in a visible browser. ## Core Features & Use Cases - Automated Org Login: Retrieves the frontdoor SSO URL via the Salesforce CLI and opens it in a headed Playwright browser. - List View Navigation: Clicks through the Opportunities tab and switches to the All Opportunities list view automatically. - Record-Level Access: Optionally opens a specific opportunity record by name using a page snapshot. - Use Case: Before running browser-based tests against Salesforce opportunity records, use this Skill to get a logged-in, headed browser session positioned on the All Opportunities list view as a starting point. ## Quick Start Ask the AI to open your Salesforce org and navigate to the All Opportunities list view in a headed browser.

Frequently Asked Questions about sf-test-opps

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I open a Salesforce org in a Playwright browser?

Run sf org open --url-only to get the frontdoor SSO URL, then pass it to npx playwright-cli open --headed. The URL logs you in automatically and loads the Lightning home page without manual credential entry.

How to navigate to the All Opportunities list view in Salesforce with automation?

Click the Opportunities link in the top navigation bar, then open the list view picker and select All Opportunities. The URL updates to filterName=AllOpportunities and the page title confirms the view.

Does Playwright work with Salesforce Lightning pages?

Yes, Playwright can interact with Salesforce Lightning pages using role-based selectors like getByRole for links, buttons, and options. This Skill uses those selectors to click the Opportunities link and list view picker.

Why use headed mode instead of headless for Salesforce browser testing?

Headed mode keeps the browser visible so you can inspect pages interactively and perform follow-up manual steps. This Skill always uses the --headed flag for that reason.

What if sf org open prints a security warning before the URL?

A security warning on stderr before the URL line is expected behavior from the Salesforce CLI. Parse the URL from the output line that reads Access org as user with the following URL and ignore the warning.