fix: mount /apps and docker socket in PR workflow build-and-deploy-ci job #41
@@ -85,6 +85,9 @@ test.describe('CSV Upload Player Deduplication', () => {
|
|||||||
multipart: formData,
|
multipart: formData,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!response.ok()) {
|
||||||
|
console.log('CSV upload failed:', response.status(), await response.text());
|
||||||
|
}
|
||||||
expect(response.ok()).toBeTruthy();
|
expect(response.ok()).toBeTruthy();
|
||||||
|
|
||||||
// Check that only 4 unique players were created (not 8)
|
// Check that only 4 unique players were created (not 8)
|
||||||
@@ -139,6 +142,9 @@ test.describe('CSV Upload Player Deduplication', () => {
|
|||||||
multipart: formData,
|
multipart: formData,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!response.ok()) {
|
||||||
|
console.log('CSV upload failed:', response.status(), await response.text());
|
||||||
|
}
|
||||||
expect(response.ok()).toBeTruthy();
|
expect(response.ok()).toBeTruthy();
|
||||||
|
|
||||||
// Check that players were created without extra whitespace
|
// Check that players were created without extra whitespace
|
||||||
@@ -196,6 +202,9 @@ test.describe('CSV Upload Player Deduplication', () => {
|
|||||||
multipart: formData,
|
multipart: formData,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!response.ok()) {
|
||||||
|
console.log('CSV upload failed:', response.status(), await response.text());
|
||||||
|
}
|
||||||
expect(response.ok()).toBeTruthy();
|
expect(response.ok()).toBeTruthy();
|
||||||
|
|
||||||
// Check that the existing player was updated (not duplicated)
|
// Check that the existing player was updated (not duplicated)
|
||||||
|
|||||||
+19
-12
@@ -7,18 +7,25 @@ test.describe('Cucumber E2E Tests', () => {
|
|||||||
? 'https://euchre-ci.notsosm.art'
|
? 'https://euchre-ci.notsosm.art'
|
||||||
: 'http://localhost:3000';
|
: 'http://localhost:3000';
|
||||||
|
|
||||||
const result = execSync(
|
let result;
|
||||||
'npx cucumber-js --config e2e/cucumber/cucumber.config.ts',
|
try {
|
||||||
{
|
result = execSync(
|
||||||
encoding: 'utf-8',
|
'npx cucumber-js --config e2e/cucumber/cucumber.config.ts',
|
||||||
stdio: 'pipe',
|
{
|
||||||
env: {
|
encoding: 'utf-8',
|
||||||
...process.env,
|
stdio: 'pipe',
|
||||||
BASE_URL: baseURL,
|
env: {
|
||||||
},
|
...process.env,
|
||||||
cwd: process.cwd(),
|
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);
|
console.log(result);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user