Skip to content
Open

Qa #57

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .claude/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"mcpServers": {
"TestDino": {
"command": "/opt/homebrew/bin/testdino-mcp",
"env": {
"TESTDINO_PAT": "tpu_d50a352ff1a128668ecaeba1da1026825eb314678cf47751d50c55503c89297e"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove committed TestDino PAT

This commit adds a live personal access token directly in source control, which exposes credentials to anyone who can read the repo/history and allows unauthorized access to the TestDino MCP service. Secrets must be loaded from environment/secret storage instead of being hardcoded in tracked files.

Useful? React with 👍 / 👎.

}
}
}
}
46 changes: 33 additions & 13 deletions playwright.config.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,39 @@
// @ts-check
import { defineConfig, devices } from '@playwright/test';
import * as dotenv from 'dotenv';
import dotenv from 'dotenv';

// Load environment variables
dotenv.config();

dotenv.config({ quiet: true });
const isCI = !!process.env.CI;

export default defineConfig({
testDir: './tests',
snapshotDir: './__screenshots__',
fullyParallel: true,
forbidOnly: isCI,
retries: isCI ? 0 : 0,
workers: isCI ? 1 : 1,

retries: isCI ? 1 : 1, // Enable retries for flaky test behavior
workers: isCI ? 5 : 5,

timeout: 30 * 1000,
timeout: 60 * 1000,
expect: {
timeout: 10 * 1000,
},

reporter: [
['html', {
outputFolder: 'playwright-report',
open: 'never'
}],
['blob', { outputDir: 'blob-report' }], // Blob reporter for merging
['blob'], // ✅ REQUIRED for sharding
['html', { outputDir: './playwright-report' }],
['json', { outputFile: './playwright-report/report.json' }],
],

use: {
baseURL: 'https://storedemo.testdino.com',
baseURL: 'https://storedemo.testdino.com/products',
headless: true,
trace: 'on-first-retry',
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
actionTimeout: 15 * 1000,
navigationTimeout: 30 * 1000,
},

projects: [
Expand All @@ -47,5 +52,20 @@ export default defineConfig({
use: { ...devices['Desktop Safari'] },
grep: /@webkit/, // only run tests tagged @webkit
},
{
name: 'android',
use: { ...devices['Pixel 5'] },
grep: /@android/, // only run tests tagged @android
},
{
name: 'ios',
use: { ...devices['iPhone 14'] },
grep: /@ios/, // only run tests tagged @ios
},
{
name: 'api',
use: { ...devices['API'] },
grep: /@api/, // only run tests tagged @api
},
],
});
Loading
Loading