-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: isolate E2E test execution in sandboxes #4358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
8cdc7dd
6cad874
10e0442
f6f274a
f298d7e
9603db5
227769b
e3b074b
f93ca8f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import { useSettings } from "@/hooks/useSettings"; | ||
| import { Label } from "@/components/ui/label"; | ||
| import { Switch } from "@/components/ui/switch"; | ||
|
|
||
| /** | ||
| * Escape hatch for the sandboxed E2E runtime. Stored inverted | ||
| * (`disableSandboxedE2eTests`) so the sandbox stays the default for everyone | ||
| * who never opens this, and only an explicit opt-out falls back to running | ||
| * against the normal preview. | ||
| */ | ||
| export function SandboxedE2eTestsSwitch() { | ||
| const { settings, updateSettings } = useSettings(); | ||
| const enabled = !settings?.disableSandboxedE2eTests; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: While the settings query is loading, Prompt for AI agents |
||
| return ( | ||
| <div className="flex items-center space-x-2"> | ||
| <Switch | ||
| id="enable-sandboxed-e2e-tests" | ||
| aria-label="Run E2E Tests in an Isolated Sandbox" | ||
| checked={enabled} | ||
| onCheckedChange={(checked) => { | ||
| updateSettings({ disableSandboxedE2eTests: !checked }); | ||
| }} | ||
| /> | ||
| <Label htmlFor="enable-sandboxed-e2e-tests"> | ||
| Run E2E Tests in an Isolated Sandbox | ||
| </Label> | ||
| </div> | ||
| ); | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.