mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-27 03:20:27 +08:00
Fix cursor capture in the screenshot
This commit is contained in:
parent
69ae8003d5
commit
88b829f05a
@ -36,6 +36,11 @@ test.describe('Mobile', () => {
|
||||
// wait for the kernel status animations to be finished
|
||||
await waitForKernelReady(page);
|
||||
|
||||
// force switching back to command mode to avoid capturing the cursor in the screenshot
|
||||
await page.evaluate(async () => {
|
||||
await window.jupyterapp.commands.execute('notebook:enter-command-mode');
|
||||
});
|
||||
|
||||
expect(await page.screenshot()).toMatchSnapshot('notebook.png');
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user