Pārlūkot izejas kodu

Backport PR #11470: Reduce flake on non-LaTeX highlighting test (#11474)

Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
MeeseeksMachine 3 gadi atpakaļ
vecāks
revīzija
e924585001

+ 3 - 0
galata/test/jupyterlab/notebook-markdown.test.ts

@@ -30,6 +30,9 @@ test.describe('Notebook Markdown', () => {
     const imageName = 'do-not-highlight-not-latex.png';
     await page.notebook.enterCellEditingMode(1);
     const cell = await page.notebook.getCell(1);
+    // Make sure cursor is consistently in the same position to avoid screenshot flake
+    await page.keyboard.press('Home');
+    await page.keyboard.press('PageUp');
     // Add some timeout to stabilize codemirror bounding box
     const cellBox = await cell.boundingBox();
     const cellNew = await page.notebook.getCell(1);

BIN
galata/test/jupyterlab/notebook-markdown.test.ts-snapshots/do-not-highlight-not-latex-jupyterlab-linux.png