Skip to content
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

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

Enable Pyodide input test #1125

wants to merge 30 commits into from

Conversation

sra405
Copy link
Contributor

@sra405 sra405 commented Oct 25, 2024

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

@sra405 sra405 temporarily deployed to previews/1125/merge October 25, 2024 08:48 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 25, 2024 12:00 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 25, 2024 15:02 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 25, 2024 15:33 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 28, 2024 12:03 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 28, 2024 12:25 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 29, 2024 08:02 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 29, 2024 08:14 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 29, 2024 08:14 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 29, 2024 08:39 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 29, 2024 12:33 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 29, 2024 12:35 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 29, 2024 12:47 — with GitHub Actions Inactive
@sra405 sra405 temporarily deployed to previews/1125/merge October 29, 2024 12:48 — with GitHub Actions Inactive
useEffect(() => {
if (active) {
if (codeRunTriggered) {
console.log("running with skulpt");
Copy link
Member

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);
Copy link
Contributor

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");
Copy link
Contributor

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??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants