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,5 +1,5 @@
import { test, expect } from '../../../playwright';
import { closeAllCollections, openCollectionAndAcceptSandbox, sendRequest } from '../../utils/page';
import { closeAllCollections, openCollection, sendRequest } from '../../utils/page';
import { buildCommonLocators } from '../../utils/page/locators';
test.describe.serial('Dynamic Variable Interpolation', () => {
@@ -11,7 +11,7 @@ test.describe.serial('Dynamic Variable Interpolation', () => {
const locators = buildCommonLocators(page);
// Open collection and accept sandbox mode
await openCollectionAndAcceptSandbox(page, 'dynamic-variable-interpolation', 'safe');
await openCollection(page, 'dynamic-variable-interpolation');
// Navigate to the request
await locators.sidebar.request('set-var-dynamic-variable').click();