diff --git a/e2e/helpers.ts b/e2e/helpers.ts index 3cfbb18..27910d9 100644 --- a/e2e/helpers.ts +++ b/e2e/helpers.ts @@ -42,7 +42,7 @@ export const testRunCode = async ( export const switchLang = async ( page: Page, - lang: 'Java' | 'Python 3.8.1' | 'C++' + lang: 'Java' | 'Python 3.12.3' | 'C++' ) => { await page.getByRole('button', { name: 'File' }).click(); await page.getByRole('menuitem', { name: 'Settings' }).click(); @@ -58,7 +58,7 @@ export const forEachLang = async ( await switchLang(page, 'Java'); await func(); - await switchLang(page, 'Python 3.8.1'); + await switchLang(page, 'Python 3.12.3'); await func(); await switchLang(page, 'C++'); diff --git a/e2e/respects_permissions.spec.ts b/e2e/respects_permissions.spec.ts index a88e746..13aecd8 100644 --- a/e2e/respects_permissions.spec.ts +++ b/e2e/respects_permissions.spec.ts @@ -112,7 +112,7 @@ test.describe('Respects Permissions', () => { expect(await page.$('text="// this is a comment"')).toBeTruthy(); await page2.waitForSelector('text="// this is a comment"'); - await switchLang(page, 'Python 3.8.1'); + await switchLang(page, 'Python 3.12.3'); await page.waitForSelector('button:has-text("Run Code")'); await page2.waitForSelector('button:has-text("Run Code")'); await page2.click(`${editorClass} div:nth-child(5)`); diff --git a/src/context/UserContext.tsx b/src/context/UserContext.tsx index 822cd38..97e0ce5 100644 --- a/src/context/UserContext.tsx +++ b/src/context/UserContext.tsx @@ -21,7 +21,7 @@ export const LANGUAGES: { label: string; value: Language }[] = [ value: 'java', }, { - label: 'Python 3.8.1', + label: 'Python 3.12.3', value: 'py', }, ];