mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-15 20:01:28 +00:00
18 lines
653 B
TypeScript
18 lines
653 B
TypeScript
import { test } from '../../../playwright';
|
|
import * as path from 'path';
|
|
import { closeAllCollections, importCollection } from '../../utils/page';
|
|
|
|
test.describe('Import OpenAPI v3 YAML Collection', () => {
|
|
test.afterEach(async ({ page }) => {
|
|
await closeAllCollections(page);
|
|
});
|
|
|
|
test('Import comprehensive OpenAPI v3 YAML successfully', async ({ page, createTmpDir }) => {
|
|
const openApiFile = path.resolve(__dirname, 'fixtures', 'openapi-comprehensive.yaml');
|
|
|
|
await importCollection(page, openApiFile, await createTmpDir('comprehensive-test'), {
|
|
expectedCollectionName: 'Comprehensive API Test Collection'
|
|
});
|
|
});
|
|
});
|