Skip to content

Commit c5f9337

Browse files
authored
Fix e2 e tests (#135)
* fixing e2e tests * fixing e2e tests
1 parent b7994f1 commit c5f9337

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

packages/b2c-cli/test/functional/e2e/mrt-lifecycle.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ describe('MRT Lifecycle E2E Tests', function () {
166166
expect(result.exitCode, `Org B2C command failed: ${result.stderr}`).to.equal(0);
167167

168168
const response = parseJSONOutput(result);
169-
expect(response).to.have.property('b2cInfo');
169+
expect(response).to.have.property('is_b2c_customer');
170170
});
171171
});
172172

@@ -354,7 +354,12 @@ describe('MRT Lifecycle E2E Tests', function () {
354354
// Skip if 404 (some environments may not have B2C connection configured)
355355
if (result.exitCode !== 0) {
356356
const errorText = String(result.stderr || result.stdout || '');
357-
if (errorText.includes('404') || errorText.includes('Not found')) {
357+
if (
358+
errorText.includes('404') ||
359+
errorText.includes('Not found') ||
360+
errorText.includes('No B2CTargetInfo matches the given query') ||
361+
errorText.includes('Failed to get B2C target info')
362+
) {
358363
console.log(' ⚠ B2C target info not available for this environment, skipping');
359364
this.skip();
360365
}

0 commit comments

Comments
 (0)