Files
bruno/tests/import/postman/import-postman-v21-wrapped.spec.ts
sanish chirayath 454b43942c feat: support newer Postman export format with collection envelope (#8038)
- Updated the Postman collection importer to handle collections wrapped in a { collection: { ... } } format.
- Enhanced the parsing logic to extract collection info correctly from both legacy and newer formats.
- Added a new test case for importing a Postman v2.1 collection with the wrapped format to ensure compatibility.
2026-05-19 19:57:44 +05:30

18 lines
688 B
TypeScript

import { test } from '../../../playwright';
import * as path from 'path';
import { closeAllCollections, importCollection } from '../../utils/page';
test.describe('Import Postman Collection v2.1 (wrapped format)', () => {
test.afterEach(async ({ page }) => {
await closeAllCollections(page);
});
test('Import Postman Collection v2.1 with collection envelope successfully', async ({ page, createTmpDir }) => {
const postmanFile = path.resolve(__dirname, 'fixtures', 'postman-v21-wrapped.json');
await importCollection(page, postmanFile, await createTmpDir('postman-v21-wrapped-test'), {
expectedCollectionName: 'Postman v2.1 Wrapped Collection'
});
});
});