master afaf66808aa7 cached
11 files
5.4 KB
1.8k tokens
3 symbols
1 requests
Download .txt
Repository: cypress-io/cypress-recorder-extension
Branch: master
Commit: afaf66808aa7
Files: 11
Total size: 5.4 KB

Directory structure:
gitextract_x1wtnh3w/

├── .github/
│   └── workflows/
│       ├── add-issue-to-triage-board.yml
│       └── triage_closed_issue_comment.yml
├── .gitignore
├── LICENSE
├── README.md
├── build/
│   └── .keep
├── package.json
├── rollup.config.js
└── src/
    ├── DevToolsPlugin.html
    ├── DevToolsPlugin.js
    └── manifest.json

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/workflows/add-issue-to-triage-board.yml
================================================
name: 'Add issue/PR to Triage Board'
on:
  issues:
    types:
      - opened
  pull_request_target:
    types:
      - opened
jobs:
  add-to-triage-project-board:
    uses: cypress-io/cypress/.github/workflows/triage_add_to_project.yml@develop
    secrets: inherit


================================================
FILE: .github/workflows/triage_closed_issue_comment.yml
================================================
name: 'Handle Comment Workflow'
on:
  issue_comment:
    types:
      - created
jobs:
  closed-issue-comment:
    uses: cypress-io/cypress/.github/workflows/triage_handle_new_comments.yml@develop
    secrets: inherit


================================================
FILE: .gitignore
================================================
node_modules
yarn-error.log

build/*
!build/.keep
**/.DS_Store

================================================
FILE: LICENSE
================================================
MIT License

Copyright (c) 2022 Adam Murray

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


================================================
FILE: README.md
================================================
# Cypress Chrome Recorder Extension

> 🔖 **Official Cypress Extension for Chrome DevTools Recorder.** <br/>
> This project is maintained by the Cypress Team.

<p align="center">
  <a href="https://cypress.io">
    <img width="140" alt="Cypress Logo" src="https://raw.githubusercontent.com/cypress-io/cypress/develop/npm/cypress-schematic/src/svgs/built-by-cypress.svg" />
    </a>
</p>

<img width="1009" alt="export-as-cypress" src="https://user-images.githubusercontent.com/5917927/185565270-2f3e9b34-4432-46a3-bafb-0cfe2e53377b.png">

---

Add [this Chrome Extension](https://chrome.google.com/webstore/detail/cypress-chrome-recorder/fellcphjglholofndfmmjmheedhomgin) to export DevTools Recordings as Cypress Tests directly from the [DevTools Recorder Panel](https://goo.gle/devtools-recorder).

## Usage

1. [Create a new recording](https://goo.gle/devtools-recorder#record) via the Recorder panel
2. Hover over the [export](https://developer.chrome.com/docs/devtools/recorder/reference/#export-flows) icon
3. Click "Export as a Cypress Test"
4. Save file as {testName}.cy.{ts.js}

## Testing

1. Clone the repo, run `yarn` and run `yarn build`
2. Visit chrome://extensions
3. Enable "Developer mode" via toggle switch in upper right corner
4. Click "Load unpacked" button in upper left corner
5. Select the `build` directory produced by `yarn build`

## Publishing

After building and testing the extension locally, upload the build folder to Web Store.

# Export in bulk programmatically
Alternatively, use the [@cypress/chrome-recorder](https://github.com/cypress-io/cypress-chrome-recorder) CLI to export DevTools Recordings as Cypress Tests in bulk programmatically.


================================================
FILE: build/.keep
================================================


================================================
FILE: package.json
================================================
{
  "name": "cypress-recorder-extension",
  "version": "1.1.2",
  "description": "",
  "main": "dist/index.js",
  "scripts": {
    "test": "yarn test",
    "build": "rsync -a src/*.json build/ && rsync -a src/*.html build/ && rsync -a src/img/*.png build/img/ && rollup --config rollup.config.js"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/admah/cypress-recorder-extension.git"
  },
  "keywords": [
    "chrome",
    "extension",
    "cypress",
    "automation"
  ],
  "author": "Cypress-io",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/admah/cypress-recorder-extension/issues"
  },
  "homepage": "https://github.com/admah/cypress-recorder-extension#readme",
  "dependencies": {
    "@cypress/chrome-recorder": "^2.3.1"
  },
  "devDependencies": {
    "@rollup/plugin-node-resolve": "^13.3.0",
    "rollup": "^2.77.2"
  }
}


================================================
FILE: rollup.config.js
================================================
import { nodeResolve } from '@rollup/plugin-node-resolve';

export default {
  input: 'src/DevToolsPlugin.js',
  output: {
    file: 'build/DevToolsPlugin.js',
    format: 'iife'
  },
  plugins: [nodeResolve({
    resolveOnly: ['@cypress/chrome-recorder', '@puppeteer/replay']
  })]
};


================================================
FILE: src/DevToolsPlugin.html
================================================
<script type="module" src="./DevToolsPlugin.js"></script>

================================================
FILE: src/DevToolsPlugin.js
================================================
import { cypressStringifyChromeRecording, stringifyParsedStep } from '@cypress/chrome-recorder';

export class RecorderPlugin {
  async stringify(recording) {
    return await cypressStringifyChromeRecording(JSON.stringify(recording));
  }

  async stringifyStep(step) {
    return await stringifyParsedStep(step);
  }
}

/* eslint-disable no-undef */
chrome.devtools.recorder.registerRecorderExtensionPlugin(
  new RecorderPlugin(),
  /* name=*/ 'Cypress Test',
  /* mediaType=*/ 'application/javascript'
);


================================================
FILE: src/manifest.json
================================================
{
  "manifest_version": 3,
  "version": "1.1.1",
  "name": "Cypress Chrome Recorder",
  "description": "Cypress extension for DevTools that allows you to export tests directly from the Recorder panel.",
  "permissions": [],
  "icons": {
    "16": "img/icon_16x16.png",
    "32": "img/icon_32x32.png",
    "48": "img/icon_48x48.png",
    "128": "img/icon_128x128.png"
  },
  "devtools_page": "DevToolsPlugin.html",
  "content_security_policy": {
    "extension_pages": "script-src 'self'; object-src 'self'"
  },
  "minimum_chrome_version": "104.0.0.0"
}
Download .txt
gitextract_x1wtnh3w/

├── .github/
│   └── workflows/
│       ├── add-issue-to-triage-board.yml
│       └── triage_closed_issue_comment.yml
├── .gitignore
├── LICENSE
├── README.md
├── build/
│   └── .keep
├── package.json
├── rollup.config.js
└── src/
    ├── DevToolsPlugin.html
    ├── DevToolsPlugin.js
    └── manifest.json
Download .txt
SYMBOL INDEX (3 symbols across 1 files)

FILE: src/DevToolsPlugin.js
  class RecorderPlugin (line 3) | class RecorderPlugin {
    method stringify (line 4) | async stringify(recording) {
    method stringifyStep (line 8) | async stringifyStep(step) {
Condensed preview — 11 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (6K chars).
[
  {
    "path": ".github/workflows/add-issue-to-triage-board.yml",
    "chars": 265,
    "preview": "name: 'Add issue/PR to Triage Board'\non:\n  issues:\n    types:\n      - opened\n  pull_request_target:\n    types:\n      - o"
  },
  {
    "path": ".github/workflows/triage_closed_issue_comment.yml",
    "chars": 217,
    "preview": "name: 'Handle Comment Workflow'\non:\n  issue_comment:\n    types:\n      - created\njobs:\n  closed-issue-comment:\n    uses: "
  },
  {
    "path": ".gitignore",
    "chars": 62,
    "preview": "node_modules\nyarn-error.log\n\nbuild/*\n!build/.keep\n**/.DS_Store"
  },
  {
    "path": "LICENSE",
    "chars": 1068,
    "preview": "MIT License\n\nCopyright (c) 2022 Adam Murray\n\nPermission is hereby granted, free of charge, to any person obtaining a cop"
  },
  {
    "path": "README.md",
    "chars": 1676,
    "preview": "# Cypress Chrome Recorder Extension\n\n> 🔖 **Official Cypress Extension for Chrome DevTools Recorder.** <br/>\n> This proje"
  },
  {
    "path": "build/.keep",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "package.json",
    "chars": 877,
    "preview": "{\n  \"name\": \"cypress-recorder-extension\",\n  \"version\": \"1.1.2\",\n  \"description\": \"\",\n  \"main\": \"dist/index.js\",\n  \"scrip"
  },
  {
    "path": "rollup.config.js",
    "chars": 286,
    "preview": "import { nodeResolve } from '@rollup/plugin-node-resolve';\n\nexport default {\n  input: 'src/DevToolsPlugin.js',\n  output:"
  },
  {
    "path": "src/DevToolsPlugin.html",
    "chars": 57,
    "preview": "<script type=\"module\" src=\"./DevToolsPlugin.js\"></script>"
  },
  {
    "path": "src/DevToolsPlugin.js",
    "chars": 509,
    "preview": "import { cypressStringifyChromeRecording, stringifyParsedStep } from '@cypress/chrome-recorder';\n\nexport class RecorderP"
  },
  {
    "path": "src/manifest.json",
    "chars": 554,
    "preview": "{\n  \"manifest_version\": 3,\n  \"version\": \"1.1.1\",\n  \"name\": \"Cypress Chrome Recorder\",\n  \"description\": \"Cypress extensio"
  }
]

About this extraction

This page contains the full source code of the cypress-io/cypress-recorder-extension GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 11 files (5.4 KB), approximately 1.8k tokens, and a symbol index with 3 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!