diff --git a/cypress/e2e/spec.cy.ts b/cypress/e2e/spec.cy.ts index 844fcdc..6f65447 100644 --- a/cypress/e2e/spec.cy.ts +++ b/cypress/e2e/spec.cy.ts @@ -20,24 +20,19 @@ describe('Editor Test', () => { .should(($p) => { expect(getComputedStyle($p.get(0)).getPropertyValue('--vscode-editor-background')).to.equal("#ffffff") }) - cy.wait(4000) cy.get('[data-cy="theme-dark"]').click() - cy.wait(4000) cy.contains('#check Nat') .should(($p) => { expect(getComputedStyle($p.get(0)).getPropertyValue('--vscode-editor-background')).to.equal("#1e1e1e") }) }) it('inputs unicode', () => { - cy.visit('http://localhost:5173/') cy.get('[data-cy="leader-backslash"]').click() cy.contains('#check Nat').click("left") cy.get('body').type('\\alpha') cy.contains('α') - cy.wait(4000) cy.get('[data-cy="leader-comma"]').click() - cy.wait(4000) cy.contains('#check Nat').click("left") cy.get('body').type(',beta') cy.contains('β') diff --git a/demo/src/App.tsx b/demo/src/App.tsx index 634b91c..c5daed1 100644 --- a/demo/src/App.tsx +++ b/demo/src/App.tsx @@ -4,16 +4,16 @@ import LeanMonacoComponent from './LeanMonaco' import { LeanMonacoOptions } from 'lean4monaco' function App() { - const [options, setOptions] = useState({websocket: {url: 'ws://localhost:8080/'}, vscode: {"editor.theme": "Visual Studio Light"}}) + const [options, setOptions] = useState({websocket: {url: 'ws://localhost:8080/'}, vscode: {"workbench.colorTheme": "Visual Studio Light"}}) return ( <>