mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-11 09:51:30 +00:00
18 lines
614 B
TypeScript
18 lines
614 B
TypeScript
import { test } from '../../../playwright';
|
|
import * as path from 'path';
|
|
import { closeAllCollections, importCollection } from '../../utils/page';
|
|
|
|
test.describe('Import OpenAPI v3 JSON Collection', () => {
|
|
test.afterEach(async ({ page }) => {
|
|
await closeAllCollections(page);
|
|
});
|
|
|
|
test('Import simple OpenAPI v3 JSON successfully', async ({ page, createTmpDir }) => {
|
|
const openApiFile = path.resolve(__dirname, 'fixtures', 'openapi-simple.json');
|
|
|
|
await importCollection(page, openApiFile, await createTmpDir('simple-test'), {
|
|
expectedCollectionName: 'Simple Test API'
|
|
});
|
|
});
|
|
});
|