Files
euchre_camp/e2e/cucumber-e2e.test.ts
T
david b7f000161b
Pull Request / unit-tests (pull_request) Successful in 2m7s
Pull Request / analyze-bump-type (pull_request) Successful in 13s
Pull Request / build-and-deploy-ci (pull_request) Failing after 8m26s
test: quarantine failing acceptance tests
2026-05-20 12:11:10 -07:00

33 lines
856 B
TypeScript

import { test } from '@playwright/test';
import { execSync } from 'child_process';
test.describe.skip('Cucumber E2E Tests', () => {
test('Run all Cucumber feature files', async () => {
const baseURL = process.env.CI
? 'https://euchre-ci.notsosm.art'
: 'http://localhost:3000';
let result;
try {
result = execSync(
'npx cucumber-js --config e2e/cucumber/cucumber.config.ts',
{
encoding: 'utf-8',
stdio: 'pipe',
env: {
...process.env,
BASE_URL: baseURL,
},
cwd: process.cwd(),
}
);
} catch (error: any) {
console.log('Cucumber stderr:', error.stderr?.toString() || 'none');
console.log('Cucumber stdout:', error.stdout?.toString() || 'none');
throw error;
}
console.log(result);
});
});