dillon1000/react
Commit
Browse files [playground] Fix broken tests (#31573)
Our e2e setup with monaco is kinda brittle since it relies on the dom. It seems like longish text gets truncated so let's just simpify all these test cases. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31573). * __->__ #31573 * #31572
Changed paths15 files
First-parent comparisoncompiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/01-user-output.txt ModifiedM compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/02-default-output.txt ModifiedA compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/function-scope-beats-module-scope-output.txt AddedD compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/function-scope-no-directive-arrow-function-expression-output.txt DeletedD compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/function-scope-use-memo-arrow-function-expression-output.txt DeletedD compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/function-scope-use-memo-function-declaration-output.txt DeletedD compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/function-scope-use-no-memo-function-declaration-output.txt DeletedD compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/function-scope-use-no-memo-function-expression-output.txt DeletedM compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/module-scope-use-memo-output.txt ModifiedD compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/module-scope-use-no-memo-function-expression-output.txt DeletedM compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/module-scope-use-no-memo-output.txt ModifiedA compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/use-memo-output.txt AddedA compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/use-no-memo-output.txt AddedM compiler/apps/playground/__tests__/e2e/page.spec.ts ModifiedM compiler/apps/playground/playwright.config.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…