write-e2e-cumulocity-cypress-test

write-e2e-cumulocity-cypress-test is a skill for Claude Code, Codex from Cumulocity-IoT/cumulocity-skills. It costs 87 tokens per session (4,215 once invoked), scanned A, original, Apache-2.0.

A procedure for writing and verifying Cypress end-to-end tests, which simulate a user completing a feature in a real browser, for Cumulocity UI plugins.

In plain words
What is it for?
Use it to create or fix Cumulocity feature tests, inspect backend requests, intercept them in Cypress, and diagnose CI failures.
Why use it?
It helps make browser tests repeatable by discovering the page's selectors and network requests, waiting for the right responses, and checking stable results. A test is only finished after a headless run passes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or fix Cumulocity feature tests, inspect backend requests, intercept them in Cypress, and diagnose CI failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cumulocity-iot/cumulocity-skills/write-e2e-cumulocity-cypress-test
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Cumulocity-IoT/cumulocity-skills --skill write-e2e-cumulocity-cypress-test
Clone the repo
git clone --depth 1 https://github.com/Cumulocity-IoT/cumulocity-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for write-e2e-cumulocity-cypress-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/cumulocity-iot/cumulocity-skills/write-e2e-cumulocity-cypress-test/github.svg)](https://agentmods.dev/skills/cumulocity-iot/cumulocity-skills/write-e2e-cumulocity-cypress-test)
Your own site
<a href="https://agentmods.dev/skills/cumulocity-iot/cumulocity-skills/write-e2e-cumulocity-cypress-test"><img src="https://agentmods.dev/badge/skills/cumulocity-iot/cumulocity-skills/write-e2e-cumulocity-cypress-test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for write-e2e-cumulocity-cypress-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/cumulocity-iot/cumulocity-skills/write-e2e-cumulocity-cypress-test"><img src="https://agentmods.dev/badge/skills/cumulocity-iot/cumulocity-skills/write-e2e-cumulocity-cypress-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,215 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.04215
Opus 5 $0.00044 $0.02107
Sonnet 5 $0.00017 $0.00843
Haiku 4.5 $0.00009 $0.00421

Measured 8d ago against content hash c45384fd467b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

write-e2e-cumulocity-cypress-test scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. **Dev server is up**: `curl -s -o /dev/null -w "%{http_code}" "$CYURL/apps/<C8Y_SHELL_TARGET value>/index.html"` must return 200. If not, ask the user to start it (usually `npm run start`); do not start it yourself un
skills/write-e2e-cumulocity-cypress-test/SKILL.md · 223 lines

How it starts

The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Write and verify e2e Cypress tests for Cumulocity

You are writing deterministic Cypress test code (no cy.prompt()), validating it yourself in a loop until it passes. A test is not done until you have run it headlessly and seen it green.

Workflow at a glance:

  1. Preflight — verify .env, dev server, tenant/base-URL match, device ID.
  2. Discover — walk the flow in a live browser (selectors, requests, response shapes), then confirm the backend contract in the Angular service source.
  3. Write — standard suite skeleton, intercept every relevant request before visiting, assert via stable selectors.
  4. Verify — run headless in a loop, diagnose from the request trace, fix, repeat; full suite once when green.
  5. Finish — delete run logs, report pass/fail counts, fold new lessons back into this skill.

This skill is project-agnostic. Placeholders in angle brackets (<feature>, <Tab label>, …) must be replaced with names discovered in the repo you are working in — never invent them.

Phase 0 — Preflight: verify the environment before writing anything

Run these checks first. Every minute spent here saves a failed-run iteration later.

  1. Learn the project's env contract. Read cypress.config.ts (and cypress/support/e2e.ts) to see which .env/environment keys the project reads and how they map into Cypress. Typical keys: C8Y_TENANT, C8Y_BASEURL, C8Y_USERNAME, C8Y_PASSWORD, C8Y_SHELL_TARGET, plus project-specific ones for the dev-server URL and a test device ID. Key names in .env often differ from what specs read via Cypress.env(...) — the config file is the authority on that mapping.

    Verify .env exists and contains the required keys. Check key names only (cut -d= -f1 .env) — never print values. .env values are not exported to your shell; to use one in a command, extract it into a variable first:

    CYURL=$(grep '^<DEV_SERVER_URL_KEY>=' .env | cut -d= -f2- | tr -d '\r')
    
  2. Dev server is up: curl -s -o /dev/null -w "%{http_code}" "$CYURL/apps/<C8Y_SHELL_TARGET value>/index.html" must return 200. If not, ask the user to start it (usually npm run start); do not start it yourself unless asked.

  3. Tenant ID matches the base URL. This is a frequent silent breaker: .env files get copied between environments. Verify with the public endpoint:

    curl -s "$C8Y_BASEURL/tenant/loginOptions"
    

    The self links reveal the real tenant ID (e.g. https://t12345.…). If it differs from C8Y_TENANT, fix .env. Symptom of a mismatch: login fails with HTTP 400 "A tenant is required in context!".

  4. Device ID exists (only if the test needs a device context):

    curl -s -o /dev/null -w "%{http_code}" -u "$C8Y_USERNAME:$C8Y_PASSWORD" "$C8Y_BASEURL/inventory/managedObjects/<device id>"
    

    On 404, find a real one: GET /inventory/managedObjects?fragmentType=c8y_IsDevice&pageSize=3 and update .env.

  5. Dependencies are pre-installed (cumulocity-cypress, and ideally cypress-terminal-report for request traces). Do not install anything new without asking.

Read the full file on GitHub · 223 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 223 lines · 87 tokens per session scan A c45384fd467b

Subscribe to this mod's changes

write-e2e-cumulocity-cypress-test is a skill published in the GitHub repository Cumulocity-IoT/cumulocity-skills (5 stars, last pushed 11d ago), licensed Apache-2.0. It adds 87 tokens to every session and 4,215 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

browse

Drive a real browser through Aside: open a page, read it, click through a flow, take screenshots, check console errors. (gstack).

garrytan/gstack · 32 tokens

playwright-cli

A command-line tool for controlling Chromium, Firefox, and WebKit browsers, including navigation, page interaction, screenshots, PDFs, and recorded actions.

UnicomAI/wanwu · 76 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

anthropics/skills · 35 tokens

create-verification-skill

Create a repo-local verification skill and exhaustive feature map for driving a real app through its UI, CLI, or API. Use for "create a verification skill", "make a verify skill for this repo", or "document how agents can verify this app".

get-bb/bb · 57 tokens

browser-qa

A browser-based quality check for deployed web pages and user flows. It uses browser automation to test rendering, navigation, forms, interactions, responsive behaviour, and accessibility-related issues.

hashgraph-online/awesome-codex-plugins · 58 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog-foss · 112 tokens