mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-22 20:25:38 +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.1', () => {
|
|
test.afterEach(async ({ page }) => {
|
|
await closeAllCollections(page);
|
|
});
|
|
|
|
test('Import Postman Collection v2.1 successfully', async ({ page, createTmpDir }) => {
|
|
const postmanFile = path.resolve(__dirname, 'fixtures', 'postman-v21.json');
|
|
|
|
await importCollection(page, postmanFile, await createTmpDir('postman-v21-test'), {
|
|
expectedCollectionName: 'Postman v2.1 Collection'
|
|
});
|
|
});
|
|
});
|