Files
bruno/tests/import/insomnia/import-insomnia-v5.spec.ts
naman-bruno e93e545b81 improve: tests (#6321)
* improve: tests

* fixes

* fixes
2025-12-06 15:36:58 +05:30

18 lines
621 B
TypeScript

import { test } from '../../../playwright';
import * as path from 'path';
import { closeAllCollections, importCollection } from '../../utils/page';
test.describe('Import Insomnia Collection v5', () => {
test.afterEach(async ({ page }) => {
await closeAllCollections(page);
});
test('Import Insomnia Collection v5 successfully', async ({ page, createTmpDir }) => {
const insomniaFile = path.resolve(__dirname, 'fixtures', 'insomnia-v5.yaml');
await importCollection(page, insomniaFile, await createTmpDir('insomnia-v5-test'), {
expectedCollectionName: 'Test API Collection v5'
});
});
});