feat: Set JavaScript sandbox to safe mode by default for new collections (#4824)

* feat: Set JavaScript sandbox to safe mode by default for new collections

* rm: sandbox code in playwright test

* rm: safe mode code in var interpolation test

* rm: sandbox modal code

* fix

* fix

* fix

* fix

* improve

* improvement

* fix

* fix
This commit is contained in:
Pooja
2025-12-18 17:27:38 +05:30
committed by GitHub
parent bc2efb9686
commit 5e6444b8b5
44 changed files with 120 additions and 282 deletions

View File

@@ -1,6 +1,6 @@
import { test, expect } from '../../../playwright';
import * as path from 'path';
import { closeAllCollections, openCollectionAndAcceptSandbox } from '../../utils/page';
import { closeAllCollections, openCollection } from '../../utils/page';
test.describe('Import OpenAPI Collection with Examples', () => {
let originalShowOpenDialog;
@@ -78,7 +78,7 @@ test.describe('Import OpenAPI Collection with Examples', () => {
});
await test.step('Handle sandbox modal', async () => {
await openCollectionAndAcceptSandbox(page, 'API with Examples', 'safe');
await openCollection(page, 'API with Examples');
});
await test.step('Verify collection name appears in sidebar', async () => {
@@ -206,7 +206,7 @@ test.describe('Import OpenAPI Collection with Examples', () => {
});
await test.step('Handle sandbox modal', async () => {
await openCollectionAndAcceptSandbox(page, 'API with Examples', 'safe');
await openCollection(page, 'API with Examples');
});
await test.step('Verify collection name appears in sidebar', async () => {