-
Notifications
You must be signed in to change notification settings - Fork 9
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
Enable Pyodide input test #1125
base: main
Are you sure you want to change the base?
Conversation
…er is initialised
dd7eea2
to
263cc73
Compare
src/components/Editor/Runners/PythonRunner/PyodideRunner/PyodideRunner.jsx
Show resolved
Hide resolved
useEffect(() => { | ||
if (active) { | ||
if (codeRunTriggered) { | ||
console.log("running with skulpt"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🪵
const codeRunTriggered = useSelector( | ||
(state) => state.editor.codeRunTriggered, | ||
); | ||
const senseHatAlwaysEnabled = useSelector( | ||
(state) => state.editor.senseHatAlwaysEnabled, | ||
); | ||
const [usePyodide, setUsePyodide] = useState(true); | ||
const [usePyodide, setUsePyodide] = useState(null); | ||
const [skupltFallback, setSkulptFallback] = useState(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like it's used consistently, but there's a typo here thats makes the code hard to read, skupltFallback
is probably meant to be skulptFallback
if (browser.name === "chrome") { | ||
console.log("Applying Chrome launch options"); | ||
launchOptions.args.push("--enable-features=SharedArrayBuffer"); | ||
launchOptions.args.push("--disable-site-isolation-trials"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow google, if it's a trial, why not have it opt-in??
Closes https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/327
Changes where also ensure the pyodide execution in Cypress is closer aligned to how it's used