-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport PR #13103 on branch 3.4.x (Switch back to display to hide ta…
…bs) (#13123) * Backport PR #13103: Switch back to `display` to hide tabs * Fix cell content for CodeMirror 5
- Loading branch information
1 parent
406990c
commit a8f8e1f
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (c) Jupyter Development Team. | ||
* Distributed under the terms of the Modified BSD License. | ||
*/ | ||
|
||
import { expect, test } from '@jupyterlab/galata'; | ||
|
||
test('Switch back and forth to reference page', async ({ page }) => { | ||
// The goal is to test switching back and forth with a tab containing an iframe | ||
const notebookFilename = 'test-switch-doc-notebook'; | ||
const cellContent = '# First cell'; | ||
await page.notebook.createNew(notebookFilename); | ||
|
||
await page.notebook.setCell(0, 'markdown', cellContent); | ||
|
||
await page.menu.clickMenuItem('Help>Jupyter Reference'); | ||
|
||
await expect( | ||
page | ||
.frameLocator('iframe[src="https://jupyter.org/documentation"]') | ||
.locator('h1') | ||
.first() | ||
).toHaveText('Jupyter Project Documentation#'); | ||
|
||
await page.activity.activateTab(notebookFilename); | ||
|
||
await page.locator('.jp-MarkdownCell .jp-InputArea-editor').waitFor(); | ||
|
||
await expect( | ||
page.locator('.jp-MarkdownCell .jp-InputArea-editor') | ||
).toHaveText(`xxxxxxxxxx ${cellContent}`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters