← ClaudeAtlas

testdriversecretslisted

Securely manage passwords and sensitive data in your tests
testdriverai/testdriverai · ★ 242 · Testing & QA · score 73
Install: claude install-skill testdriverai/testdriverai
<!-- Generated from secrets.mdx. DO NOT EDIT. --> Protect sensitive information like passwords, API keys, and tokens in your TestDriver tests. ## Typing Secrets Securely When typing sensitive information like passwords, use the `secret: true` option to prevent the value from being logged or stored: ```javascript import { test } from 'vitest'; import { chrome } from 'testdriverai/presets'; test('login with secure password', async (context) => { const { testdriver } = await chrome(context, { url: 'https://myapp.com/login' }); await testdriver.find('email input').click(); await testdriver.type(process.env.TD_USERNAME); await testdriver.find('password input').click(); // Password is masked in logs and recordings await testdriver.type(process.env.TD_PASSWORD, { secret: true }); await testdriver.find('login button').click(); await testdriver.assert('dashboard is visible'); }); ``` <Note> When `secret: true` is set, the typed text appears as `****` in all logs, recordings, and dashcam output. </Note> ## Storing Secrets in GitHub Store sensitive credentials as GitHub repository secrets so they're never exposed in your code: <Steps> <Step title="Navigate to Repository Settings"> Go to your GitHub repository → **Settings** → **Secrets and variables** → **Actions** </Step> <Step title="Add Repository Secrets"> Click **New repository secret** and add your secrets: - `TD_API_KEY` - Your TestDriver API key - `TD_USERNAME` - Test