mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-24 13:15:40 +00:00
18 lines
622 B
TypeScript
18 lines
622 B
TypeScript
import { test } from '../../../playwright';
|
|
import * as path from 'path';
|
|
import { closeAllCollections, importCollection } from '../../utils/page';
|
|
|
|
test.describe('Import Postman Collection v2.0', () => {
|
|
test.afterEach(async ({ page }) => {
|
|
await closeAllCollections(page);
|
|
});
|
|
|
|
test('Import Postman Collection v2.0 successfully', async ({ page, createTmpDir }) => {
|
|
const postmanFile = path.resolve(__dirname, 'fixtures', 'postman-v20.json');
|
|
|
|
await importCollection(page, postmanFile, await createTmpDir('postman-v20-test'), {
|
|
expectedCollectionName: 'Postman v2.0 Collection'
|
|
});
|
|
});
|
|
});
|