forked from mwouts/jupytext
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fixes and improvements on frontend extension (mwouts#1178)
* refactor: Improve settings readability Signed-off-by: mahendrapaipuri <[email protected]> * refactor: Remove utility command from palette Signed-off-by: mahendrapaipuri <[email protected]> * test: Update test snapshot Signed-off-by: mahendrapaipuri <[email protected]> * refactor: Move New Text Notebook to File menu * Remove Category settings option Signed-off-by: mahendrapaipuri <[email protected]> * test: Update UI tests * Save full page screenshot so that we can use them in docs Signed-off-by: mahendrapaipuri <[email protected]> * test: Add new UI test for launcher Signed-off-by: mahendrapaipuri <[email protected]> * docs: Use UI test screenshots in docs Signed-off-by: mahendrapaipuri <[email protected]> * refactor: Improve naming for better readability Signed-off-by: mahendrapaipuri <[email protected]> * refactor: Remove desc in settings * Titles are already self explanatory Signed-off-by: mahendrapaipuri <[email protected]> * test: Add opt dep for ui tests * Install Calysto bash kernel for UI tests * To ensure non standard kernels are working as well Signed-off-by: mahendrapaipuri <[email protected]> * refactor: Use generic language name for items * Avoid using kernelspec display names Signed-off-by: mahendrapaipuri <[email protected]> * test: Add bash kernel UI test Signed-off-by: mahendrapaipuri <[email protected]> * test: Update test snapshots Signed-off-by: mahendrapaipuri <[email protected]> * refactor: Move jupytext menu into Filemenu * See [discussion](mwouts#1178 (comment)) Signed-off-by: mahendrapaipuri <[email protected]> * test: Update ui tests and snapshots Signed-off-by: mahendrapaipuri <[email protected]> --------- Signed-off-by: mahendrapaipuri <[email protected]>
- Loading branch information
1 parent
2bf03e6
commit 7223622
Showing
27 changed files
with
139 additions
and
118 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
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
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
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
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
12 changes: 12 additions & 0 deletions
12
jupyterlab/packages/jupyterlab-jupytext-extension/ui-tests/tests/jupytext-launcher.spec.ts
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,12 @@ | ||
import { expect, test } from '@jupyterlab/galata'; | ||
|
||
test.describe('Jupytext Launcher Category', () => { | ||
test.use({ autoGoto: false, viewport: { height: 1020, width: 1280 } }); | ||
test('should have Jupytext category in launcher', async ({ page }) => { | ||
await page.goto(); | ||
await page.waitForSelector('.jp-LauncherCard-label'); | ||
|
||
const imageName = 'launcher-category.png'; | ||
expect(await page.screenshot()).toMatchSnapshot(imageName.toLowerCase()); | ||
}); | ||
}); |
Binary file added
BIN
+85.5 KB
.../tests/jupytext-launcher.spec.ts-snapshots/launcher-category-jupytext-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Binary file added
BIN
+113 KB
...xt-menu.spec.ts-snapshots/opened-jupytext-menu-file-jupytext-jupytext-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+108 KB
...pec.ts-snapshots/opened-jupytext-menu-file-new-text-notebook-jupytext-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-8.96 KB
...upytext-menu.spec.ts-snapshots/opened-jupytext-menu-jupytext-jupytext-linux.png
Binary file not shown.
Binary file removed
BIN
-8.06 KB
...ts-snapshots/opened-jupytext-menu-jupytext-new-text-notebook-jupytext-linux.png
Binary file not shown.
Binary file removed
BIN
-22 KB
...pec.ts-snapshots/opened-jupytext-menu-jupytext-pair-notebook-jupytext-linux.png
Binary file not shown.
Oops, something went wrong.